フィルターのクリア

pixel label image must have 3 channels when RGB triplet pixel label IDs are specified

2 ビュー (過去 30 日間)
SC P
SC P 2021 年 1 月 4 日
回答済み: Antoni Woss 2022 年 7 月 22 日
When tried to run segmentation program , following error occured
  3 件のコメント
john
john 2022 年 1 月 10 日
Did you guys got the answer? I too have the same error
Fernando Perez
Fernando Perez 2022 年 7 月 22 日
Same error here!!

サインインしてコメントする。

回答 (1 件)

Antoni Woss
Antoni Woss 2022 年 7 月 22 日
This error is being thrown because of the second argument being passed to pixelLabelImageSource, pxdsTrain, which is of type ImageDatastore rather than PixelLabelDatastore. You need to ensure the second argument is of type PixelLabelDatastore (https://www.mathworks.com/help/vision/ref/pixellabeldatastore.html). The following documentation page gives more information on the function arguments: https://www.mathworks.com/help/vision/ref/pixellabelimagesource.html
Note from this documentation page that this function, pixelLabelImageSource, has been removed since R2018a.

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by