Join Patrick Royal for an in-depth discussion in this video Solution overview, part of Code Clinic: Java.
- The solution to this problem…has a lot of complicated details and syntax.…But the overall structure is easy to undertand.…The first step is to load the picture into Java.…There are a number of different ways to…represent images in Java,…so it's important to find a way…where we can easily get information…about the image for comparison.…Next, we need to find some way of…matching up the two images.…Essentially, we need to compare the…smaller image to every possible equal…size subset of the larger image…and see if they are the same.…
Third, we need an algorithm to…actually perform the comparisons.…If the images were identical pixel for pixel,…this would be easy.…However, the process of cropping…changes how the smaller image is represented.…So we will have to use more complicated comparisons.…Finally, we need to interpret these results to determine…whether one picture is a subset of the other.…My solution is structured to…meet these four main objectives.…The main method loads in two images…from their file name and compares their size.…
Author
Updated
12/16/2014Released
7/15/2014Patrick introduces challenges and provide an overview of his solutions in Java. 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#, C++, PHP, Python, and Ruby.
Skill Level Intermediate
Duration
Views
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
Related Courses
-
Advanced Java Programming
with David Gassner3h 33m Advanced -
Code Clinic: PHP
with David Powers4h 44m Intermediate -
Code Clinic: Python
with Barron Stone2h 23m Intermediate -
Code Clinic: Ruby
with Kevin Skoglund5h 42m Intermediate
-
Introduction
-
Welcome52s
-
-
Problem One: Exploring Lake Pend Oreille
-
Exploring Lake Pend Oreille3m 37s
-
Solution overview2m 42s
-
My solution: Getting data3m 45s
-
My solution: Handling input2m 58s
-
-
Problem Two: Image Analysis
-
Image analysis2m 52s
-
Solution overview3m 39s
-
-
Problem Three: Eight Queens
-
Eight queens1m 50s
-
Solution overview2m 59s
-
-
Problem Four: Accessing Peripherals
-
Accessing Peripherals1m 16s
-
Solution overview2m 53s
-
-
Problem Five: Recursion and Directories
-
Recursion and Directories1m 56s
-
Solution overview2m 41s
-
-
Problem Six: Building the Web
-
Building the Web1m 24s
-
Solution overview3m 7s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Solution overview