Processing the image

1 view (last 30 days)
Tricky
Tricky on 23 May 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi..
The image of illumination with the holes is to be processed so that the outcome image contains only the holes. I worked out like this
img=imread('L2S2T1.jpg');
gryscl=rgb2gray(img);
BW2=im2bw(gryscl,0.2);
figure(3),imshow(BW2);
The output image got was not the desired one as
How to process the image to have only the holes in it without the lines (i.e., horizontal and vertical lines)

Answers (1)

Image Analyst
Image Analyst on 23 May 2012
I see you're still on this image again. "Again" because I'm pretty sure that Tricky, Jim, and Vivek are all the same person due to the style of asking questions. And Jim asked about this very same image in http://www.mathworks.com/matlabcentral/answers/36056-how-to-crop-the-image You could have asked there and I could have given more suggestions if you couldn't figure out how to finish the code I gave you in that thread (via taking vertical and horizontal profiles).
Try it this way next:
But I'm not giving you code on those because there is demo code already there in those links, plus you don't seem to want to work with my code anyway.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!