Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 9 of 9

Thread: find perceptual similarity between two images

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation find perceptual similarity between two images

    Hi guys

    I'm looking for an algorithm that can find perceptual similarity between two images, actually i want to input one picture into system and it search whole my database which contain huge amount of picture and then retrieve the images which have more perceptual similarity with source image, could any body please help me ?

    Thanks


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: find perceptual similarity between two images

    Can you define "perceptual similarity"? How would a person determine how similar two images were?

    What you're talking about is not trivial- google something like "java image processing" for potential libraries you could use.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Apr 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: find perceptual similarity between two images

    I mean i want to find similar pic. i heard some algorithm can find similar pictures base on the source pic's shape, color and etc (pixel by pixel). i wanna have the system that i input the source image and system retrieve the similar images based on perceptual features like shape, color, size and etc.

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: find perceptual similarity between two images

    As Kevin said, this is NOT trivial. Putting this statement in perspective, you would think if this were an easy problem google would have implemented it. Best advice I'd have is to research very advanced hashing algorithms - in other words you might be able to turn an image into a hash (or multitude of hashes) based upon certain features - similar features have similar hashes which can then be queried relatively easily. You could go about this using some sort of dynamic programming, but again not easy and this would be extremely slow.


    The best implementation I've seen is that provided by TinEye Reverse Image Search

  5. #5
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: find perceptual similarity between two images

    You mean like this? Not sure link will work for someone else...
    java - Google Search.

  6. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: find perceptual similarity between two images

    Quote Originally Posted by soheilz92 View Post
    I mean i want to find similar pic.
    Again, what is similar? If you input a picture of a red car, which picture is similar- a picture of a red ball, a picture of a blue car, or a picture of the same car from a different angle? How would you express that in terms of pixels?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  7. #7
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: find perceptual similarity between two images

    Quote Originally Posted by Sean4u View Post
    You mean like this? Not sure link will work for someone else...
    java - Google Search.
    Yes, but as far as I'm aware this is mainly based upon keywords. As mentioned, doing something solely dependent upon the image without any other meta data is something else entirely.

  8. #8
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: find perceptual similarity between two images

    Haha! I looked at the prams, mugs and even the tap and decided it was detecting 'teapot' topology and finding things with similar layout. But they're ... actually ... all ... called ... 'java'. Ignore me I'm an idiot!

  9. #9
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: find perceptual similarity between two images

    Google "reverse image search" for some interesting results, including:
    Inside Google Search · Search by Image
    TinEye Reverse Image Search
    Top 10 reverse image search engines | Comptalks
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. [SOLVED] Help needed with Images.
    By Brt93yoda in forum What's Wrong With My Code?
    Replies: 19
    Last Post: August 16th, 2010, 04:46 PM
  2. Converting Images to Shapes
    By Ian in forum Java Theory & Questions
    Replies: 2
    Last Post: February 7th, 2010, 05:18 PM
  3. Loading in images
    By eXcellion in forum Java Theory & Questions
    Replies: 3
    Last Post: January 17th, 2010, 12:13 PM
  4. Images not going in email
    By anjali09s in forum Java SE APIs
    Replies: 3
    Last Post: August 2nd, 2009, 06:06 PM
  5. What are the best way of placing images in GUI?
    By Ciwan in forum AWT / Java Swing
    Replies: 5
    Last Post: February 26th, 2009, 05:19 PM