matlab 에서 gray image 는 class 가(즉, 변수종류가) unit8 인 변수에 저장된다.
intArray = uint8(array)
ex)
sample =uint8([ 41 42 68 126
56 87 110 125
101 123 113 117
88 102 74 102]);
imshow(sample);
intArray = uint8(array)
ex)
sample =uint8([ 41 42 68 126
56 87 110 125
101 123 113 117
88 102 74 102]);
imshow(sample);
'[old 정리중] study > vision' 카테고리의 다른 글
[펌] OpenCV 를 이용한 템플릿 매칭(Template Matching) + 소스 포함 (0) | 2011.12.13 |
---|---|
필터를 사용하는 영상처리 (image processing using filter) (0) | 2011.08.03 |
rgb2gray - matlab , color(rgb) image 를 gray image 로 변환 (0) | 2011.06.22 |
normxcorr2 - matlab , NCC (normalized cross correlation) (1) | 2011.06.22 |
imread - matlab , color image 불러오기 (3) | 2011.06.22 |