I want to btain the DCT on kids.tif image but I have these errors, What should I have do ?
RGB = imread ('kids.tif');I = rgb2gray(RGB);J= dct2 (I);%taking logarithm
imshow (log(abs(J)),[]), colormap(jet(64)), colorbar
Now set values smaller than 10 in dct matrix to 0 and reconstruct the image using idct.
J(abs(J)<10) = 0;K = idct2(J)/255;imshow(K);Error using rgb2gray>parse_inputs (line 81)MAP must be a m x 3 array.Error in rgb2gray (line 35)X = parse_inputs(varargin{:});Error using rgb2gray>parse_inputs (line 81)MAP must be a m x 3 array.Error in rgb2gray (line 35)X = parse_inputs(varargin{:});
Best Answer