matlab - Reducing image bit depth -
i'm working on 800 x 800 pixels images bit depth of 24 (png format). assume means 3 x 8 bits. these images black , white (0 or 255). want reduce depth 8 bit because*, when process images in matlab,* create 800 x 800 x 3 matrix has bigger computational cost computing 2d matrix.
my idea subset first layer of matrix in matlab seems i've lost information because i've nothing left in matrix.
`im4=im4(1:800,1:800);`
any idea ?
i'm new image processing , may not know basics...
rgb2gray
safest way convert m-by-n-by-3 image m-by-n.
Comments
Post a Comment