problem with CDL: inverting and zero saturation
Posted: 2011-05-26T20:04:47-07:00
Hi all,
I am trying to use ASC CDL to
a) invert an image (negative)
b) removing all color (b&w negative)
c) I have to use CDL although I know there are other ways ;-)
this is my main code:
and here is cdl_Invert.txt:
If I set <Saturation> 1 </Saturation> everything is fine, just that I get a "color negative". But the very moment I use <Saturation> 0 </Saturation> the result is a non-inverted b&w image. Looks like Slope and Offset then are ignored.
I am using ImageMagick 6.6.6-5 2010-12-12 Q16 http://www.imagemagick.org
Bug or disability? Your help would be most welcome!
Thanks a lot and greetings from Germany
Andreas
I am trying to use ASC CDL to
a) invert an image (negative)
b) removing all color (b&w negative)
c) I have to use CDL although I know there are other ways ;-)
this is my main code:
Code: Select all
convert -cdl cdl_Invert.txt rose: rose_invert.jpg
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<ColorCorrectionCollection xmlns="urn:ASC:CDL:v1.2">
<ColorCorrection id="cc06668">
<SOPNode>
<Slope> -1 -1 -1 </Slope>
<Offset> 1 1 1 </Offset>
<Power> 1 1 1 </Power>
</SOPNode>
<SATNode>
<Saturation> 0 </Saturation>
</SATNode>
</ColorCorrection>
</ColorCorrectionCollection>
I am using ImageMagick 6.6.6-5 2010-12-12 Q16 http://www.imagemagick.org
Bug or disability? Your help would be most welcome!
Thanks a lot and greetings from Germany
Andreas