
and this is the point

Please help me with this problem
Code: Select all
convert image txt:- | grep -v "black"
Sorry, I misunderstood and did not notice the smaller image. Snibgo's solution is then the correct one. You can then find all the brightest points in the second output image from the subimage-search compare. If on Unix-like systems, see my script maxima.
Code: Select all
compare -metric RMSE -subimage-search aO4kz.png oe5pC.png x.png
convert x-1.png -define identify:locate=maximum -identify NULL:
Code: Select all
Channel maximum locations:
Gray: 65535 (1) 52,3 52,50 51,81
Code: Select all
f:\web\im>%IM%convert -size 4x4 xc:White -define identify:locate=maximum -identify null:
Channel maximum locations:
Gray: 65535 (1) 0,0 1,0 2,0 3,0 0,1 1,1 2,1 3,1 0,2 1,2 2,2 3,2 0,3 1,3 2,3 3,3
I stand corrected. Thanks.
very thankyousnibgo wrote: ↑2017-06-04T12:16:23-07:00The output is:Code: Select all
compare -metric RMSE -subimage-search aO4kz.png oe5pC.png x.png convert x-1.png -define identify:locate=maximum -identify NULL:
This gives the three locations of the top-left corner of the location where the subimage is found.Code: Select all
Channel maximum locations: Gray: 65535 (1) 52,3 52,50 51,81