Does (:,:,1) code work to calculate Y component in YcbCr color model?

1 次查看(过去 30 天)
i am currently studying color models in matlab specially YCbCr color model. I had an RGB image. First i converted image into YCbCr by using code rgb2ycbcr. then i used (:,:,1) to see the luma component of the image. is the value i am seeing the actual value of image luma? Anyone out there to comment on it?
Thanks

采纳的回答

Image Analyst
Image Analyst 2013-5-20
Almost. Y is the luminance. Y' is the luma. See wikipedia: http://en.wikipedia.org/wiki/Ycbcr
Actually for an RGB or gray level image, the light collected actually has units of lumen*seconds. But that's only if you're interested in what the physical units would actually have. I can explain it further (like I've done here before) if you're interested. It often doesn't matter when doing image analysis and you can often find stuff just fine without knowing the actual real world units.
  1 个评论
Youssef  Khmou
Youssef Khmou 2013-5-20
Image Analyst, Suppose we are studying the Red-shift of the light based on RGB samples ("photometry") can we only focus on the R block? eventually Y' in ycbcr space?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by