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.…
Patrick 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
Problem One: Exploring Lake Pend Oreille
Problem Two: Image Analysis
Problem Three: Eight Queens
Problem Four: Accessing Peripherals
Problem Five: Recursion and Directories
Problem Six: 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.