Learn how to run all images through the comparison.
- [Narrator] In this video,…we'll load all of the image files,…pair them together into combinations,…and run them through the best match algorithm.…Starting in the core.clj file and in the name space,…I'll add a require expression.…First I'll pull in clojure.java.io as io.…Now I'll pull in clojure.string as str.…Next, I'll pull in clojure.math.combinatorics as combo.…I'll use this to find the combinations of two files,…which we'll call pairings.…
Next, I'll pull in our thumb.cv name space…and I'll call it cv.…After the require expression,…I'll make an expression with the gen-class keyword,…so that leiningen can compile our program.…Now I'll implement a function…that finds all of our image files.…I'll call it find-image-files.…This function won't need any arguments,…and I'll start with a thread last macro,…which looks like a double arrowhead.…In the body of this macro,…every expression's output will be used as an input…in the next expression as this last argument.…
Begin by calling io/file on resources/images…to create a file object for that directory.…
Skill Level Intermediate
1. Problem 1: Exploring Lake Pend Oreille
2. Problem 2: Image Analysis
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Recursion and Directories
6. Problem 6: 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.