{"schemaVersion":1,"requestedSlug":"adaptive-threshold","canonicalSlug":"adaptive-threshold","article":"/effect/adaptive-threshold","resource":"/api/public/atlas/effects/adaptive-threshold","effect":{"slide":195,"kind":"digital","number":17,"name":"Adaptive Threshold","nameUpper":"ADAPTIVE THRESHOLD","category":"EDGE & FEATURE DETECTION","output":"ALGORITHM OUTPUT","body":[{"label":"Identify","text":"Black and white surfaces despite changing lighting."},{"label":"Principle","text":"A local limit value is calculated from the neighborhood."},{"label":"Try it out","text":"Test light and dark areas."},{"label":"Classification","text":"Calculated image processing result."}],"credit":"Image: NASA / Eileen Collins · scikit-image (public domain)","caption":"Real-world algorithm demonstration, applied to a NASA portrait.","sourceUrl":"https://docs.opencv.org/4.x/d2/d96/tutorial_py_table_of_contents_imgproc.html","funFact":"A threshold is a rule, not an object classification.","short":"Adaptive Threshold","image":"/images/fx/s195.webp","slug":"adaptive-threshold","chapter":1,"title":"Adaptive Thresholding","font":"Courier Prime","highlights":["Black and white surfaces","despite changing lighting","calculated from the neighborhood"],"margin":[{"term":"local limit value","note":"A brightness cutoff calculated separately around each location, rather than using one cutoff for the entire image."},{"term":"neighborhood","note":"The nearby pixels considered when making a local calculation. Its size affects which details and lighting changes influence the result."}],"fontWeight":"400","fontCategory":"Monospace"},"gallery":[{"src":"https://thumb.wikimedia.org/wikipedia/commons/thumb/8/89/Binarizing_neuron_image.png/960px-Binarizing_neuron_image.png?utm_source=commons.wikimedia.org&utm_campaign=imageinfo&utm_content=thumbnail","page":"https://commons.wikimedia.org/wiki/File:Binarizing_neuron_image.png","title":"Binarizing neuron image","artist":"Akarpe","license":"CC BY-SA 3.0","note":"A sequence showing a microscopic neuron image being segmented. The third panel shows adaptive thresholding applied to extract foreground structures from a complex, unevenly lit background."},{"src":"/images/gallery/adaptive-threshold-u2.webp","page":"https://commons.wikimedia.org/wiki/File:Banaue_Philippines_Ifugao-Tribesman-01.jpg","title":"Adaptive Thresholding, applied to “Banaue Philippines Ifugao-Tribesman-01”","artist":"CEphoto, Uwe Aranas (photo); processed for the Atlas","license":"CC BY-SA 3.0","note":"The tribesman and hillside are rendered in binary black and white. Local thresholding preserves facial detail and background textures despite varying illumination across the complex scene."},{"src":"/images/gallery/adaptive-threshold-u3.webp","page":"https://commons.wikimedia.org/wiki/File:Frost-covered_lifebuoy,_Lake_Siskiyou.jpg","title":"Adaptive Thresholding, applied to “Frost-covered lifebuoy, Lake Siskiyou”","artist":"Radomianin (photo); processed for the Atlas","license":"CC BY-SA 4.0","note":"A lifebuoy hangs on a weathered wooden post. The algorithm adapts to local brightness, maintaining the outline of the white ring against the light background and textures on the dark wood."},{"src":"/images/gallery/adaptive-threshold-u4.webp","page":"https://commons.wikimedia.org/wiki/File:Cranes_made_by_Origami_paper.jpg","title":"Adaptive Thresholding, applied to “Cranes made by Origami paper”","artist":"Laitche (photo); processed for the Atlas","license":"Public domain","note":"Two origami cranes are visible against a white void. Adaptive thresholding distinguishes the patterned paper from shadows, ensuring the folded edges and surface designs remain legible in high contrast."},{"src":"/images/gallery/adaptive-threshold-u5.webp","page":"https://commons.wikimedia.org/wiki/File:Partal_pavilion_bassin_detail_1_edit.jpg","title":"Adaptive Thresholding, applied to “Partal pavilion bassin detail 1 edit”","artist":"Jebulon (photo); processed for the Atlas","license":"CC0","note":"This image shows a pavilion with arches reflected in water. The local neighborhood calculation allows the intricate stonework and the darker water reflections to retain structural detail simultaneously."},{"src":"/images/gallery/adaptive-threshold-u6.webp","page":"https://commons.wikimedia.org/wiki/File:L%27Umbracle,_Valencia,_Spain_-_Jan_2007.jpg","title":"Adaptive Thresholding, applied to “L'Umbracle, Valencia, Spain - Jan 2007”","artist":"Diliff (photo); processed for the Atlas","license":"CC BY-SA 3.0","note":"The arched structure of L'Umbracle creates complex light and shadow. The effect successfully extracts the thin architectural ribs and palm tree silhouettes by adjusting to regional lighting differences."},{"src":"/images/gallery/adaptive-threshold-u7.webp","page":"https://commons.wikimedia.org/wiki/File:2015_Ribblehead_Viaduct_1.jpg","title":"Adaptive Thresholding, applied to “2015 Ribblehead Viaduct 1”","artist":"Kreuzschnabel (photo); processed for the Atlas","license":"CC BY-SA 3.0","note":"The Ribblehead Viaduct sits within a vast landscape. Detailed arches and terrain textures are preserved through local limit values, preventing large dark or light regions from washing out."}],"prompt":"Apply Adaptive Thresholding, converting the photograph into pure black and white using locally adjusted brightness divisions. Retain small details across both shaded and brightly lit areas, with crisp irregular boundaries, stippled textures, and no gray tones. Avoid broad lighting gradients overwhelming detail. Keep the original subject and composition."}