|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.semoa.service.AbstractService cbr.service.FinderProxy
Finds images according in an index. The pictures are
seeked by means of the PicsFinder
interface via a local service. Instances can be bound
to an index instance by means of a constructor. This
class serves as a proxy for the index such that the
index can implement additional interfaces to which
access shall be restricted.
Field Summary | |
private PicsFinder |
index_
The PicsFinder instance from which
pictures are retrieved. |
Fields inherited from class de.fhg.igd.semoa.service.AbstractService |
REV_POSTFIX, REV_PREFIX |
Constructor Summary | |
FinderProxy()
Creates an instance. |
|
FinderProxy(PicsFinder index)
Creates an instance that finds images by means of the given PicsFinder implementation. |
Method Summary | |
String |
author()
Returns the name of the author of the service. |
PictureEntry[] |
find(FeatureVector v,
float threshold,
int max)
Matches the given feature vector against the ones of the known Pictures and returns the picture entries of at most max pictures that have a
normalised distance less than the given threshold to
the query vector. |
PictureEntry[] |
find(Image im,
float threshold,
int max)
Matches the given image against the stored images and returnes the entries of the max most
similar pictures known. |
String |
info()
Returns the informative string which should describe the service's essence in a sentence. |
String |
revision()
Returns the revision number of this class as a string. |
Methods inherited from class de.fhg.igd.semoa.service.AbstractService |
checkDependencies, dependencies, docs, doPrivileged, doPrivileged, getACC, getEnvironment, majorVersion, minorVersion, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private PicsFinder index_
PicsFinder
instance from which
pictures are retrieved.
Constructor Detail |
public FinderProxy()
public FinderProxy(PicsFinder index)
PicsFinder
implementation.
index
- The PicsFinder instance from which
picture entries are retrieved.
NullPointerException
- if the given index
is null
.Method Detail |
public String author()
AbstractService
author
in interface Service
author
in class AbstractService
public String revision()
AbstractService
majorVersion()
, minorVersion
based on the assumption that this method returns a
revision string as generated by rcs(1) for the template
"$Revision: 1.7 $/$Date: 2007-08-08 04:41:53 +0200 (Wed, 08 Aug 2007) $".
revision
in class AbstractService
public String info()
AbstractService
info
in interface Service
info
in class AbstractService
public PictureEntry[] find(Image im, float threshold, int max) throws IOException
max
most
similar pictures known. All returned picture entries
represent pictures that have a distance from the query
picture that is less than the given threshold. The
threshold is normalised in the range [0.0,1.0] where 0
denotes identity (of feature vectors) and 1 denotes
infinite distance.
find
in interface PicsFinder
im
- The query image.threshold
- The maximum distance retrieved pictures
are allowed to have from the query image.max
- The maximum number of hits to return.
IllegalStateException
- if this service is
not initialised properly.
IOException
public PictureEntry[] find(FeatureVector v, float threshold, int max) throws IOException
max
pictures that have a
normalised distance less than the given threshold to
the query vector. If the feature vector is not of a
supported type then an exception is thrown.
find
in interface PicsFinder
v
- The feature vector to match known picture
entries against.threshold
- The maximum distance a picture in
the result set is allowed to have from the query
vector.
UnsupportedAlgorithmException
- if the given
feature vector cannot be mapped to the supported
ones.
IllegalStateException
- if this service is
not initialised properly.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |