Search found 111 matches

by Dabrosny
2017-08-30T20:45:32-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

Whereas a non-Gray image is treated by IM as having nonlinear or linear values based solely on its colorspace irrespective of gamma I am not sure this is true. I think IM will make sure a linear image has gamma=1. ... But I will defer to the IM developers to correct my statements. A -colorspace RGB...
by Dabrosny
2017-08-30T16:05:42-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

rough draft of possible updated documentation for "-intensity" [slight edits]

In order to understand what -intensity does and how it replaces the old nonlinear and linear grayscale colorspaces, I did some experimentation and this "-intensity" documentation entry is based on what I believe is the actual behavior of IM 7 (at least in 7.0.6 x64 q16 HDRI). See my preced...
by Dabrosny
2017-08-30T15:40:15-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

some questions that arise from IM moving from linear & nonlinear grayscale colorspaces to just "Gray" with -intensity

Originally, I just wanted grayscale images (linear and nonlinear) to work the same as RGB and sRGB, but I discovered that grayscale images are now far more complex than color images, in the way that their linearity is not determined by their colorspace, and the -intensity affects not only how a gray...
by Dabrosny
2017-08-29T12:39:30-07:00
Forum: Bugs
Topic: [3 gamma=1 Gray imgs -combine: Will patch set colorspc RGB? -edit] round-trip error (-separate or -combine change gamma)
Replies: 5
Views: 7564

Re: [3 gamma=1 Gray imgs -combine: Will patch set colorspc RGB? -edit] round-trip error (-separate or -combine change ga

In IM 6.9.9.9 Q16 Mac OSX and -grayscale Rec709luminance, I get (same for IM 7.0.6.9 Q16 HDRI using magick) convert rose: -grayscale Rec709luminance -write rosegray.miff -separate rosegrayRGBseparated.miff ... So they are identical and after -separate, both are gamma=1 The grayscale image (result o...
by Dabrosny
2017-08-27T19:29:32-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

My point is that most external format do not keep track of linear vs non-linear and many do not even store the gamma. I simply wanted to show that internally, IM keeps track of that. Absolutely, and IM is very good at keeping track of that metadata. I just want to make sure we know what the expecte...
by Dabrosny
2017-08-27T15:42:25-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

So l2 will display as linear, but l3 will display as non-linear. I'm not sure precisely how you're defining "display as linear" (gamma=1? colorspace=RGB? intensity=rec*luminance? behavior of im display app?), but what I'm most interested in is how an image "displays" after IM ha...
by Dabrosny
2017-08-27T13:46:19-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

I would be able to modify the documentation. Feel free to write a draft. Okay, will do. But I am not sure I understand. The only way it "tags" the image as linear if via the gamma for external formats. With MIFF, you can look at the header to see if it linear or not, as I recall. Okay, I ...
by Dabrosny
2017-08-27T09:45:04-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

Fred, what would you think about the idea of something being added to the current documentation of "-intensity" just to at least state the fact that it tags the resulting Gray image as linear or nonlinear (so that IM knows how to correctly convert it back to a non-Gray colorspace)? I'd eve...
by Dabrosny
2017-08-26T16:19:09-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

I note that "-grayscale rec709luminance" and the other three all leave the gamma unchanged at 0.454545. In my opinion, the conversions to luma should set gamma to 1.0. But they do set the intensity settings. Perhaps IM is moving away from the use of gamma, towards the use of intensity set...
by Dabrosny
2017-08-26T12:13:17-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

A linear RGB image having R=G=B literally represents the same image as an sGray I do not agree with that. My mistake, I should have said that a linear RGB image having R=G=B literally represents the same image as an linear grayscale image with linear luminance ("Y" of XYZ if you like) hav...
by Dabrosny
2017-08-26T09:51:15-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

Storing the same data, or metadata, in multiple places isn't a good idea. What happens when the multiple values disagree with each other? Pixel values may represent linear data, or not. This information is currently represented by metadata (a) colorspace, (b) gamma and (c) profile. Fairly recently ...
by Dabrosny
2017-08-26T00:11:07-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

There is only one colorspace in IM for gray. But you can achieve many different forms of grayscale. I thought that was the real issue. To get linear gray and keep it linear when doing -separate and -combine. I showed that worked for me. The issue is to document the criteria by which a Gray image (c...
by Dabrosny
2017-08-25T23:12:00-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

Although in fact it seems clear from the formulas in the documentation that Lightness and Brightness always use the nonlinear (sRGB) values ... The documentation is misleading (or simply wrong). Okay, the documentation should be updated to move Lightness and Brightness into the "mathematical&q...
by Dabrosny
2017-08-25T22:49:32-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

But you can use -grayscale to convert to linear or non-linear grayscale using rec709luminance or rec709luma as well as rmse and average. So there are many different forms of grayscale. Not just one from -colorspace RGB. Just because a different formula (different coefficients) might have been used ...
by Dabrosny
2017-08-25T10:42:30-07:00
Forum: Bugs
Topic: [Proposed docs for "-intensity" now in thread for approval.] When converting a grayscale image to color...
Replies: 44
Views: 44232

Re: When converting a grayscale image to color: result differs depending on -intensity setting: rec*luma vs. rec*luminan

Is the "-intensity" setting a good way of flagging that data is linear? No, I don't think so. For one thing, when changing colorspaces, the "-intensity" setting is only used when the colorspace was Gray, Rec601Luma or Rec709Luma. I agree that -intensity isn't a good way (in fact...