comparing an image with .mat file with 100 images
Show older comments
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
Rahul Phadatare
on 30 Sep 2016
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
Image Analyst
on 30 Sep 2016
Rahul. Use save() to create a .mat file. See the help for examples on how to use save().
Saad Rana
on 24 Jun 2022
Can you help me with creating .mat file with 85 images?
Image Analyst
on 24 Jun 2022
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:
Answers (1)
Image Analyst
on 27 Aug 2013
0 votes
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
ravi
on 27 Aug 2013
Walter Roberson
on 27 Aug 2013
"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
Image Analyst
on 27 Aug 2013
Edited: Image Analyst
on 28 Aug 2013
Sorry, I don't have the Computer Vision System Toolbox so I can't help you with its functions.
Image Analyst
on 28 Aug 2013
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.
Categories
Find more on Agriculture in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!