Preprocessing using median filter and imfilter command
조회 수: 8 (최근 30일)
이전 댓글 표시
hi,
I have following image http://www.flickr.com/photos/95383933@N08/8876902700/ I want to do some preprocessing I did like this
if true
f=imread('brp.jpg');f=f(:,:,1);
med=medfilt2(f,'symmetric');
ed=[-1 2 -1; 0 0 0;1 -2 1];
f=im2double(f);
ed=f-imfilter(f, ed,'replicate');
Pre=ed+f;
figure, imshow(Pre)
% code
end
after doing this I can get following types of Images
http://www.flickr.com/photos/95383933@N08/8876991668/in/photostream/ but what should I do to get this Image http://www.flickr.com/photos/95383933@N08/8876365169/in/photostream/ Where I am Wrong?
댓글 수: 0
채택된 답변
Image Analyst
2013년 5월 29일
I don't see the difference between the original image and the desired output image. What is the difference? Also, I don't understand why you're taking the vertical Sobel edge filter and then subtracting it from the original? What do you expect that to produce? Are you trying to suppress edges for some reason?
댓글 수: 4
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!