MATLAB: Contour of BW Image –> correlation/pearson to another contour

bwimagecontourpearson

Hello there
I have a BW image of a human figure. I want to extract a contour of this silhouette, a line. I want to use this contour in order to compare it with a database of contours with correlation or Pearson method.
This image is taken from a camera, which means that the templates will not be necessarily the same size as the contour we extract from it. Can you use correlation and pearson with different sizes?

Best Answer

If you have a binary image, BW, then you can use bwperim() or bwboundaries() to get the "contour" or outer perimeter of the shape.
Related Question