To convert a 16-bit monocromatic image (no colors, black and white) to 32-bit, the below procedure can be followed with gray scale image as reference. Here, Image.png is an RGB image.
Gray = imread('Image.png');
Gray = rgb2gray(Gray);
imwrite(Gray,'imagegrey.png');
grey_info = imfinfo('imagegrey.png');
Grey_BitDepth = grey_info.BitDepth
imwrite(Gray,'imagegrey16.png','BitDepth', 16);
grey16_info = imfinfo('imagegrey16.png');
Grey16_BitDepth = grey16_info.BitDepth
Bit depth of an image:
The image has a bit depth that is shown in the properties of original image under details tab in the file manager i.e. 32 as MATLAB supports only few bit depths that are specific to image file format. An image which has 1456*1936 unit16 value implies that the image has 16 bits/sample. Number of samples for a gray scale image is one and number of samples for rgb image are three.
Use the given link for reference.
Best Answer