puzzled about luminance - possible bug
Posted: 2008-04-30T16:49:03-07:00
I just checked IM 6.4.1-0 Q16-hdri for channels:
(reference and follow-up to viewtopic.php?f=3&t=10984)
convert -list channel
All
Alpha
Black
Blue
Cyan
Default
Gray
Green
Hue
Index
Lightness
Luminance
Luminosity
Magenta
Matte
Opacity
Red
Saturation
Yellow
1) I see lightness, luminance and luminosity. I was under the impression that in -fx luminosity was replaced by lightness. Is there a difference here between these 3 channels? or at least between lightness and luminosity?
2) I tried to make a comparison as follows just for luminance:
convert rose: -channel luminance -fx "u" rose_channel_fx_luminance.png
convert rose: -fx "luminance" rose_fx_luminance.png
compare -metric rmse rose_channel_fx_luminance.png rose_fx_luminance.png null:
36451.2 (0.55621)
Should they be the same or am I misunderstanding how to do this.
3) Is there a colorspace equivalent to either of the above, e.g.
convert rose: -colorspace ??? -channel luminance -separate rose_luminance.png
and would this colorspace be Rec601Luma or Rec709Luma
4) or should either
convert rose: -colorspace Rec601Luma rose_luma601.png
or
convert rose: -colorspace Rec709Luma rose_luma601.png
match one of the following:
convert rose: -channel luminance -fx "u" rose_channel_fx_luminance.png
or
convert rose: -fx "luminance" rose_fx_luminance.png
This is low priority, but a clarification when convenient would be appreciated.
Thanks
Fred
(reference and follow-up to viewtopic.php?f=3&t=10984)
convert -list channel
All
Alpha
Black
Blue
Cyan
Default
Gray
Green
Hue
Index
Lightness
Luminance
Luminosity
Magenta
Matte
Opacity
Red
Saturation
Yellow
1) I see lightness, luminance and luminosity. I was under the impression that in -fx luminosity was replaced by lightness. Is there a difference here between these 3 channels? or at least between lightness and luminosity?
2) I tried to make a comparison as follows just for luminance:
convert rose: -channel luminance -fx "u" rose_channel_fx_luminance.png
convert rose: -fx "luminance" rose_fx_luminance.png
compare -metric rmse rose_channel_fx_luminance.png rose_fx_luminance.png null:
36451.2 (0.55621)
Should they be the same or am I misunderstanding how to do this.
3) Is there a colorspace equivalent to either of the above, e.g.
convert rose: -colorspace ??? -channel luminance -separate rose_luminance.png
and would this colorspace be Rec601Luma or Rec709Luma
4) or should either
convert rose: -colorspace Rec601Luma rose_luma601.png
or
convert rose: -colorspace Rec709Luma rose_luma601.png
match one of the following:
convert rose: -channel luminance -fx "u" rose_channel_fx_luminance.png
or
convert rose: -fx "luminance" rose_fx_luminance.png
This is low priority, but a clarification when convenient would be appreciated.
Thanks
Fred