Join Todd McLeod for an in-depth discussion in this video Creating a pixel comparison algorithm, part of Code Clinic: Go.
- So the next step in our solution is to start comparing…the pixels between different images.…And we've been able to load the images,…we've been able to get all of the pixel information…for every image out.…We have all that data, we implemented some concurrency…to help us load all the images…and pull out all the pixel data for each image,…but now we need to start comparing those pixels.…So this is going to be a needle in the haystack problem.…What does that mean?…We have a haystack,…and we're looking for a needle within it.…
So we're going to take this top-left pixel…and we're going to compare it…to every pixel in the haystack.…And then when we have a match,…we'll start sequencing across every single one…of these pixels, matching the underlined pixels…and see if we continue to have a match.…So to do this, I created a new file,…and this file is still part of package main.…You can see compare.go is part of package main…and then also main.go is part of package main.…And I have both of those files right here.…So to run my code with more than one file…
Todd introduces challenges and then provides overviews of his solutions in Go. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Beginner
The files have moved, and I can't access them via HTTP as shown in the course.
Google App Engine Essential Trainingwith Joseph Lowery3h 26m 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.