error using rgb2gray

조회 수: 1 (최근 30일)
IP student ;(
IP student ;( 2019년 3월 5일
댓글: IP student ;( 2019년 3월 5일
image is in png format.
my code:
C= imread(rgb2gray(I));
error:
Error using rgb2gray>parse_inputs (line 80)
MAP must be a m x 3 array.
Error in rgb2gray (line 52)
isRGB = parse_inputs(X);
Error in DroseyeSvm (line 6)
C=imread(rgb2gray(B));

채택된 답변

Walter Roberson
Walter Roberson 2019년 3월 5일
C = rgb2gray( imread(FileNameGoesHere));
Or if you already have an image array in I then just
C = rgb2gray(I);
  댓글 수: 1
IP student ;(
IP student ;( 2019년 3월 5일
thank you

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by