how can i convert RGB image to YCBCR image
1 次查看(过去 30 天)
显示 更早的评论
i used the simple function rgb2ycbcr but an error appeared:
0 个评论
回答(2 个)
Geoff Hayes
2015-12-1
si - what can you tell us about the input parameter a? What are its dimensions? According to the documentation for rgb2ycbcr, the input, if a map, must be of dimension mx3, and if the input is an RGB image, then it must be of dimension mxnx3. I suspect that your a is two dimensional.
0 个评论
Walter Roberson
2015-12-1
The a that you are passing in is not an RGB array. It is either a grayscale matrix (floating point) or a label matrix (integer values that indicate which color number appears at that location.)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!