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

6 views (last 30 days)
I want to import images into matlab workspace, they should contain positive integers and zeros. If I use imread(), they will be all zeros.
  3 Comments
Wenyi Xiao
Wenyi Xiao on 26 Apr 2019
Edited: Wenyi Xiao on 26 Apr 2019
Here are pictures.
I have 1500 pictures like these.

Sign in to comment.

Accepted Answer

Catalytic
Catalytic on 26 Apr 2019
Edited: Catalytic on 26 Apr 2019
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
  3 Comments
Wenyi Xiao
Wenyi Xiao on 26 Apr 2019
I found the positive integers, Thank you!

Sign in to comment.

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!