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