Info

此问题已关闭。 请重新打开它进行编辑或回答。

Processing the image

1 次查看(过去 30 天)
Tricky
Tricky 2012-5-23
关闭: MATLAB Answer Bot 2021-8-20
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)

回答(1 个)

Image Analyst
Image Analyst 2012-5-23
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.

此问题已关闭。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by