--- Dr John <> wrote: > Hey Group, > > Has anyone got any experience of importing a image > file into Matlab > that was unsupported? If so could you please help.. > > Cheers > Hi, My first advise is to search for contributed program at MTW site and at mathtools site, because it isn't an easy task. To start doing it yourself, collect any information available about the image: size(in pixels), depth (in bits),format (bw,rgb or else). Any image format starts with header that contains important data but usually you can't figure out what its mean. Your first task is to find out the length of this header in order to get rid of it. This header length is usually some power of 2 (128,256, 512, ...) although it can be something else. From here on you can try to read the rest as an ascii and view the result using Matlab functions. The rest is trail and error. Joe BSTEX-Equation viewer for Matlab http://www.geocities.com/bstex2001 |