How to calculate spray penetration length and spray cone angle?

47 vues (au cours des 30 derniers jours)
Zhenqi Hu
Zhenqi Hu le 1 Nov 2024 à 13:51
Réponse apportée : Image Analyst le 3 Nov 2024 à 1:40
In order to continue processing data for the experiment results, I have to calculate the spray penetration length based on the spray image. Most of the cases In this case, the spray is mostly a single beam, but to be more realistic, how to calculate the spray penetration distance and spray cone Angle if have more sprays per image? If you guys have any ideas to solve this problem, please help.
  2 commentaires
William Rose
William Rose le 1 Nov 2024 à 15:17
It depends partly on how much you want to automate the proesss. If you have more user inut on each image then the amount of fancy image processing will be less, and vice versa.
I dont understand your question "In this case, the spray is mostly a single beam, but to be more realistic, how to calculate the spray penetration distance and spray cone Angle if have more sprays per image?" Are a beam and a cone the same thing? The six images you provided appear to be a time lapse set , and each shows nine spray cones. By angle, do you mean the angle between cones (40 degrees, since there are 9 equally spaced) or the angle of each cone?
I recommend you download this image segmentation tutorial by @Image Analyst from the File Exchange. And maybe some of @Image Analyst 's other contributions - see a list here.
Zhenqi Hu
Zhenqi Hu le 2 Nov 2024 à 14:15
The objective of this study is to investigate the temporal evolution of spatial distribution uniformity for multiple sprays. It is essential to examine the spray cone angle and penetration distance for each spray at a specific time, as well as their variations over time, in order to comprehend the developmental patterns of sprays.
Any help would be really appreciated!
Thank you very much

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 3 Nov 2024 à 1:40
It looks pretty easy. The steps would be
  1. Threshold the first image and use regionprops to find the centroid of the center spot (xCenter, yCenter)
  2. Use imabsdiff to compute the difference of the current image from the first image.
  3. Threshold it to find the spray "arms".
  4. Use convhull() to find the locations of the convex hull vertices, which will be the tips of the arms.
  5. For each arm, compute the distance of its tip to the center (yCenter, yCenter).
  6. Zero out the center of the mask to isolate the 9 arms.
  7. Label the image with bwlabel.
  8. Loop over all labels, using ismember() to extract each spray arm mask one at a time.
  9. For each arm, determine the that spray's cone angle. I attach an old example that you can adapt.

Community Treasure Hunt

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

Start Hunting!

Translated by