Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Go Beyond Keywords! Perform a Visual Image Search  : Page 3

Searching graphics files via keywords can be tedious. Learn how to use image-matching technology to find images by matching shapes, patterns, colors, and textures.


advertisement
Step 2: Store Processed Images
You save your MediaObjects (the analyzed image data and its associated metadata) in one or more MediaCollections. A MediaCollection is a container or category that can be used to access a collection of MediaObjects. Searching operates on individual MediaCollections (such as a collection of animal images, undersea images, faces of people, or medical images etc.). You can extend your searches to span multiple media collections.

The Strings below represent the input path to the previously analyzed MediaObject and the output path for the new MediaCollection.

String mediaCollectionPath = new String ("/myMediaCollection/"); String analyzedImagePath = new String ("/myMediaCollection/edf/myImage.edf");

Now instantiate a MediaCollection and create it on the disk.

MediaCollection myMediaCollection = (MediaCollection) Eve.newMediaCollection(); myMediaCollection.create (mediaCollectionPath);

Add the MediaObject to the new MediaCollection, and close the MediaCollection.


myMediaCollection.add (myMediaObject) myMediaCollection.close(); ...



Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date