octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GM-core] Does GraphicsMagick encapsulate littlecms functionality?


From: Patrick Noffke
Subject: Re: [GM-core] Does GraphicsMagick encapsulate littlecms functionality?
Date: Wed, 19 Jun 2013 15:31:58 -0500

On Wed, Jun 19, 2013 at 2:44 PM, Bob Friesenhahn
<address@hidden> wrote:
> On Wed, 19 Jun 2013, Patrick Noffke wrote:
>
>> Hi,
>>
>> I'm interested in adding support to Octave for doing color transforms,
>> and my first thought was to directly use the littlecms library.  But
>> it was suggested that, since we use GraphicsMagick (Magick++) in
>> Octave's image package, and it appears GM has some support for at
>> least loading ICC profiles, it might make sense to use GM to do the
>> color transforms.
>>
>> Do you encapsulate any of the functions from littlecms in a class or
>> other API within GM?  If so, could you please give me an idea what
>> files to look in?
>
>
> GM has the ability to attach and/or apply CMS profiles.  The interface is
> really simple.  The code which does the work is in magick/profile.c.  Via
> Magick++ you can add a CMS profile (from memory) to an image or retrieve
> from the image to memory.
>
>
>> Since we have an indirect dependency on littlecms through GM, it might
>> just be easier to use littlecms directly, but I wanted to ask here to
>> make sure I wasn't reinventing any wheels.
>>
>> I'm interested in adding functionality to load ICC profiles into a
>> structure within Octave, and pass that structure down to functions (to
>> be written) for applying color transforms.  These will operate mostly
>> on images, but can be used for any data from within Octave.  In other
>> words, if any API is tied to an image within GM, it might be difficult
>> to use in Octave.
>
>
> CMS APIs in GraphicsMagick are intended to work on images in
> GraphicsMagick's own representation.  If your data can not be turned into a
> GM image then you would want to use lcms APIs directly.
>
> Bob
> --
> Bob Friesenhahn
> address@hidden, http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

Thanks!

I'm copying the Octave maintainer's list.

Pat


reply via email to

[Prev in Thread] Current Thread [Next in Thread]