LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a scalar value to the 2d array of subtracted image data

Hi All,

 

I have a Vi which do the image subrtaction, basically subtracting a video grab from a still image, What I want to do is get the signed image data and add a scalar value like 128 or 255 to final subtracted image and display that image. Attached is the vi please let me know where I am doing wrong and how can I make it right,

 

 

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

I do not have the Visions VIs so I cannot tell mauch about what your program is doing.

 

The standard arithmetic functions are polymorphic, meaning that they will work with many numeric data types. In particular the Add and Subtract pimitives will accept an array on one input and a scalar on the other.  The output will be an array the same size as the input array with the scalar value added to or subtracted from each value in the input array.

 

Lynn

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

Those nested loops aren't realy necessary (Nor is wiring the sizes to the N terminals.  Auto indexing takes care of that for you)

 

!0.png

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 4
(2,638 Views)

@JÞB wrote:

Those nested loops aren't realy necessary (Nor is wiring the sizes to the N terminals.  Auto indexing takes care of that for you)

 

!0.png

 


Hi all,

 

Thanks for the response was really helpful, I have one more problem, not able to convert the live video image into array, should I be something different? as of now whenever I try to execute the vi , the image toa array  doesnt display the array , probing the same it says "not executed".

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