Effacer les filtres
Effacer les filtres

Splitting an object in an image into segments

1 vue (au cours des 30 derniers jours)
Jennifer
Jennifer le 18 Juil 2013
I have a number of wavy lines in a logical image. Using bwlabel I am able to get the individual pixel indices for each line.
I was wondering if there is a way to select, on a single line, where you want to split it into segments, and return the pixel indices separately for the each segment a line is split into?

Réponse acceptée

Image Analyst
Image Analyst le 18 Juil 2013
I'd probably use riopolyold() to let the user select where she wants to split the blob - draw a region around the middle. Then use inpolygon() on the PixelIdxList returned from regionprops to determine if a given pixel in the blob is in the polygon (so it's in the middle third drawn by the user) or which side it's on.
  1 commentaire
Jennifer
Jennifer le 22 Juil 2013
Thank you for your help.

Connectez-vous pour commenter.

Plus de réponses (1)

Elisa
Elisa le 18 Juil 2013
In one I don't know...
But using few lines, after bwlabel, I would use regionprops with area propertie...In a third line, cut that piece of the matrix...

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by