What I require is to report changes b/w them(which I'm able to do).
The program also shows changes where there is the big black patch in Image1. While it is definitely a change, I require such changes(where there is no information(black patch) in one of the images) to be ignored.
For eg, in the given pair, only the hexagon should be shown as a change. Thus, I need to locate the coordinates of either the patch or image sans the patch. I came across an approach in this answer.
How can I achieve this in Matlab? The approach works great, but I am having trouble finding the functions corresponding to the cv2
functions in Matlab (particularly cv2.approxpolyDP()
and cv2.arclength()
.Tried using regionprops
but to no avail.
Is there any other way too, other than the one in the linked approach
PS:I am new to Matlab.