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.
cylindrical color spaces
- GreenKoopa
- Posts: 457
- Joined: 2010-11-04T17:24:08-07:00
- Authentication code: 8675308
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: cylindrical color spaces
As far as I know, HSV like any colorspace is defined in absolute terms, not relative to the previous colorspace.
Hence a command like ...
... will give the same result (within rounding error) whatever the value of X.
Hence a command like ...
Code: Select all
convert in.png -colorspace X -colorspace HSV ...
snibgo's IM pages: im.snibgo.com