This section describes the interfaces and methods used by the eVe demo. See the API Reference Guide for more detailed information about these interfaces and methods.
The following methods from the MediaCollection interface were used in the eVe demo:
method |
what does it do? |
open(String Path) |
Opens the MediaCollection contained in the directory stored in Path. |
getKeys |
Returns the keys for all MediaObjects in the MediaCollection. |
getMediaObject(long key) |
Retrieves the MediaObject with the specified key. |
search(MediaObject eve, SearchParameter parameters) |
Searches an opened MediaCollection for MediaObjects that are visually similar to the specified MediaObject. |
The following method from the MediaObject interface was used in the eVe demo:
getProperty( "originalFilename") returns the file name for the image represented by the MediaObject.
The following methods from the SearchResults interface were used in the web demo:
method |
what does it do? |
getkey() |
Returns the key for a SearchResults object. |
getSimilarity() |
Returns the similarity for a SearchResults object based on the search criteria. |
The following method from the SearchParameters interface was used in the web demo:
setSearch(int indextype, Boolean value, float percent) use this method to tell the object what type of search it is to perform (such as color or texture) and the weighting of that search. The search parameter (color, shape, texture, or object) used in the search of the image database is fixed in the demo. However, the full eVe SDK allows the adjustment of search parameters by the user.