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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -