Problem on gray scale image.
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
Hi. i used gray = rgb2gray(I) at command window but why can't i get a grayscale image? thank you!

댓글 수: 0
답변 (2개)
  Walter Roberson
      
      
 2012년 9월 19일
        grayscaleimage = rgb2gray(I);
image(grayscaleimage);
colormap(gray);
Please note that "gray" is a MATLAB function for constructing grayscale colormaps. Writing to a variable named "gray" interferes with using the function "gray".
댓글 수: 0
  Esther
 2012년 9월 20일
        댓글 수: 6
  Image Analyst
      
      
 2012년 9월 20일
				
      편집: Image Analyst
      
      
 2012년 9월 20일
  
			So you DID get a gray scale image. Why did you say you did not?
참고 항목
카테고리
				Help Center 및 File Exchange에서 White에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



