noise removal without bulitin functions
Show older comments
i was wandering is there any other way to remove the salt and pepper effect with out using the built in function for matlab ?
Accepted Answer
More Answers (2)
Image Analyst
on 30 Nov 2011
0 votes
Yes. But why? Why not just use the Salt and Pepper removal code I've posted here before?
2 Comments
hosam
on 30 Nov 2011
Image Analyst
on 1 Dec 2011
Your image that it pulls "good" values from can be anything you want. It can be a median image, it can be an average image gotten via conv2(), or it can be any other type of noise removal filter such as bilateral, etc. but I doubt the exact kind of image will be noticeable at all in the final image because the noise is so infrequent in salt and pepper situations.
Bjorn Gustavsson
on 30 Nov 2011
Sure thing!
You can for example use the excelent http://www.mathworks.co.uk/matlabcentral/fileexchange/20645 tool to manually identify your bright and dark pixels. Maybe something like this will make it:
d = yourData;
imagesc(d)
[X,Y,B] = ginput2;
for i1 = 1:length(X)
d(Y(i1),X(i1)) = median(d(Y(i1)+[-1:1],X(i1)+[-1:1]));
end
One thing for you to keep in mind in the future (no offense intended): EVERY time someone have aske for a solution to a problem with the constrain "without bulitin" it has been about getting a homework problem solved. This is something that is not all that fun to do since it is not my task to learn their (and your?) course so that they (you?) can pass without learning...
Categories
Find more on Image Category Classification 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!