I have these two codes. Can someone help me determine whats wrong with them.
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
For the "jpegcomp" code, i get an error message telling me to "% load file of variables containing a gray image matrix" even when i load a greyscale lenna image.
for the "didi.m" code, i get an error on ine 12...
I am using matlab R2007b version. Please look at my codes and advise me on what to do.
thank you very much
댓글 수: 3
  Walter Roberson
      
      
 2013년 1월 8일
				So it is complaining that dct is unknown. Do you have the Signal Processing Toolbox installed?
답변 (1개)
  Image Analyst
      
      
 2013년 1월 8일
        o is a bad name for a variable - looks too much like a zero. Anyway, put these lines in and tell me what's in the command window:
whos o
[rows, columns, numberOfColorChannels] = size(o)  % No semicolon!
댓글 수: 2
  Walter Roberson
      
      
 2013년 1월 8일
				That is an RGB image, not a grayscale image as you earlier claimed. It is possible that the R, G, and B planes are all the same; if so then
oR = o(:,:,1);
and work on that instead of on "o".
참고 항목
카테고리
				Help Center 및 File Exchange에서 Denoising and Compression에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


