« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for colorStatistics (0.001 sec.)
画像のヒストグラムを取得する 9357
« Imagick::getImageHeight Imagick::getImageIndex » PHP Manual Imagick 画像のヒストグラムを取得する 検索 Imagick::getImageHistogram (PECL imagick 2, PECL imagick 3) Imagick::getImageHistogram — 画像のヒストグラムを取得する 説明 public functi ... エラー / 例外 エラー時に ImagickException をスローします。 例 例1 Generates Imagick::getImageHistogram() <?php function getColorStatistics ( $histogramElements , $colorChannel ) { $colorStatistics = []; foreach ( $histogramElements as $histogramElement ) { $col ... nel ); $color = intval ( $color * 255 ); $count = $histogramElement -> getColorCount (); if ( array_key_exists ( $color , $colorStatistics )) { $colorStatistics [ $color ] += $count ; } else { $colorStatistics [ $color ] = $count ; } } ksort ( $colorStatistics ... ); return $colorStatistics ; } function getImageHistogram ( $imagePath ) { $backgroundColor = 'black' ; $draw = new \ImagickDraw (); $draw -> setStro ...
https://man.mtool.work/php/8.3/imagick.getimagehistogram.html
画像のヒストグラムを取得する 9357
« Imagick::getImageHeight Imagick::getImageIndex » PHP Manual Imagick 画像のヒストグラムを取得する 検索 Imagick::getImageHistogram (PECL imagick 2, PECL imagick 3) Imagick::getImageHistogram — 画像のヒストグラムを取得する 説明 public functi ... エラー / 例外 エラー時に ImagickException をスローします。 例 例1 Generates Imagick::getImageHistogram() <?php function getColorStatistics ( $histogramElements , $colorChannel ) { $colorStatistics = []; foreach ( $histogramElements as $histogramElement ) { $col ... nel ); $color = intval ( $color * 255 ); $count = $histogramElement -> getColorCount (); if ( array_key_exists ( $color , $colorStatistics )) { $colorStatistics [ $color ] += $count ; } else { $colorStatistics [ $color ] = $count ; } } ksort ( $colorStatistics ... ); return $colorStatistics ; } function getImageHistogram ( $imagePath ) { $backgroundColor = 'black' ; $draw = new \ImagickDraw (); $draw -> setStro ...
https://man.mtool.work/php/8.3/imagick.getimagehistogram.html
PREV 1 NEXT