필터 지우기
필터 지우기

denoise rgb image use wavelet

조회 수: 1 (최근 30일)
michael scheinfeild
michael scheinfeild 2012년 8월 6일
i want to denoise rgb image , i want that output image will be also rgb but i just have white output i want to keep the rgb info i dont want to use the method in
http://www.mathworks.com/help/toolbox/wavelet/gs/f4-1013594.html since the rgb info lost ==================================
unregistered = imread('westconcordaerial.png');
figure(1), imshow(unregistered);title('original')
vSpeckle = 0.05;
imgaddnoise = imnoise(unregistered,'speckle',vSpeckle);
figure(2), imshow(imgaddnoise);title('with speckle noise')
//------------------
method 1 not work
for(lcolor=1:3)
ximg=double(imgaddnoise(:,:,lcolor));
[thr,sorh,keepapp] = ddencmp('den','wv', ximg);
imgOutWavelet(:,:,lcolor) = wdencmp('gbl',ximg,'sym4',2,thr,sorh,keepapp);
mx = max(max( imgOutWavelet(:,:,lcolor)))
imgOutWavelet(:,:,lcolor) =imgOutWavelet(:,:,lcolor)/mx;
end
figure(6)
imagesc( imgOutWavelet);title('filtered image wavelets ')
---------------
% method two i dont want to do !!!
A = double(imgaddnoise);
Xrgb = 0.2990*A(:,:,1) + 0.5870*A(:,:,2) + 0.1140*A(:,:,3);
NbColors = 255;
X = wcodemat(Xrgb,NbColors);
map = pink(NbColors);
[thr,sorh,keepapp] = ddencmp('den','wv', X);
xd = wdencmp('gbl',X,'sym4',2,thr,sorh,keepapp);
% its not rgb already . .

답변 (0개)

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by