Join Patrick Royal for an in-depth discussion in this video My solution: Image-comparison algorithms, part of Code Clinic: Java.
-Due to the complexity of image analysis,…there are actually a large number of different…algorithms that are commonly used…to compare images.…These range from very simple algorithms…that just work with one pixel at a time,…to complex algorithms that analyze groups…of pixels to look for patterns and structures…that can be compared.…Although modern algorithms have not yet achieved…the proficiency of the human eye, they're…commonly used for facial recognition,…fingerprint analysis, and text digitization.…Fortunately, we don't need to design such…a complicated algorithm for this task.…
The main algorithm that I have used in my solution…is called the least absolute deviation algorithm.…This function, which is also commonly used…for linear regressions, calculates the difference…between two pixels by taking the absolute value…of the difference between their red, green,…and blue values.…The algorithm is outlined in my…compare subset class.…The input for this class consists of three integers.…Integers A and B denote the starting coordinates…
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?
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.