Use memmapfile with 11bit data

I am trying to use the "memmapfile" function to map a very large 11bit image to memory.
I am unclear about the Format entry in this case...
img = memmapfile(file_path, 'Format',{'???',[img_size(1) img_size(2)],'im'});
Thanks!!! Monica

Answers (1)

Walter Roberson
Walter Roberson on 24 Aug 2011
memmapfile() cannot be used to map at the bit level. The closest you can get is to map by uint* and extract the bits with bitget() or the like.

Categories

Find more on Medical Physics in Help Center and File Exchange

Asked:

on 24 Aug 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!