Filter löschen
Filter löschen

how to apply median filter to a color image?

11 Ansichten (letzte 30 Tage)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran am 30 Mär. 2014
Beantwortet: Image Analyst am 30 Mär. 2014
I applied median filter to a color image.. herewith i have mentioned the code.. is it correct?
R = img(:,:,1);
G = img(:,:,2);
B = img(:,:,3);
medfilimg(:,:,1) = medfilt2®;
medfilimg(:,:,2) = medfilt2(G);
medfilimg(:,:,3) = medfilt2(B);

Akzeptierte Antwort

Image Analyst
Image Analyst am 30 Mär. 2014
Change this
medfilimg(:,:,1) = medfilt2®;
medfilimg(:,:,1) = medfilt2(R);

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by