Divide any blob into half

1 Ansicht (letzte 30 Tage)
Hg
Hg am 3 Jun. 2015
Kommentiert: Image Analyst am 9 Jun. 2015
I would like to find the equation of a line that passes through the centroid of a blob so that I can divide the blob into half. How can I achieve this after I get the centroid from regionprops() ?
  5 Kommentare
Image Analyst
Image Analyst am 5 Jun. 2015
Like I asked before (and you didn't answer)...Why do you want to do this? Give us some context. Like Guillaume said, you could pick any angle.
Hg
Hg am 7 Jun. 2015
I'm cropping an image and one of the criteria is to reduce the size of a "long" blob by removing half of it.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 8 Jun. 2015
Hg says the real need is for "cropping an image and one of the criteria is to reduce the size of a "long" blob by removing half of it." You can do that with imerode. But I asked for the context and you still haven't provided that. Why would you want to reduce the size of your segmented blobs by half? What is the point in doing that?
  7 Kommentare
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh am 9 Jun. 2015
Guys, what's PixelList? Is it the perimeter of the blob?
Image Analyst
Image Analyst am 9 Jun. 2015
PixelList is a list of the (x,y) coordinates of all the pixels in each blob. Perimeter is a separate measurement that you can ask for.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by