03-07-2012 12:20 PM
This image shows the output array I want from an input array.
What is the best way to do this? (Best meaning fastest and most memory efficient).
I want to double the size of an image. I don't have IMAQ. I know about the zoom factor on image controls but that is not what I want.
Solved! Go to Solution.
03-07-2012 12:38 PM - edited 03-07-2012 12:39 PM
Sorry I realized that I only did it one way.
03-07-2012 12:46 PM - edited 03-07-2012 12:47 PM
03-07-2012 12:53 PM
ok here is mine
03-07-2012 01:00 PM
Hi,
I did a solution using in-place memory, for best performance.
Best Regards,
03-07-2012 01:06 PM - edited 03-07-2012 01:09 PM
A small revision
03-07-2012 01:10 PM - edited 03-07-2012 01:12 PM
I whent for the IPE as well but used a logical shift to avoid the mutiply by 2s
OK Steve- Benchmark 'em
03-07-2012 01:12 PM
and one more revision maks it so you can add how ever many copies you want.
03-07-2012 01:47 PM - edited 03-07-2012 01:57 PM
Thanks everyone!
I did some benchmarking. These are the results (vis set to high priority no debug)
Converting a 5000x5000 array, times in seconds
Luis .43
Jeff .43
Ben64 2.5
aeastet .669
It is a tie between Jeff and Luis. Since the only way I can think of to decide who gets the solution is whoever posted first it goes to Luis.
03-07-2012 02:03 PM
Hi,
Thanks
A more thing, you can enable loop iteration parallelism for get better time.
Best Regards,