08-12-2014 05:29 PM
Hey All,
I'm trying to create a 608 x 684 BMP image from an array. Is there an easy way to get an array that large? Can i create a smaller array to scale and then scale it up somehow?
Thanks
08-12-2014 05:58 PM
From the sounds of it, what you are looking for is the generation of a Pixmap. What do you wish to do with this array? Are you building it yourself, converting a picture into it or what?
608*684 is not really that large of a size for an array, but if you know the size before hand you will be better of preallocating then building dynamically.
08-12-2014 06:00 PM - edited 08-12-2014 06:02 PM
Hi
Can you use Vision Development System ?
If you can, an easy way is to use IMAQ function.
On this thread, Christopher W created nice example.
Please check it.
And then, use "Image to Array" function.
http://www.ni.com/example/30679/en/
Good luck.
08-12-2014 06:03 PM - edited 08-12-2014 06:04 PM
What is the representation of the array element (e.g. U8 grayscale or colormap? RGB?)
608 x 684 is NOT large!
How do you create the array? Why do you think you save memory if you create it small and the scale up? In the end, the scaled up array would still use the full size after all, nothing gained, and the smaller array would just be a waste of extra allocation.