|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FeatureExtractor.FeatureExtractor
public abstract class FeatureExtractor
Class in charge of extracting the features from a given image (URL/image file).
Field Summary | |
---|---|
protected GenericClustering |
imgClu
the clustering algorithm to be used |
protected GenericFilter |
imgFil
the filter to be used |
protected int |
result
error code for the result of the feature extraction process: (0 if everything was OK, -2 if URL is malformed, -3 if file does not exist or is damaged, -5 if extraction fails, -7 if there are problems in the read stream of the image file). |
Constructor Summary | |
---|---|
FeatureExtractor()
Basic constructor. |
Method Summary | |
---|---|
protected abstract Image |
createImage(ImageID id,
GenericFilterOutput filOut,
ClusteringOutput clustOut)
Creates an image with a particular ID from the output of the filter and the clustering algorithm. |
Image |
extract(javax.media.jai.PlanarImage image,
ImageID id)
Creates an image with a particular ID extracting features from a given image. |
Image |
extract(java.lang.String imgURL,
ImageID id)
Creates an image with a particular ID extracting features from a given image. |
int |
getLastResult()
Returns the result of the last extraction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GenericFilter imgFil
protected GenericClustering imgClu
protected int result
Constructor Detail |
---|
public FeatureExtractor()
Method Detail |
---|
public int getLastResult()
protected abstract Image createImage(ImageID id, GenericFilterOutput filOut, ClusteringOutput clustOut)
id
- ID of the image.filOut
- output of the filter.clustOut
- output of the clustering algorithm.
public Image extract(javax.media.jai.PlanarImage image, ImageID id)
image
- JAI image where features are to be extracted.id
- Image ID.
public Image extract(java.lang.String imgURL, ImageID id)
imgURL
- the URL of the image where features are to be extracted.id
- Image ID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |