public class EdgeHistogramImplementation
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BIN_COUNT |
protected int[] |
edgeHistogram
The actual edge histogram.
|
| 构造器和说明 |
|---|
EdgeHistogramImplementation()
Allocates a new
EdgeHistogramDescriptor |
EdgeHistogramImplementation(java.awt.image.BufferedImage image)
Allocates a new
EdgeHistogramDescriptor so that it represents the
media located in the file. |
| 限定符和类型 | 方法和说明 |
|---|---|
static double |
calculateDistance(int[] edgeHistogramA,
int[] edgeHistogramB)
Calculates the distance between two images taking the edge edgeHistogram into account. take 480 as soft upper
border, 0 is hard lower border because there are 80 bins <= 7.
|
void |
extract(java.awt.image.BufferedImage image) |
void |
extractFeature()
extractFeature() takes all the information about the types of edge, that
have been found in the sub-images and applies the methods getFirstBlockAVG(int i,int j) through
getFourthBlockAVG(int i, int j) on the whole image. returns Local_Edge_Histogram returns the 80 bins |
int |
getBinCounts()
Gets the Bins of the array.
|
double |
getDistance(LireFeature descriptor)
Compares one descriptor to another.
|
int |
getThreshold() |
void |
makeGreyLevel()
The width and height of the media is taken to convert the RGB values into luminance values.
|
void |
setBinCounts(int pos,
int[] value)
Responsible for setting the Bin Counts in view of the position of the bins.
|
int[] |
setEdgeHistogram()
In the
setEdgeHistogram() method the value for each edgeHistogram bin are quantized by
quantization tables. |
void |
setThreshold()
If the maximum of the five edge strengths is greater than a threshold, then the image block is
considered to have the corresponding edge in it.
|
public static final int BIN_COUNT
protected int[] edgeHistogram
public EdgeHistogramImplementation(java.awt.image.BufferedImage image)
EdgeHistogramDescriptor so that it represents the
media located in the file.public EdgeHistogramImplementation()
EdgeHistogramDescriptorpublic void extract(java.awt.image.BufferedImage image)
public void setBinCounts(int pos,
int[] value)
throws java.lang.ArrayIndexOutOfBoundsException
pos - position of the binsvalue - value of the binjava.lang.ArrayIndexOutOfBoundsException - is necessary, since the bins are stored in an arraypublic int getBinCounts()
throws java.lang.Exception
java.lang.Exception - indicates conditions that a reasonable application might want to catch.public void setThreshold()
public int getThreshold()
public void makeGreyLevel()
public void extractFeature()
extractFeature() takes all the information about the types of edge, that
have been found in the sub-images and applies the methods getFirstBlockAVG(int i,int j) through
getFourthBlockAVG(int i, int j) on the whole image. returns Local_Edge_Histogram returns the 80 binspublic int[] setEdgeHistogram()
setEdgeHistogram() method the value for each edgeHistogram bin are quantized by
quantization tables. Five quantisation tables for five different edge types are existing.public static double calculateDistance(int[] edgeHistogramA,
int[] edgeHistogramB)
edgeHistogramA - defines the first pointedgeHistogramB - defines the second pointpublic double getDistance(LireFeature descriptor)
descriptor -