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);

+ Recent posts