LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Higher maths on an IMAQ image

Hi everyone,

 

I was wondering if there is any way to perform mathematical operations on an IMAQ image, such as multiplication of the grey scale values by a constant or by their co-ordinates in the image.

 

I don't want to have to convert it to an array and use for loops, since this is very inefficient and may be the cause of some of the problems mentioned in my other thread.

 

Thanks!

0 Kudos
Message 1 of 4
(2,543 Views)

yes, you have IMAQ functions for that :

 

imaq.png

 

imaq2.png

 

If you want to multiply each pixel value by its coordinate I think you will have to code it yourself.

If you have IMAQ installed you can also go through the examples that come with it to see how to use these functions.

Another good source of information for image processing is the NI Vision Concept Manuel.

 

Hope this helps


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

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 4
(2,540 Views)

Thanks, these IMAQ functions will be helpful, but the pixel co-ordinate operations are really what I was looking for.

 

When you say "you will have to code it yourself", does that mean I will have to use arrays and for loops anyway? Or is there some way to code for such operations on images?

 

Steve

0 Kudos
Message 3 of 4
(2,527 Views)

You could create an image whose values are the coordinates (would presumably look like a ramp or gradient) and multiply that by your original image.

 

There are certainly many other things you can't do using the IMAQ functions, so if you want to support an easy way to do more, please tick this idea!

0 Kudos
Message 4 of 4
(2,507 Views)