Creation of an automatic polyline
Show older comments
My objective is to create an automatic polyline in the attached image, which is a tube with a bubble, so i can aproximate the area of the bubble to any polygon. I don't know which function or command to use. I searched for references on the internet and the only thing i found was the construction of a "manual" polyline (link below). Can anybody help me?
Thanks in advance!
7 Comments
Turlough Hughes
on 11 Mar 2020
Yea that's very possible. How did you get the green line in the first place?
Turlough Hughes
on 12 Mar 2020
What is your reason for doing this by the way? I assume you want to manually adjust the perimeter once you setup a polyline or something like that.
Can you upload the binary image by saving the variable as a .mat file and attaching it to the question?
Image Analyst
on 14 Mar 2020
This just looks like a big white blob. Can you attach the original gray scale or RGB image also, along with the code you used to segment it and create that binary image?
And I'm not sure what "I need it to make an approach of the bubble area as a semi ellipse, take this area and make a rotation to calculate it's volume." means. Do you just want to fit an ellipse to the white blob? If so calling regionprops() and asking for MajorAxisLength and MinorAxisLength is enough for you to get a volume (assuming rotation symmetry out of the plane). I don't see why rotation is needed.
Rik
on 11 Jun 2020
Why did you edit away all your questions? That is very rude.
Turlough Hughes
on 17 Jun 2020
I second that.
Rik
on 17 Jun 2020
Creation of an automatic polyline
My objective is to create an automatic polyline in the attached image, which is a tube with a bubble, so i can aproximate the area of the bubble to any polygon. I don't know which function or command to use. I searched for references on the internet and the only thing i found was the construction of a "manual" polyline (link below). Can anybody help me?
Thanks in advance!

Rena Berman
on 12 Oct 2020
(Answers Dev) Restored edit
Accepted Answer
More Answers (0)
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!