public class ColorLayoutImpl
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static double[][] |
arrayCosin |
protected static int[] |
arrayZigZag |
protected static int[] |
availableCoeffNumbers |
int[] |
CbCoeff |
protected java.awt.image.BufferedImage |
colorLayoutImage |
int[] |
CrCoeff |
protected java.awt.image.BufferedImage |
img |
protected int |
imgXSize |
protected int |
imgYSize |
protected int |
numCCoeff |
protected int |
numYCoeff |
protected int[][] |
shape |
protected static int[][] |
weightMatrix |
int[] |
YCoeff |
| 构造器和说明 |
|---|
ColorLayoutImpl() |
ColorLayoutImpl(java.awt.image.BufferedImage image)
Create a ColorLayout Object from the given BufferedImage. 6 Y and 3 C Coefficients are used,
if you want to use another number you have to set it with the Setters.
|
ColorLayoutImpl(int numberOfYCoeff,
int numberOfCCoeff,
java.awt.image.BufferedImage image)
Create a ColorLayout Object from the given BufferedImage with the desired number of Coefficients
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
extract(java.awt.image.BufferedImage bimg) |
int[] |
getCbCoeff() |
java.awt.image.BufferedImage |
getColorLayoutImage() |
int[] |
getCrCoeff() |
int |
getNumberOfCCoeff() |
int |
getNumberOfYCoeff() |
static double |
getSimilarity(int[] YCoeff1,
int[] CbCoeff1,
int[] CrCoeff1,
int[] YCoeff2,
int[] CbCoeff2,
int[] CrCoeff2)
Takes two ColorLayout Coeff sets and calculates similarity.
|
int[] |
getYCoeff() |
void |
setNumberOfCCoeff(int numberOfCCoeff) |
void |
setNumberOfYCoeff(int numberOfYCoeff) |
protected int[][] shape
protected int imgYSize
protected int imgXSize
protected java.awt.image.BufferedImage img
protected static int[] availableCoeffNumbers
protected int numCCoeff
protected int numYCoeff
public int[] YCoeff
public int[] CbCoeff
public int[] CrCoeff
protected static int[] arrayZigZag
protected static double[][] arrayCosin
protected static int[][] weightMatrix
protected java.awt.image.BufferedImage colorLayoutImage
public ColorLayoutImpl()
public ColorLayoutImpl(java.awt.image.BufferedImage image)
image - the input imagepublic ColorLayoutImpl(int numberOfYCoeff,
int numberOfCCoeff,
java.awt.image.BufferedImage image)
image - the input imagenumberOfYCoeff - desired number of Y CoefficientsnumberOfCCoeff - desired number of Cr and Cb Coefficientspublic void extract(java.awt.image.BufferedImage bimg)
public static double getSimilarity(int[] YCoeff1,
int[] CbCoeff1,
int[] CrCoeff1,
int[] YCoeff2,
int[] CbCoeff2,
int[] CrCoeff2)
public java.awt.image.BufferedImage getColorLayoutImage()
public int getNumberOfCCoeff()
public void setNumberOfCCoeff(int numberOfCCoeff)
public int getNumberOfYCoeff()
public void setNumberOfYCoeff(int numberOfYCoeff)
public int[] getYCoeff()
public int[] getCbCoeff()
public int[] getCrCoeff()