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

조회 수: 1 (최근 30일)
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

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

답변 (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 CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by