|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-08-02 14:02 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-08-02 14:02 UTC] cmb@php.net
[2021-08-15 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 21 23:00:01 2025 UTC |
Description: ------------ When using getImageChannelStatistics, getImageChannelRange and getImageChannelMean for 32-bit FITS image file, results are invalid. Test script: --------------- $channel=imagick::CHANNEL_GRAY; $img = new Imagick(); $img->readImage('TestFile32.fit'); printf("getImageChannelRange = %s\n",print_r($img->getImageChannelRange($channel),TRUE)); printf("getImageChannelMean = %s\n",print_r($img->getImageChannelMean($channel),TRUE)); $sta=$img->getImageChannelStatistics(); printf("getImageChannelStatisctics = %s\n",print_r($sta[$channel],TRUE)); print_r($sta); $img->destroy(); Expected result: ---------------- getImageChannelRange = Array ( [minima] => 0 [maxima] => 4294967295 ) getImageChannelMean = Array ( [mean] => 93651004.9791211685 [standardDeviation] => 40492390.85557395135 ) getImageChannelStatisctics = Array ( [mean] => 93651004.9791211685 [minima] => 0 [maxima] => 4294967295 [standardDeviation] => 40492390.85557395135 [depth] => 32 ) Actual result: -------------- getImageChannelRange = Array ( [minima] => -9.3130836376076E-10 [maxima] => 65535 ) getImageChannelMean = Array ( [mean] => 1428.9791211685 [standardDeviation] => 617.85557395135 ) getImageChannelStatisctics = Array ( [mean] => 0 [minima] => 1.7976931348623E+308 [maxima] => -1.7976931348623E+308 [standardDeviation] => -0 [depth] => 1 )