I have some BMP images from an optical CT scan that I need to process in matlab. Using the function imfinfo I know that my image before being read by matlab is at 16 BitDepth and is transformed to a 24 BitDepth after.
BeforeFileSize: 1572918Format: 'bmp'FormatVersion: 'Version 3 (Microsoft Windows 3.x)'Width: 1024Height: 768BitDepth: 16ColorType: 'truecolor'FormatSignature: 'BM'NumColormapEntries: 0Colormap: []RedMask: []GreenMask: []BlueMask: []ImageDataOffset: 54BitmapHeaderSize: 40NumPlanes: 1CompressionType: 'none'BitmapSize: 1572864HorzResolution: 0VertResolution: 0NumColorsUsed: 0NumImportantColors: 0AfterFileSize: 2359350Format: 'bmp'FormatVersion: 'Version 3 (Microsoft Windows 3.x)'Width: 1024Height: 768BitDepth: 24ColorType: 'truecolor'FormatSignature: 'BM'NumColormapEntries: 0Colormap: []RedMask: []GreenMask: []BlueMask: []ImageDataOffset: 54BitmapHeaderSize: 40NumPlanes: 1CompressionType: 'none'BitmapSize: 2359296HorzResolution: 0VertResolution: 0NumColorsUsed: 0NumImportantColors: 0
I need the image to be a 16 BitDepth BMP when I save it to use it in a reconstruction software. Cheers Pierre
Best Answer