comparing an image with .mat file with 100 images
1 view (last 30 days)
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
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
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
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.
See Also
Categories
Find more on Image Processing and Computer Vision 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!