trying to create 10 bit image Matlab -
i want create 10 bit per channel fake black image.
of channels equals 16.
here have tried
image = zeros(100,100); image(:,:) = 16; fileid = fopen('blc.raw','w'); fwrite(fileid,image,'double'); can please tell me how create 10 bit image?
matlab not have 10 bit data type, can not have 10 bit images. however, can have 16 bit images , cap topmost value 2^10-1.
you can create 16bit image doing img=uint16(ones(100,100)*16);
generally you'd want write images using imwrite.
Comments
Post a Comment