MATLAB: How to read images with positive integer? No imead()

import imagesimread

I want to import images into matlab workspace, they should contain positive integers and zeros. If I use imread(), they will be all zeros.

Best Answer

I definitely don't get all zeros with imread. Problem solved?
>> nnz(imread('C0039_100122_INDS.png'))
ans =
4624
>> nnz(imread('C0039_101785_INDS.png'))
ans =
12177