« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for histogramElements (0.001 sec.)
Imagick::getImageHistogram — 画像のヒストグラムを取得する | PHP 8.3 11228
Imagick::getImageHistogram (PECL imagick 2, PECL imagick 3) Imagick::getImageHistogram — 画像のヒストグラムを取得する 説明 public function Imagick::getImageHistogram (): array 画像のヒストグラムを ImagickPixel オブジェクトの配列で返します。 ... ー時に ImagickException をスローします。 例 例1 Generates Imagick::getImageHistogram() <?php function getColorStatistics ( $histogramElements , $colorChannel ) { $colorStatistics = []; foreach ( $histogramElements as $histogramElement ) { $color = $histogramElemen ... ht lead to bad results for images that are pathologically 'pixelly' $imagick -> adaptiveResizeImage ( 200 , 200 , true ); $histogramElements = $imagick -> getImageHistogram (); $histogram = new \Imagick (); $histogram -> newpseudoimage ( $histogramWidth , $histog ... ry , $item ) { if ( $item > $carry ) { return $item ; } return $carry ; }; $colorValues = [ 'red' => getColorStatistics ( $histogramElements , \Imagick :: COLOR_RED ), 'lime' => getColorStatistics ( $histogramElements , \Imagick :: COLOR_GREEN ), 'blue' => getCol ...
https://man.mtool.work/php/8.3/imagick.getimagehistogram.html
ImagickPixel::getColorCount — この色に関連付けられている色カウントを返す | PHP ... 7485
ImagickPixel::getColorCount (PECL imagick 2, PECL imagick 3) ImagickPixel::getColorCount — この色に関連付けられている色カウントを返す 説明 public function ImagickPixel::getColorCount (): int この色に関連付けられている色カウントを返します。 ... ImagickPixel getColorCount() <?php $imagick = new \Imagick (); $imagick -> newPseudoImage ( 640 , 480 , "magick:logo" ); $histogramElements = $imagick -> getImageHistogram (); $lastColor = array_pop ( $histogramElements ); echo "Last pixel color count is: " . $l ...
https://man.mtool.work/php/8.3/imagickpixel.getcolorcount.html
PREV 1 NEXT