Alignment of rice grains
Afficher commentaires plus anciens
i want a code that aligns rice grains in a straight line. the image shows that the rice kernels are scattered around in different position. i want to change orientation of the kernels so that they appear in same position and also they are placed according to their size.
3 commentaires
Start with:
- binarize the image
- use regionprops() to get bounding box, orientation, and area of all objects in the binary image
- bounding box information to extract the objects
- use orientation and imrotate() to orient the sub-images
- use area to arrange them as you see fit
or something like that.
sana fatima
le 2 Juin 2021
Rik
le 2 Juin 2021
DGM did help you. Now it is your turn: show what you have tried and which specific step is giving you trouble implementing it.
Réponses (0)
Catégories
En savoir plus sur Biotech and Pharmaceutical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!