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?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by