I attached an image of what we are working on right now. We have to extract the 'white ones' on them but our problem is that some part of the image are getting in the way since they have the 'same color' as the ones we want to extract. So I was thinking of inserting a noise then removing it to solve the problem. I was thinking of using 'imnoise localvar' since it somewhat relates to image intensities.
Here is my sample code
I = imread('im0059.ppm');
imshow(I)
J = imnoise(I,'localvar', image_intensity,var) ;
figure, imshow(J)
K = filter2(fspecial('average',3),J)/255;
figure, imshow(K)
L = medfilt2(J,[3 3]);
figure, imshow(L)
I don't know what to put on image_intensity and var. Help please. Also if you have any suggestions on what im doing. Please do tell. Thanks a lot!
3 Comments
Portgas Ace (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/153377-how-do-i-use-imnoise-localvar#comment_235324
kuldeep desai (view profile)
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/153377-how-do-i-use-imnoise-localvar#comment_589767
Image Analyst (view profile)
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/153377-how-do-i-use-imnoise-localvar#comment_589799
Sign in to comment.