cylindrical color spaces

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
GreenKoopa
Posts: 457
Joined: 2010-11-04T17:24:08-07:00
Authentication code: 8675308

cylindrical color spaces

Post by GreenKoopa »

Are the cylindrical color spaces (HSV/HSB, HSL, HSI, HWB, HCL) inherently sRGB-based? I have always thought of them as mathematical constructs that could be applied to any RGB colorspace, but I discovered that ImageMagick implicitly expands
convert hald:10 -set colorspace RGB -colorspace HSL ...
to
convert hald:10 -set colorspace RGB -colorspace sRGB -colorspace HSL ...
where "hald:10 -set colorspace RGB" represents any linear RGB image.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: cylindrical color spaces

Post by snibgo »

As far as I know, HSV like any colorspace is defined in absolute terms, not relative to the previous colorspace.

Hence a command like ...

Code: Select all

convert in.png -colorspace X -colorspace HSV ...
... will give the same result (within rounding error) whatever the value of X.
snibgo's IM pages: im.snibgo.com
Post Reply