Finding Zero-Crossing Points of Image
Show older comments
I need to locate all the zero-crossing points in a bmp image that has already had Laplacian of Gaussian filter applied to it for edge detection. I have the Image Processing toolbox. How do I accomplish this in MATLAB?
Answers (3)
PATRICK STANTON
on 17 Jul 2011
1 vote
Walter Roberson
on 17 Jul 2011
0 votes
The bmp file format does not permit signed pixel values, so there cannot be any zero crossings in a bmp image.
If you look at the documentation for imread you will see that the only supported file format which returns a potentially signed value (as would be needed for a zero crossing) is TIFF in 64 bit CMYK mode.
Image Analyst
on 17 Jul 2011
Assuming you cast your image to single and did some operation on it like conv2 to do the filtering, and ended up with an image that had positive and negative values, where would you say the "zero crossing" is in this small chunk of the image?
3 4 5 9 1 2
1 3 -3 5 9 -1
3 4 5 -6 7 9
Tell me exactly what row and column you want to say the "crossing" is at, because the crossing actually occurs between the pixels. We can easily identify positive pixels and negative pixels, but where do you want the crossings to be? Do you want to interpolate the array so that you can find the exact positions? Or maybe just find the negative regions and draw an outline around them with bwboundaries?
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!