Borrar filtros
Borrar filtros

How to measure spray penetration length and spray area?

4 visualizaciones (últimos 30 días)
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 comentarios
I Komang Gede Tryas Agameru Putra
I Komang Gede Tryas Agameru Putra el 5 de Ag. de 2023
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 Komang Gede Tryas Agameru Putra el 5 de Ag. de 2023
I think the issue has been resolved, thank you very much for giving the insight.
Best Regards!

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 5 de Ag. de 2023
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 comentarios
I Komang Gede Tryas Agameru Putra
I Komang Gede Tryas Agameru Putra el 7 de Ag. de 2023
Dear Image Analyst,
Thank you for giving the insight!
Best Regards.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by