Search Results

  1. Parameters ¶ color The ImagickPixel object to compare this object against. fuzz The maximum distance within which to consider these colors as similar. The theoretical maximum for this value is the square root of three (1.732).

  2. Simple usage example of `ImagickPixel::isSimilar ()`. The `ImagickPixel::isSimilar` function is used to calculate the distance between the current color represented by an `ImagickPixel` object and another color. This can be useful when comparing colors for similarity or when working with image processing and manipulation.

  3. im7.phpimagick.comImagickPixelisSimilarPHP Imagick - isSimilar

    Deprecated in favour of ImagickPixel::isPixelSimilar (). A distance of '1' is the maximum distance in the color space e.g. from 0, 0, 0 to 255, 255, 255 in RGB color space. The only difference between ImagickPixel::isSimilar and ImagickPixel::isPixelSimilar is that isSimilar needs to be scaled by the quantum value.

  4. Exemples Exemple #1 Exemple avec imagickpixel:: issimilar () <?php // Le test ci-dessous a été écrit avec une distance maximale de 255, // aussi, nous devons le mettre à l'échelle avec une racine carrée de 3 -

  5. ImagickPixel::isPixelSimilar — Check the distance between this color and another ImagickPixel::isSimilar — Check the distance between this color and another ImagickPixel::setColor — Sets the color ImagickPixel::setColorValue — Sets the normalized value of one of the channels ImagickPixel::setHSL — Sets the normalized HSL color PHP Manual

  6. Examples Example #1 ImagickPixel::isSimilar () <?php // The tests below are written with the maximum distance expressed as 255 // so we need to scale them by the square root of 3 - the diagonal length

  7. Checks the distance between the color described by this ImagickPixel object and that of the provided object, by plotting their RGB values on the color cube. If the distance between the two points is less than the fuzz value given, the colors are similar. Deprecated in favour of ImagickPixel::isPixelSimilar ().