Problems with Reading RGB color images
1 回表示 (過去 30 日間)
古いコメントを表示
Sunusi Abdullahi
2020 年 3 月 28 日
コメント済み: Sunusi Abdullahi
2020 年 4 月 2 日
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/280302/image.jpeg)
Hi all, Please can anyone help me fix this error as well, I dont know how to handle the data, thank you
採用された回答
Srivardhan Gadila
2020 年 4 月 2 日
Refer to the explanation of pixelLabelIDs input argument for pixelLabelDatastore and make sure the following while loading the pixel Label images:
- If your pixel label images are RGB images then for the pixelLabelIDs input argument mention the RGB triplet as m-by-3 matrix where m corresponds to the number of class names. Each row contains a 3-element vector representing the RGB pixel value to associate with each class name. Vectors must be unique. Use this format for pixel label data stored as RGB images.
- If your pixel label images are grayscale then for the pixelLabelIDs input argument mention the m-by-1 matrix where m corresponds to the number of class names.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!