How to measure spray penetration length and spray area?
7 次查看(过去 30 天)
显示 更早的评论
I Komang Gede Tryas Agameru Putra
2023-8-3
评论: I Komang Gede Tryas Agameru Putra
2023-8-7
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 个评论
采纳的回答
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)
props = regionprops(binaryImage, 'BoundingBox');
topRow = props.BoundingBox(2) + 0.5
bottomRow = topRow + props.BoundingBox(4) - 1
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!