Clear Filters
Clear Filters

How to label a picture according to the color of pixels

1 view (last 30 days)
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?

Answers (1)

Pratham Shah
Pratham Shah on 25 Apr 2023
Hi Muchen!
You can use 'categorical' function to convert array into lable form.

Community Treasure Hunt

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

Start Hunting!