Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Changing the color of a shape in a test image

1 回表示 (過去 30 日間)
jason
jason 2014 年 11 月 12 日
閉鎖済み: DGM 2023 年 3 月 12 日
Now that each shape is classified into its group, how would i go about to add color to each shape, each shape must be colored according to group i.e squares all blue, circles all red,but shape that don't fall into the classification should be black in color. I used RGB2 below but i cant add the shapes together into an image with a white background. Is there any other method???
RGB2 = label2rgb(L==n, 'copper', 'w', 'noshuffle');

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by