Join Simon Allardice for an in-depth discussion in this video Comparing images, part of Code Clinic: Swift.
- The compareImages method begins…by being passed in two parameters.…The smallImage and the largeImage.…And these are both Core Image objects.…And several times in this code…I will want the width and height of both of them…so I'm creating a few shorthand constants for these.…It's not necessary, this'll just make…for some easier reading code.…Then after that, the important stuff.…Setting up the Core Image filter chain.…Just to review, we're going to use three Core Image filters.…First is the transform filter.…This will be changed and reapplied multiple times.…
It will move the small image…one pixel along the x-axis or y-axis…so we can move to different positions in the larger.…Then we have the second filter which will blend the two.…And the third filter will take the average…of the blended region and summarize it…down to that single pixel.…And finally, we're going to use the CIContext,…the context object, to draw that pixel out.…And that's the only time that any…of these filters will actually do anything.…So the first filter we need is the transformFilter…
Simon introduces challenges and then provides an overview of his solutions in Swift. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Intermediate
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S
1. Problem One: Exploring Lake Pend Oreille
2. Problem Two: 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?
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.