help me with decoding of original image using inverse shearlet transform?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
clear; %%settings sigma = 30; scales = 4; thresholdingFactor = 3; X = imread('C:\Users\HP\Desktop\miniproject\ii.jpg'); X=rgb2gray(X); X = double(X); shearletSystem = SLgetShearletSystem2D(0,size(X,1),size(X,2),scales); fprintf('decomposition, thresholding and reconstruction... '); %%decomposition coeffs = SLsheardec2D(X,shearletSystem); %%thresholding coeffs = coeffs.*(abs(coeffs) >thresholdingFactor*reshape(repmat(shearletSystem.RMS,[size(X,1)*size(X,2) 1]),[size(X,1),size(X,2),length(shearletSystem.RMS)])*sigma); %%reconstruction Xrec = SLshearrec2D(coeffs,shearletSystem); figure; colormap gray; subplot(1,3,1); imagesc(X); title('original image'); axis image; subplot(1,3,2); imagesc(Xrec); title(['transformed image']); axis image; y=SLsheardec2D(Xrec,shearletSystem); subplot(1,3,3); imagesc(y); title('original image');
error is coming like this image CData must be an m-by-n-by-3 or m-by-n matrix.
Error in imagesc (line 18) hh = image(varargin{1},'CDataMapping','scaled');
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Discrete Multiresolution Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!