T - type of metadata being stored@Reference(author={"Wei Dong","Zhe Wang","Kai Li"}, title="High-Confidence Near-Duplicate Image Detection", type=Inproceedings, year="2012", booktitle="ACM International Conference on Multimedia Retrieval", customData={"location","Hong Kong, China"}) public class BasicDuplicateImageDatabase<T> extends Object
An in-memory image duplicate database. Stores hashes of features as the basis of determining duplicates.
This is a basic in-memory implementation of the approach described by Dong, Wang and Li for high-confidence duplicate detection. It does not currently implement the query expansion phase based on a graph cut of the duplicity graph, but instead relies directly on a simple thresholded count of collisions.
| Modifier and Type | Field and Description | 
|---|---|
| protected List<gnu.trove.map.hash.TIntObjectHashMap<Set<T>>> | database | 
| Constructor and Description | 
|---|
| BasicDuplicateImageDatabase() | 
| Modifier and Type | Method and Description | 
|---|---|
| int[][] | extractFeatures(FImage image)Extract hashed features from an image | 
| int[][] | extractFeatures(MBFImage image)Extract hashed features from an image | 
| void | indexImage(int[][] features,
          T metadata)Index a new image based on its features | 
| static void | main(String[] args) | 
| List<ObjectIntPair<T>> | search(int[][] features)Search for a given image (represented by its features) in the database | 
public BasicDuplicateImageDatabase()
public int[][] extractFeatures(FImage image)
image - the image to indexpublic int[][] extractFeatures(MBFImage image)
image - the image to indexpublic void indexImage(int[][] features, T metadata)
features - the image to indexmetadata - the metadata for the imagepublic List<ObjectIntPair<T>> search(int[][] features)
features - the featurespublic static void main(String[] args) throws MalformedURLException, IOException
MalformedURLExceptionIOException