12-23-2008 04:00 PM - edited 12-23-2008 04:03 PM
Is there an equivalent for the 'Add Array Elements Function '
that will work on INTEGER numbers?
CSK
Here is my code so far... I want to take 10 pixels of input array INT,
sum them, then place in new output array, reducing the array by a
factor of 10, repeat.
12-23-2008 04:09 PM - edited 12-23-2008 04:10 PM
Hi,
Here the problem looks like....Auto Indexing enabled for the input array given to the for loop where you are adding 10 adjacent elements.......disable that indexing would allow you to take array into the for loop , otherwise it takes an element instead of an array........in case of 1-D array......
U need to right click on the node connected from array and disable indexing.........
12-23-2008 07:47 PM - edited 12-23-2008 07:48 PM
"Add array elements" works with integer representations, the problem is that you don't have an array because you autoindex at the loop boundary.
Here's a simple way to decimate an array by summing 10 adjacent elements. (This assumes the input size is an integer multiple of 10)