Join Bill Weinman for an in-depth discussion in this video Finding the caption, part of Code Clinic: C++.
- View Offline
- Exercise Files
- The image metaclass is where I grab…the metadata from the image and find the caption.…So starting up here with the constructor,…and you notice that the constructor takes a file name,…there is no default constructor for this class.…So I pass that file name into the open image factory…in Exiv2, and you notice that that Exiv2 uses exceptions…for error-reporting, so I've put all of the Exiv2 code…in this try-block, and really, this is all we actually…use Exiv2 for: to grab this metadata, put it in…my own data structures, and then from there…I work from my own data structure.…
And here you'll see that I'm going to take all that…metadata, and I'm going to put it in this map,…this STL map, which simply has a…string for its key and a string…for its value, and it's called _metadata.…And so, there in Exiv2 I get the image, I read the metadata,…it puts it in these three different data structures:…one for Exiv data, one for IPTC data, and one for XMP data.…I check if these are empty, and if…they are, I assign them a null pointer,…
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.