Package de.otto.jlineup.image
Class NtscYiqColorDifferenceCalculator
java.lang.Object
de.otto.jlineup.image.NtscYiqColorDifferenceCalculator
Logic converted from https://github.com/mapbox/pixelmatch, which has an ISC License
Idea taken from: http://www.progmat.uaem.mx:8080/artVol2Num2/Articulo3Vol2Num2.pdf
ISC License
Copyright (c) 2019, Mapbox
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublecolorDelta(int argb1, int argb2, boolean yOnly) static doublecolorDelta(BufferedImage img1, BufferedImage img2, int xPos, int yPos, boolean yOnly)
-
Constructor Details
-
NtscYiqColorDifferenceCalculator
public NtscYiqColorDifferenceCalculator()
-
-
Method Details
-
colorDelta
public static double colorDelta(BufferedImage img1, BufferedImage img2, int xPos, int yPos, boolean yOnly) -
colorDelta
public static double colorDelta(int argb1, int argb2, boolean yOnly)
-