pixel label image must have 3 channels when RGB triplet pixel label IDs are specified
2 ビュー (過去 30 日間)
古いコメントを表示
When tried to run segmentation program , following error occured
3 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!