How to label a picture according to the color of pixels

1 回表示 (過去 30 日間)
Muchen Wang
Muchen Wang 2023 年 4 月 23 日
回答済み: Pratham Shah 2023 年 4 月 25 日
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.

Community Treasure Hunt

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

Start Hunting!

Translated by