How I want to segment the three different fruits by using the color intensity of each fruit?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170573/image.png)
0 commentaires
Réponses (2)
Blue Bird
le 3 Déc 2017
There are two examples from MathWorks that may be useful.
The first one transforms RGB to LAB. Components A and B are colors without the disturbance of light. By considering the distance between the standard colors to colors in your figure, the fruits may be separated. We may do a little change on this example, e.g. calculating histograms of colors for different fruit. See ‘. Color-Based Segmentation Using the L*a*b* Color Space’ .
The second one collects the similar colors with clus tering technology. MATLAB can automatically generate the code that you want. See Segment Image Using Auto Cluster.
0 commentaires
Image Analyst
le 3 Déc 2017
Maybe try rgb2ind() telling it that there are 6 or 7 colors (white, black, red, orange, yellow, light green, dark green) and see what it comes up with.
0 commentaires
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!