Re: Dealing with MONO12 images in memory
"Robert H. Olsen" <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
Thank you very much for your quick reply Bob.
This works very well when I limit the camera to MONO_8 images. I am
still having trouble with the 12 bit images, but I need to verify my own
code (I may have may some mistakes refactoring to use GraphicsMagick)
before I assume the problem is with how I am calling your functions.
Can you tell me where I can find the options for that final argument
"GRAY" in the image.read() function? I tried calling
ListMagickInfo_L("ListMagickInfoResult");
which looked like it might give me that sort of information, but I
probably either made a mistake in linking or scoping (or...) since I got
a message that the function couldn't be found.
Thanks again for your help.
On 11/21/17 14:06, Bob Friesenhahn wrote:
> On Tue, 21 Nov 2017, Bob Friesenhahn wrote:
>>
>> Another way to read it would then be:
>>
>> image.depth(16);
>> image.endian(LSBEndian);
>> image.read(blob,Geometry(arv_width, arv_height));
>
> Sorry, this would be
>
> image.depth(16);
> image.endian(LSBEndian);
> image.read(blob,Geometry(arv_width, arv_height),"GRAY");
>
> Bob
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot