06-07-2006 05:40 PM
06-08-2006 01:01 AM
08-23-2019 01:24 PM
"Decimate (single shot).vi" will give you a binning in one dimension if you set the "averaging" to TRUE. So you can run this on all of the rows, then on the resultant columns.
08-23-2019 01:59 PM
(Wow, this was an very old thread (>>10 years!) you revived here! :D)
Here's what I would probably do (but probably more scalable so a reduction factor is an input and sanity checks are performed if the input sizes are not correctly divisible).
08-26-2019 08:53 AM
I like your solution. Should be faster.
08-26-2019 10:52 AM
@D* wrote:
"Decimate (single shot).vi" will give you a binning in one dimension if you set the "averaging" to TRUE. So you can run this on all of the rows, then on the resultant columns.
For the "Input bin" and averaging=false you will get the same result, as for averaging=true.
But, for the "Input averaging" and averaging=false you will get different results.
08-26-2019 10:54 AM - edited 08-26-2019 10:56 AM
-
09-28-2021 07:06 AM
Hey. In case anyone else encounters the need to bin 2d arrays, i made this VI :
You can also bin separately along X and Y axis. In case the bin value does not exactly divide array size, it acts as if zeros were added.
09-28-2021 07:08 AM
Hey. For the binning case on 2d arrays, i started from the answer below and extended the case to independant X-Y binning, and binning values different than 2. In case anyone else encounters the need to bin 2d arrays, feel free to use this VI :
09-28-2021 10:24 AM
Hi Adrien,
@Dr.Adrien wrote:
In case anyone else encounters the need to bin 2d arrays, feel free to use this VI :
Even as you posted the very same message twice in different threads you failed to provide that VI with both messages!
All we got from you are two images, but no VI. Not even a snippet…
(Please clean up the VI before attaching the real code.)