Join Simon Allardice for an in-depth discussion in this video Adding the image pyramid technique, part of Code Clinic: Swift.
- This first version works but it is very slow…and that's just because the images are so very large.…If you actually took a look at these ones,…open them up in Preview and zoom to Actual Size,…you're gonna get a sense of just how large these images are.…And we can do successful comparisons…without this level of detail.…So what I'm going to do,…is resize the images before I do any comparison.…To be clear, I don't mean I'm going to change…any of the sample images provided in the folder.…I'm not going to require the user do anything.…
I'll do all of this, as needed, within the application.…And with large images…you can often resize them substantially, perhaps 10%…or even less of the original…and still have a successful comparison.…So in my code I do have a resize utility method…that I've written here.…I'm using Core Graphics not Core Image to do this.…You may be wondering can Core Image resize?…That would seem like something it could do…and absolutely it can.…I could, theoretically, have added another filter…into my Core Image FILTER CHAIN to do that,…
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
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.