MediaCollectionHL Class

 

This class includes the following methods:

 

Method

Description

Method

Description

addFolder

Adds a folder of images to the current MediaCollection.

metadataSearch (String, String...)

Searches the MediaCollection for images similar to the given image, using the provided search options.

addImage

Adds an image or a pre-analyzed EDF file to the current MediaCollection.

search( key...)

Searches the MediaCollection for images similar to the given image, using the provided search options.

close

Closes the MediaCollection.

search( key, int similarity...)

Searches the MediaCollection for images similar to the given image, using the provided search options.

create

Creates a MediaCollection object in the specified location on disk.

search (MediaObject ...)

Searches the MediaCollection for images similar to the given image, using the provided search options.

 

deleteImage

Removes an image from the current MediaCollection.

search( MediaObject, int similarity...)

Searches the MediaCollection for images similar to the given image, using the provided search options.

exists

Determines whether a MediaCollection is stored in the specified location.

search (string ...)

Searches the MediaCollection for images similar to the given image, using the provided search options.

getCollectionName

Retrieves the name of the MediaCollection being searched.

search (string, int similarity...)

Searches the MediaCollection for images similar to the given image, using the provided search options.

getImagePath

Retrieves the path to where a MediaCollection’s images are stored.

searchResults andResults

Performs a logical AND operation on two arrays of SearchResults objects.

getMetadataKeys

Retrieves all the unique metadata keys in the MediaCollection.

searchResults appendResults

Concatenates two arrays of SearchResults.

getMediaObject

Retrieves the MediaObject with the specified key.

searchResults chopResults

Truncates the array of SearchResults to the given length. If the array is already that length or shorter, it is returned unmodified.

getMediaObject ( SearchResults ...)

Retrieves the MediaObject referenced by the SearchResults object.

searchResults orResults

Performs a logical OR operation on two arrays of SearchResults objects.

getMediaObjects

Retrieves all the MediaObjects in a MediaCollection.

searchResults sortResults

Sorts the search results by similarity in descending order.

getMediaObjects ( SearchResults ...)

Retrieves the MediaObjects referenced by the SearchResults objects.

size

Reports the number of MediaObjects in the MediaCollection.

isEdf

 

Determines if a file is in EDF file format.

 

 

isImage

Determines if a file is an image file.