What do i get when i do c = imread('image.jpeg')

Hi All,
when we do R= imread('someimage.jpeg')
what will be there in R..?? is it coefficients or intensity values...
can c\some one clarify this..?
Thank you, Raj.

回答(1 个)

For JPEG files, it will be RGB values.
imread() fully decodes the images it reads, and outputs an indexed image if the image was stored as an indexed image, and outputs an RGB image if the image was stored as an RGB image. JPEG images are always stored as RGB images.

3 个评论

Thanks walter, but what are the values that are present in "R" are they coefficients or intensity values..?
please answer
Thank you.
Coefficients? Of what? They're intensity values of course.
Muthuraj, if your question is, "Can imread() be used to retrieve the DCT coefficients of a JPEG image", then the answer is NO.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Images 的更多信息

提问:

2011-10-24

Community Treasure Hunt

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

Start Hunting!

Translated by