How can I average the boundaries of two separate binary images?
Show older comments
Input: I have two separate black&white (binary) images, each with two separate boundaries that are free-hand drawn (see attached images).
Aim: I would like to average the left boundary/trace in the two images as well as the right boundary, so that I would eventually have an average mask that is the average of those two images.
Process: (1) Initially, I thought that I can do this by averaging the elements of the matrices, but that didn't work because some of the averaged matrix elements became fractions, such as 1/2. (2) I also thought that if a reference point is selected and the coordinates of each of those boundaries are known, then I should be able to determine the average of the two boundaries in the two images, but I don't know exactly how to do that, and I am not sure if that's a correct approach.
1 Comment
Guillaume
on 10 Jul 2018
What is your definition of the average of two shapes?
Answers (0)
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!