|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a generic feature extractor as used for Content-Based Retrieval (CBR). It defines methods for extracting significant features of an image. Image can be passed either as an java.awt.Image, an array of RGB888 pixels, or an array of RGB222 pixels. Instances that do not support extraction of features from RGB222 pictures shall throw an UnsupportedOperationException.
FeatureVector
Method Summary | |
FeatureVector |
extract(byte[] px,
int w,
int h)
This method extracts the feature vector from a byte array of RGB222 pixels. |
FeatureVector |
extract(Image im)
Extracts the feature vector from the given image. |
FeatureVector |
extract(int[] px,
int width,
int height)
Extracts the feature vector from the given array of RGB888 pixels. |
Method Detail |
public FeatureVector extract(Image im) throws InterruptedException, ImageException
im
- The image from which the feature vector is extacted.
InterruptedException
- if an interrupt occurs
while the image's pixel data is loaded.
ImageException
- if for instance the dimensions
of the given image cannot be determined.public FeatureVector extract(int[] px, int width, int height)
px
- The byte array of RGB222 pixel values of
the image from which the feature vector is extracted.
public FeatureVector extract(byte[] px, int w, int h)
The caller has to make sure that the pixel values
are in the range [0,63]. The easiest way to assure
this range is to use the Quantizer
.
px
- The byte array of RGB222 pixel values of
the image from which the feature vector is extracted.w
- The width of the image in pixels.h
- The height of the image in pixels.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |