M 006 / 18301 Edge & Featuresalgorithm output

Prewitt Edges

Prewitt Edge. edge & feature detection

Typeface · Anonymous Pro

Real-world algorithm demonstration, applied to a NASA portrait.
Real-world algorithm demonstration, applied to a NASA portrait.Image: NASA / Eileen Collins · scikit-image (public domain)View source ↗

Prompt

Apply Prewitt Edges, replacing photographic tones with stark grayscale boundary responses on black. Emphasize horizontal and vertical transitions using uniformly weighted, slightly broad edge bands, with angular intersections and subdued diagonal texture. Make stronger contrast brighter while leaving flat regions dark. Keep the original subject and composition.

Identify

Hard directional edges with a slightly different weighting than Sobel.

Principle

Two 3×3 convolutions1 estimate the x and y derivatives2.

Try it out

Examine narrow fabric edges.

Classification

Calculated image processing result.

Further examples · 7 images

EmiMa-099-Prewitt-x
02 EmiMa-099-Prewitt-xA gray-tone image displays the horizontal derivative of a figure holding objects. The Prewitt operator highlights the vertical contours of the subject using 3×3 convolution kernels.MartinThoma · CC0 · Wikimedia Commons
Convolution arithmetic - Padding strides odd transposed
03 Convolution arithmetic - Padding strides odd transposedA 3x3 kernel moving across a grid shows the mechanics of discrete convolution. This spatial operation is the fundamental method used by the Prewitt operator to calculate directional derivatives for edge detection.Vincent Dumoulin, Francesco Visin · MIT · Wikimedia Commons
AI illustration: A monochrome fabric pattern exhibits high-contrast edge detection
04 AI illustration: A monochrome fabric pattern exhibits high-contrast edge detectionA monochrome fabric pattern exhibits high-contrast edge detection. Thin, bright lines isolate the intersecting threads of the plaid design, demonstrating the directional derivative calculations of the Prewitt operator.Illustration generated for the Atlas (AI)
AI illustration: A female face is displayed on a CRT monitor with distinct white outlines
05 AI illustration: A female face is displayed on a CRT monitor with distinct white outlines A female face is displayed on a CRT monitor with distinct white outlines on a dark background. The grain and sharp contours illustrate the discrete gradient approximation used in machine vision edge extraction.Illustration generated for the Atlas (AI)
AI illustration: A side-by-side comparison shows lace before and after processing
06 AI illustration: A side-by-side comparison shows lace before and after processingA side-by-side comparison shows lace before and after processing. The resulting image isolates the intricate threads as sharp white boundaries, characteristic of a 3x3 convolution filter applied to fine patterns.Illustration generated for the Atlas (AI)
AI illustration: A stylized city skyline includes diagrams of the x and y Prewitt kernels
07 AI illustration: A stylized city skyline includes diagrams of the x and y Prewitt kernelsA stylized city skyline includes diagrams of the x and y Prewitt kernels. The highlighted building edges correspond to the mathematical horizontal and vertical gradients defined by the displayed matrices.Illustration generated for the Atlas (AI)