Have Magick++ operating on an existing uint16_t (*Image)[3]
Posted: 2009-09-28T13:49:12-07:00
I have a probably trivial and simple question, but I don't find the answer nor do I get it working.
I want to use Magick++ as a library supporting image manipulations on an existing application.
That application stores a 16bit RGB image as uint16_t (*Image)[3].
Is there any way to construct an IM image along the lines of :
Magick::Image IM_Image(Width,Height,"RGB",ShortPixel,Image);
and then have IM does a transformation like
IM_Image.normalize() operating on the original data ?
Or do I need to go through a copy-in / copy-out based on setPixels etc ... ?
Thanks for clarification and/or (pointer to) sample code.
I want to use Magick++ as a library supporting image manipulations on an existing application.
That application stores a 16bit RGB image as uint16_t (*Image)[3].
Is there any way to construct an IM image along the lines of :
Magick::Image IM_Image(Width,Height,"RGB",ShortPixel,Image);
and then have IM does a transformation like
IM_Image.normalize() operating on the original data ?
Or do I need to go through a copy-in / copy-out based on setPixels etc ... ?
Thanks for clarification and/or (pointer to) sample code.