Problem-solving recipes
A step-by-step procedure for every problem type this course teaches — what to do first, what to do next, and how to tell which case you're in.
What are you being asked to do?
Start with what you're actually being asked to produce.
Given a flat, unsharp-looking image, need it to look crisper — unsharp masking.
Given a grayscale image, need thin, reliable edges (not just a raw gradient) — the Canny pipeline.
Given a photo of a document taken at an angle, need it flattened into a rectangle — perspective-correct it first. Need a clean, print-ready, black-on-white SCAN out of that same photo (not just the flat rectangle) — the document-scanner recipe, which itself starts by calling the perspective-correction recipe above.
Given a photographic image, need it compressed the real-world, standard way — the JPEG pipeline.
Sharpening and edge detection
Geometric and document correction
Build a document scanner
Use when: a document was photographed at an angle, under uneven real-world lighting, and you need a clean, thresholded, print-ready scan -- not just the flat rectangular warp Chapter 6 §9 stopped at
Goal: a binary (black text, white background) scanned-looking image, corrected for perspective, denoised, contrast-restored, and correctly thresholded despite uneven lighting
Applied: building a document scanner
Builds on the perspective-correction recipe above as its first step, then adds denoising, contrast restoration, and adaptive thresholding on top.