java.lang.Object
com.github.hypfvieh.imaging.AbstractImgHash
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected StringbitmaskToHex(boolean[] bitMask, int _minLen) Converts a bitmask (array of boolean) to a hex string.protected int[]createPixelArray(BufferedImage _image) Convert the given image to an array of integer, where each array entry represents one pixel.protected double[][]createPixelArrayMatrix(BufferedImage _image) Creates a pixel array matrix from the given image.protected BufferedImageresizeAndGrayScale(int _width, int _height, BufferedImage _input) Convert the given image to grayscale and resize it to the given scale.
-
Konstruktordetails
-
AbstractImgHash
public AbstractImgHash()
-
-
Methodendetails
-
createPixelArray
Convert the given image to an array of integer, where each array entry represents one pixel. The image is read from top to bottom, left to right.- Parameter:
_image- image- Gibt zurück:
- int array or null if _image is null
-
createPixelArrayMatrix
Creates a pixel array matrix from the given image.- Parameter:
_image- image- Gibt zurück:
- array of double array or null if _image is null
-
resizeAndGrayScale
Convert the given image to grayscale and resize it to the given scale. Will return a newBufferedImageinstance.- Parameter:
_width- width_height- heigth_input- input image- Gibt zurück:
BufferedImageor null if _input is null
-
bitmaskToHex
Converts a bitmask (array of boolean) to a hex string.- Parameter:
bitMask- mask_minLen- length- Gibt zurück:
- string
-