10-15-2025 08:11 AM
I was using the picture you attached. Can you attach the new picture? Maybe you need to rotate or transpose it.
The picture from your post is attached here. Try with this one.
10-15-2025 08:12 AM - edited 10-15-2025 08:13 AM
The sample VI of altenbach works fine. So maybe your input image is rotated? You can rotate the image with an additional transpose 2D array function.
10-15-2025 08:17 AM
Here's a quick fix if the picture is rotated. (if both cases can occur, you could switch code based on which dimension is longer.)
10-15-2025 09:29 AM
Thanks albertbach, I think I used a different picture maybe. I will try to have some changes on the code to be able to do the same for different pictures and have a graph between number of lines and time.
10-15-2025 09:58 AM
Using this is rotating the picture 180 degrees.
10-15-2025 11:00 AM
@Omar-Abdelhameed wrote:
Using this is rotating the picture 180 degrees.
What is "this"?
10-15-2025 11:21 AM
I mean using this vi the transpose is rotating the picture 180 degrees. Something is going wrong in the picture since when I am editing the picture a rotate it 90 degrees clockwise and then rotate it 90 degrees counter clockwise, the first vi works fine! I think it would be on the image setting itself. can you please discuss what is 797 (which is pixels of zero line), and if I changed the pixels per line value, could it cause any error measurement? Thank you for your help.
10-15-2025 12:27 PM
You said that the alignment is always the same, so I noted the coordinate index of the wide black line. If that position can change, you need more code to find that notch in the graph.
10-16-2025 03:42 AM
Thank you for the clarification. The vi will be used to calculate the volume for 10 pictures per time and the pixels will be exactly the same for those, so the used will be responsible to enter 2 controls which are pixel of zero line and pixels per line. pixel per line per each run could be detected using external tool like paint, but the pixel of zero line would be detected using the same vi or another vi only to get that number from the chart, what do you think?
10-16-2025 08:38 AM
If these value are variable (pixels per line, position of zero, etc), a proper LabVIEW program can determine them from a deeper image analysis. It could even draw some lines and values on a picture indicator over the picture for visual verification. It could even allow manual adjustments where the user can click on the image to adjust.
Using external programs seems silly.