How to label a picture according to the color of pixels
2 ビュー (過去 30 日間)
古いコメントを表示
I want to label a set of pictures like this one, which are only made up of three colors. I'm currently using Image labeler (more specificly the flood fill) to label its pixels. However it cost to much time. I want to assign labels to each pixels according to the color of the pixel. Can anyone help me?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1364358/image.png)
0 件のコメント
回答 (1 件)
Pratham Shah
2023 年 4 月 25 日
Hi Muchen!
You can use 'categorical' function to convert array into lable form.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!