Page 1 of 1

Extract coordinates of similar features

Posted: 2017-05-01T20:53:31-07:00
by djd
Is there a script available which can extract the pixel coordinates of similar features in an image?
For example, the location of each of 20 bullet holes in a target.
djd

Re: Extract coordinates of similar features

Posted: 2017-05-01T21:40:10-07:00
by snibgo
Yes, but it depends on what you mean by "similar features". Do you mean a paper target, like a shooting range? If so, that is probably quite simple.

IM contains commands "compare" and "-compare", which do pixel-by-pixel comparisons. So if the pixels in and around each bullet hole correspond, either exactly or roughly, they will be found.

But if the bullet holes vary in size, the pixels won't directly correspond. Scripts can be written to do searching at multiple scales.

Perhaps the bullet holes are in different materials. Again, pixels won't correspond, but a script might be possible.

Image processing techniques might be used to determine the presence or absence of a bullet hole.

Advice can be more specific if you can link to example images. Also please state what version of IM you use, on what platform.