How 'imread' function works in Matlab?
Show older comments
Hi,
I am using 'imread' function in Matlab to read images produced by X-Ray CT. Those images are in the greyscale.
When I use the 'imread' function, Matlab returns an array with the same size of the image but with numbers inside the cells (matrix is attached). The number represent a single pixel in that image while the minimum number is 3107 and the maximum is 40899.
I want to know how those numbers are calculated?
Thanks..

Accepted Answer
More Answers (1)
Adam
on 21 Feb 2017
1 vote
They aren't 'calculated', they are read in from the file as the name 'imread' and the help suggest.
2 Comments
Mohammed Sadeq
on 22 Feb 2017
Adam
on 22 Feb 2017
imread literally reads what is stored in the file. How those numbers were calculated comes from whatever process was used to create the image and save it originally.
Categories
Find more on DICOM Format 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!