Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting average of measurements in an image

Solved!
Go to solution

 

Good morning everyone.

First of all thank you very much for being able to help and read this post.

 

I am trying to measure an object. To do that I use the CLAMP block (horizontal clamp, it does not matter if it is max or min distance).

The problem is that you can calculate the maximim or minimum distance between edges which are in a ROI with this VI.

But I would like to get the average of all measures that are in the ROI, since it can be obtained because this VI use them to know what is the maximum and minimun, but the problem is that I do not how to access them.

 

Any ideas to get the average?

 

Thanks a lot.

0 Kudos
Message 1 of 4
(3,532 Views)
Solution
Accepted by A.Salcedo

I would suggest to use the IMAQ rake instead of the clamp because it returns all the edges detected.

 

have a look at the attached vi I started from the clamp example vi and added a rake option.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 4
(3,522 Views)

It helped me a lot!!!! That is the solution!!!!

Thanks a lot!!!!

0 Kudos
Message 3 of 4
(3,369 Views)

glad it helped you 🙂


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 4
(3,365 Views)