Image search in a list

asked 2016-04-19 02:45:16 -0600

MkMurray gravatar image

updated 2016-04-19 10:31:08 -0600

Hello, I have an image list of rgb images. I read all images with imageread. After I read a single image. This image is my pattern. I want to find this image into image list. Can you help me to choose the right method to do this? Thanks!

Image pattern Image 1 Image 2 Image 3 - Similar at image pattern

edit retag flag offensive close merge delete

Comments

1

The single image you read is exactly one of the images in the previous image list? If so, a simple subtraction/"and" operation is enough. Things change a lot if the single image is a patch that might be present in a part of any images of the image list...

LorenaGdL gravatar imageLorenaGdL ( 2016-04-19 09:35:26 -0600 )edit

The problem is that the other image is not exactly the same. I have to find the image more similar to the pattern image.

MkMurray gravatar imageMkMurray ( 2016-04-19 09:52:44 -0600 )edit

Adding some sample images would help to determine the exact problem...

LorenaGdL gravatar imageLorenaGdL ( 2016-04-19 09:58:02 -0600 )edit

From the list of images above the pattern image is the first image. In the lista there are in this case three images. The most similar image is the last image. The algorithm would have to return the index of the most similar image.

MkMurray gravatar imageMkMurray ( 2016-04-19 10:33:38 -0600 )edit

You need to calculate some sort of feature for each image, then cluster samples of the same "image class" into an average descriptor and then when a new image needs to get classified, do a KNN classification on the input descriptor compared to the average descriptors of your training set.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-04-20 04:19:45 -0600 )edit

I do not understand what you say. Can you help me with an example, please. Thanks!

MkMurray gravatar imageMkMurray ( 2016-04-21 03:04:55 -0600 )edit

I do not have the time to make your code, please google on image matching!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-04-22 02:42:49 -0600 )edit

maybe useful, take a look at this page

sturkmen gravatar imagesturkmen ( 2016-04-22 06:20:49 -0600 )edit