comparing an image with .mat file with 100 images

I have created .mat file with 100 images of cars and now i want to compare the image with cars, with the images in the .mat file and have to display the cars in the image separately can any one give me a sample code for this please.
thanks in advance.

4 Comments

i am new in matlab, leaf disease detection matlab code in this number of disease images separately available(disease wise) so how i create .mat file for this please help mi
Rahul. Use save() to create a .mat file. See the help for examples on how to use save().
Can you help me with creating .mat file with 85 images?
Sure, start a new question and say why you need that versus just having the images stored in normal files in a folder, or using an imageDatastore, after reading this:

Sign in to comment.

Answers (1)

How about subtracting them? We have no idea how you'd like to compare the test image to the images stored in the .mat file.

5 Comments

With the knowledge i have, i think that train cascade Object detector is used to compare the image with the positive sample of images stored in the .mat file but i am not clear about it.So please give the example to compare the image with images in the .mat file by using train cascade object detector.
"train" is a verb in "train cascade object detector", not an adjective. So you need to look for information on "cascade object detector" and how to train such things. See http://www.mathworks.com/help/vision/ug/train-a-cascade-object-detector.html
Sorry, I don't have the Computer Vision System Toolbox so I can't help you with its functions.
ravi
ravi on 28 Aug 2013
Edited: ravi on 28 Aug 2013
Walter Roberson i have seen that link 2 days back, but the problem is i cant understand whether i have to give the region that i am interested in every image in positive sample which is saved in .mat file.As i need to identify car in the image whether i have to draw the box around the car in every image in the positive sample before saving them in .mat file.
please give me clarification on that.
thanks
If you have the bounding box, you can call imcrop() to save that subimage to a file - you don't actually need to plot the box around the car in the overlay in order to crop it and save it.

Sign in to comment.

Categories

Find more on Agriculture in Help Center and File Exchange

Asked:

on 27 Aug 2013

Commented:

on 24 Jun 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!