convert pixel values to Integer
    조회 수: 2 (최근 30일)
  
       이전 댓글 표시
    
I want to convert the pixel values to integer for which I use uint8,But does uint8 work for image with 256x256 & above?[Grayscale Images] Any other function for conversion.
댓글 수: 0
답변 (1개)
  Walter Roberson
      
      
 2012년 2월 3일
        uint8() "saturates" any value above 255 to become 255.
uint16() "saturates" any value above 65535 to become 65535.
uint32() and uint64() exist but the graphics routines cannot display them. Hardly any of the image file format support writing uint64.
Do you need something of integer data type, or do you just need values that are arithmetically integer? fix() and floor() and ceil() can remove fractions but do not produce an integer datatype.
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

