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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!