I'm asking for the community help since I have problems in cropping an image. I'm having LEED images which are 576*720p, which are made by a big black region at which middle I have the image I'm analizing. Since the region is circular, i would like to single that out of the black region, but I haven't really found a way to do so. By now, if this is the image:
I'm able, via the function "EdgeDetect", to put in evidence the circular region i would like to preserve of the full image:
The circular region is evident, even if it's a little smaller that what's in reality(that's because i thing mathematica takes the edges of variation, which by many means may be closer to the center of the image that in reality). Anyway, I haven't been able to find a function in mathematica (nor to write it, actually I don't how to implement) to get that circular region (and possibly some more) and have the rest of the image cropped out. That would really light my code, and I'm asking if anyone has any idea on how to solve it.
Thanks in advance for your help
ImageAdjust
to brighten the image...) $\endgroup$Colorize[ImageData[img, Automatic]]
. You can see that there is only a one-value difference between the inside and outside of the circle, and that the edges are not sharp enough to reliably detect. If your camera is always mounted in the same place you can use David's cropping method, but otherwise you'll have to align the images manually. $\endgroup$