Transform Image

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Transform Image

Nebullus
How can I transform a grayscale image to use only 8 bits per pixel, with the
size 640x480 ?



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Transform Image

Pantxo
Nebullus wrote
> How can I transform a grayscale image to use only 8 bits per pixel, with
> the
> size 640x480 ?
>
>
>
> --
> Sent from:
> http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

Hi,

It is hard to say without knowing the kind "grayscale" image you want to
convert to uint8. A grayscale images can be an m-by-n-by-3 RGB image (of
type double, single uint8 or uint16) with R = G = B, or an m-by-n image (of
type double, single, ...) indexed into the "gray" colormap.

Can you give more details ?

Pantxo



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html