Join Bill Weinman for an in-depth discussion in this video My solution: Fuzzy matching, part of Code Clinic: C++.
So, now that we've read the JPEG image…we're ready to do the actual comparison of the images.…This happens in the JPEG data class.…First, here in our main CPP…you'll notice that I have a file path.…You're gonna need to change this to match…where you've got your images stored on your system,…and then I start with a reference file.…This is the one that's going to…be compared to all of the other images in our directory…so we can find the images…that may be a subset of this image.…
So the main function is setup…to take this one image as a reference…and then it loops through a loop here.…It uses read dir and it reads a directory…and it loops through all of the JPEG images…in that directory and for each one,…it creates a JPEG data object,…and it reads that JPEG file…using the read JPEG function,…and then it uses this find function…against the ref JPEG object that's created up here.…This is our reference JPEG.…
And then it reports when it finds a match…or if it does not find a match…and it deletes the object…and it goes on to the next one in the list.…
Bill introduces challenges and provides an overview of his solutions in C++. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Visit other courses in the series to see how to solve the exact same challenges in languages like C#, Java, PHP, Python, and Ruby.
Skill Level Intermediate
Problem One: Exploring Lake Pend Oreille
Solution overview2m 51s
Problem Two: Image Analysis
Problem Three: Eight Queens
Problem Four: Accessing Peripherals
Problem Five: Recursion and Directories
Problem Six: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.