Difference threshold value
Posted: 2007-11-19T09:20:09-07:00
Hi magick,
I'd like to make a suggestion concerning the compare utility.
Currently, the comparison of two images works as follows:
If all color channels of pixel (x,y) of image A are equal to all color channels of pixel (x,y) of image B, this pixel is overlayed with 90 % white. If only one color channel differs, this pixel is overlayed with 90 % magenta.
I'd like to suggest to make this a little bit more flexible. An option like "-diff-threshold <value>" is 0 by default (current behaviour). If this value is set to 2, the following would be understood as an equal pixel as well:
difference in G --> 1
difference in B --> 0
sum: 2
Background of this question:
We have experienced slight color differences when having either the PowerPC or the Intel Mac architecture while using Adobe InDesign CS3 resp. QuarkXPress 7 and working with transparencies. Such problems can be reproduced, meaning that you have a document with transparencies in InDesign and create a PDF document using a PowerPC and then using an IntelMac. When you then compare these PDF documents, you will recognize magenta-colored pixels. Moreover, this is not a problem of the RIP (e.g. Ghostscript, Photoshop). You can prove that this problem already exists in the PDF document.
In addition to that I a sure that such comparison threshold value would be nice, since these color differences can only be measured but not be seen.
By the way, this "problem" has already been confirmed by Adobe.
What do you think about this idea?
Thanks a lot in advance for your comments!
Kind regards,
Sven
I'd like to make a suggestion concerning the compare utility.
Currently, the comparison of two images works as follows:
If all color channels of pixel (x,y) of image A are equal to all color channels of pixel (x,y) of image B, this pixel is overlayed with 90 % white. If only one color channel differs, this pixel is overlayed with 90 % magenta.
I'd like to suggest to make this a little bit more flexible. An option like "-diff-threshold <value>" is 0 by default (current behaviour). If this value is set to 2, the following would be understood as an equal pixel as well:
- Pixel (x,y) of image A is R80, G80, B80
- Pixel (x,y) of image B is R81, G79, B80
difference in G --> 1
difference in B --> 0
sum: 2
Background of this question:
We have experienced slight color differences when having either the PowerPC or the Intel Mac architecture while using Adobe InDesign CS3 resp. QuarkXPress 7 and working with transparencies. Such problems can be reproduced, meaning that you have a document with transparencies in InDesign and create a PDF document using a PowerPC and then using an IntelMac. When you then compare these PDF documents, you will recognize magenta-colored pixels. Moreover, this is not a problem of the RIP (e.g. Ghostscript, Photoshop). You can prove that this problem already exists in the PDF document.
In addition to that I a sure that such comparison threshold value would be nice, since these color differences can only be measured but not be seen.
By the way, this "problem" has already been confirmed by Adobe.
What do you think about this idea?
Thanks a lot in advance for your comments!
Kind regards,
Sven