public class ImageComparisonUtil extends Object
| Constructor and Description |
|---|
ImageComparisonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateImageHash(BufferedImage image)
Generates blocks representing an image by dividing the image up in 16x16
pixel blocks and calculating a mean value of the color in each block.
|
static int |
getNrBlocks(int pixels)
Returns the number of blocks used for the given number of pixels.
|
public static String generateImageHash(BufferedImage image)
image - the imagepublic static int getNrBlocks(int pixels)
pixels - The number of pixels for the dimension.Copyright © 2018. All rights reserved.