08-18-2008 05:17 PM
Hi
I am pretty new to labview. I need to make 250x250 array filled with value 300, so I can substract this array from an array derived from an image (for background substraction). How can I do this?
thanks.
08-18-2008 06:31 PM
08-18-2008 06:45 PM - edited 08-18-2008 06:45 PM
Well, you don't tell us how you are doing it, so here's the correct way.
You pose the question wrong, because you don't need to create a 2D array at all, you can just subtract a scalar from the 2D array and LabVIEW does the rest. Is that what you got?
08-18-2008 06:51 PM
reallly?
when i subtract it, it just doesnt let me put in constant. it asks me to put a 2d array. the thing is that I have a imaq vision (yes that $3200) and it had subtract operator... but I'd love to know how you did this though.
08-18-2008 07:25 PM - edited 08-18-2008 07:25 PM
Sorry, I don't have the vision stuff, but if you use the plain subtract primitive from the numeric palette, subtracting a scalar from a 2D array should work without problem.
Maybe you are trying to use a more complicated tool designed to subtract two images from each other?
sl2obel2ts wrote:when i subtract it, it just doesnt let me put in constant. it asks me to put a 2d array.
How doesn't it "let you"? How does it "ask"? Do you simply get a broken wire?
Can you explain?
08-18-2008 07:38 PM