We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"-function polynomial" gives slightly wrong answers on Windows 8.1, 7.0.10-27.
See also my previous report, https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=37520
f:\prose\PICTURES>%IMG7%magick xc:gray(50%) +write txt: -function polynomial 1,0 txt: # ImageMagick pixel enumeration: 1,1,65535,gray 0,0: (32767.5) #800080008000 gray(50%) # ImageMagick pixel enumeration: 1,1,65535,gray 0,0: (32211.3) #7DD37DD37DD3 gray(49.1512%) <=== wrong answer
Windows 8.1.
IM version information:
f:\prose\PICTURES>%IMG7%magick -version Version: ImageMagick 7.0.10-27 Q16 x64 2020-08-10 http://www.imagemagick.org Copyright: Copyright (C) 1999-2018 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Visual C++: 192628806 Features: Cipher DPC HDRI Modules OpenCL OpenMP(2.0) Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr lzma openexr pangocairo png ps raw rsvg tiff webp xml zlib
The text was updated successfully, but these errors were encountered:
It seems to work fine for me on Mac OSX with IM 7.0.10.27 Q16.
magick xc:"gray(50%)" +write txt: -function polynomial 1,0 txt: # ImageMagick pixel enumeration: 1,1,65535,gray 0,0: (32767.5) #800080008000 gray(50%) # ImageMagick pixel enumeration: 1,1,65535,gray 0,0: (32767.5) #800080008000 gray(50%)
Sorry, something went wrong.
Thanks, Fred. Yes, this seems to be a Windows-only problem.
This appears to be a rounding issue in the OpenCL code. The C codes uses double but the OpenCL code uses float instead.
double
float
No branches or pull requests
Prerequisites
Description
"-function polynomial" gives slightly wrong answers on Windows 8.1, 7.0.10-27.
See also my previous report, https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=37520
Steps to Reproduce
System Configuration
Windows 8.1.
IM version information:
The text was updated successfully, but these errors were encountered: