필터 지우기
필터 지우기

convert RGB to YCbCr

조회 수: 1 (최근 30일)
Aseel H
Aseel H 2012년 7월 7일
I need to get three channel(three matrix)= Y, Cb, Cr from convert color imag to ycbcr but: the follow function
RGB = imread(colorimage) ycbcr = rgb2ycbcr(RGB)
give alone one channel(luminance)
  댓글 수: 5
Aseel H
Aseel H 2012년 7월 7일
thanks, Anton
Aseel H
Aseel H 2012년 7월 8일
can you tell me, how convert RGB to YCbCr integer to integer rgb2ycbcr() give float values.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2012년 7월 8일
편집: Walter Roberson 2012년 7월 8일
Does the information in the Help help you:
YCBCR = rgb2ycbcr(RGB) converts the truecolor image RGB to the equivalent image in the YCbCr color space. RGB must be a M-by-N-by-3 array.
If the input is uint8, YCBCR is uint8, where Y is in the range [16 235], and Cb and Cr are in the range [16 240]. If the input is a double, Y is in the range [16/255 235/255] and Cb and Cr are in the range [16/255 240/255]. If the input is uint16, Y is in the range [4112 60395] and Cb and Cr are in the range [4112 61680].

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by