How to measure spray penetration length and spray area?

4 次查看(过去 30 天)
Dear community member,
In order to continue processing data for the experiment results, I have to calculate the spray penetration length based on the spray image. Previously I got the code from Image Analyst to calculate the spray cone angle as a reference.
My current idea is to set the spray plume segmentation from the binary image first in order to define the spray boundary, then start to measure the along the Y axis from spray origin to the farthest point of the spray (Please refer to the attach. 1 images)
How I can proceed after getting the initial binary image? I tried to use bwboundaries function but didn't manage to get it right.
Then, if the spray plume segmentation is fully defined, can the spray area be calculated also? It would be very very helpful if these two cases can be solved.
Please kindly guide me to resolve this problem.
The image that will be processed is also attached.
Thank you again for your kindness and support.
  4 个评论
I Komang Gede Tryas Agameru Putra
Dear Daniel,
I didn't manage to insert the code that you gave. Could you please enligthen me where do I put that code?
I've attached the the code in the attachment.
Thank you again for your support.
I Komang Gede Tryas Agameru Putra
I think the issue has been resolved, thank you very much for giving the insight.
Best Regards!

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2023-8-5
There are several ways you can determine the starting and ending rows. I think the fastest is just this
[blobRows, blobColumns] = find(binaryImage);
topRow = min(blobRows)
bottomRow = max(blobRows)
You could also use regionprops and ask for the bounding box.
props = regionprops(binaryImage, 'BoundingBox');
topRow = props.BoundingBox(2) + 0.5
bottomRow = topRow + props.BoundingBox(4) - 1
  8 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by