possible bug -sigmoidal-contrast IM 6.7.5.7 Q16
Posted: 2012-02-27T12:39:29-07:00
IM 6.7.5.7 Q16 Mac OSX Snow Leopard
I am not sure if this is a bug or just a limitation and that the documentation needs changing?
The documentation on the options page says,
-sigmoidal-contrast contrastxmid-point
Increase the contrast of the image using a sigmoidal transfer function without saturating highlights or shadows. Contrast indicates how much to increase the contrast (0 is none; 3 is typical; 20 is a lot);
So I assume a value of -sigmoidal-contrast 0,50% would mean no change to the image. But I get a black image.
convert rose: -sigmoidal-contrast 0,50% rose_sigm_0x50.png
compare -metric rmse rose: rose_sigm_0x50.png null:
31915.9 (0.487005)
However, any tiny value for example 0.1 or even 0.00001, however, is virtually no change. (A value of 1 is too much).
convert rose: -sigmoidal-contrast 0.1,50% rose_sigm_0p1x50.png
compare -metric rmse rose: rose_sigm_0p1x50.png null:
0 (0)
convert rose: -sigmoidal-contrast 0.00001,50% rose_sigm0p00001x50.png
compare -metric rmse rose: rose_sigm0p00001x50.png null:
0 (0)
convert rose: -sigmoidal-contrast 1,50% rose_sigm1x50.png
compare -metric rmse rose: rose_sigm1x50.png null:
228.286 (0.00348342)
Should the code 1) automatically trap on zero and make it no-op, 2) or add some small number (quantumscale is too small and does not work) to the user provided argument or 3) should the docs be changed to indicate the smallest (or range of) non-zero values to use that results in no change?
I am not sure if this is a bug or just a limitation and that the documentation needs changing?
The documentation on the options page says,
-sigmoidal-contrast contrastxmid-point
Increase the contrast of the image using a sigmoidal transfer function without saturating highlights or shadows. Contrast indicates how much to increase the contrast (0 is none; 3 is typical; 20 is a lot);
So I assume a value of -sigmoidal-contrast 0,50% would mean no change to the image. But I get a black image.
convert rose: -sigmoidal-contrast 0,50% rose_sigm_0x50.png
compare -metric rmse rose: rose_sigm_0x50.png null:
31915.9 (0.487005)
However, any tiny value for example 0.1 or even 0.00001, however, is virtually no change. (A value of 1 is too much).
convert rose: -sigmoidal-contrast 0.1,50% rose_sigm_0p1x50.png
compare -metric rmse rose: rose_sigm_0p1x50.png null:
0 (0)
convert rose: -sigmoidal-contrast 0.00001,50% rose_sigm0p00001x50.png
compare -metric rmse rose: rose_sigm0p00001x50.png null:
0 (0)
convert rose: -sigmoidal-contrast 1,50% rose_sigm1x50.png
compare -metric rmse rose: rose_sigm1x50.png null:
228.286 (0.00348342)
Should the code 1) automatically trap on zero and make it no-op, 2) or add some small number (quantumscale is too small and does not work) to the user provided argument or 3) should the docs be changed to indicate the smallest (or range of) non-zero values to use that results in no change?