Filter löschen
Filter löschen

how can i convert RGB image to YCBCR image

2 Ansichten (letzte 30 Tage)
si sam
si sam am 1 Dez. 2015
Beantwortet: Walter Roberson am 1 Dez. 2015
i used the simple function rgb2ycbcr but an error appeared:

Antworten (2)

Geoff Hayes
Geoff Hayes am 1 Dez. 2015
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.

Walter Roberson
Walter Roberson am 1 Dez. 2015
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.)

Community Treasure Hunt

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

Start Hunting!

Translated by