public class ColorMoments
extends java.lang.Object
| Constructor and Description |
|---|
ColorMoments()
Initialize a new instance of the ColorMoments class.
|
ColorMoments(double weight1,
double weight2,
double weight3)
Initialize a new instance of the ColorMoments class.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Compute(double[][] momentA,
double[][] momentB)
Compute moment.
|
double |
Compute(FastBitmap fastBitmap1,
FastBitmap fastBitmap2)
Compute moment.
|
double[][] |
ComputeMatrixMoment(FastBitmap fastBitmap)
Compute matrix moment.
|
double[] |
getWeight()
Get weight.
|
void |
setWeight(double[] weight)
Set weight.
|
public ColorMoments()
public ColorMoments(double weight1,
double weight2,
double weight3)
weight1 - Weight 1.weight2 - Weight 2.weight3 - Weight 3.public double[] getWeight()
public void setWeight(double[] weight)
weight - Weight.public double Compute(FastBitmap fastBitmap1, FastBitmap fastBitmap2)
fastBitmap1 - Image to be processed.fastBitmap2 - Image to be processed.public double Compute(double[][] momentA,
double[][] momentB)
momentA - Matrix contains moment.momentB - Matrix contains moment.public double[][] ComputeMatrixMoment(FastBitmap fastBitmap)
fastBitmap - Image to be processed.