M 003 / 18301 Edge & Featuresalgorithm output

Sobel Y

edge & feature detection

Typeface · Source Code 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 a Sobel Y effect in monochrome, emphasizing horizontal boundaries wherever brightness changes vertically. Render strong responses as bright narrow bands against black, with weaker gradients in gray. Suppress vertical boundaries and flat areas while retaining slightly soft edge thickness. Keep the original subject and composition.

Identify

Vertical changes in brightness highlight horizontal edges.

Principle

A Sobel kernel1 calculates the first derivative2 in the y-direction.

Try it out

Pay attention to the face, collar, and room lines.

Classification

Calculated image processing result.

Further examples · 7 images

EmiMa-099-Sobel-y
02 EmiMa-099-Sobel-yA human figure is rendered as a light gray outline on a neutral background. The Y-direction calculation emphasizes horizontal features like the top of the head, eyes, and collar lines.MartinThoma · CC0 · Wikimedia Commons
Canny GradientY
03 Canny GradientYA suburban house is shown with an embossed effect applied to its surfaces. The processing isolates horizontal lines on the roof tiles and window ledges while muting the vertical pillars.Tobias Hermann · CC BY-SA 3.0 · Wikimedia Commons
Sobel Y, applied to “Baustelle Hölzla 6066312”
04 Sobel Y, applied to “Baustelle Hölzla 6066312”A construction worker sits at a horizontal table. The Sobel Y filter highlights the horizontal edges of the table and the bands on his vest while suppressing vertical lines.Ermell (photo); processed for the Atlas · CC BY-SA 4.0 · Wikimedia Commons
Sobel Y, applied to “Perth (AU), Elizabeth Quay Bridge -- 2019 -- 0346-8 (crop 2)”
05 Sobel Y, applied to “Perth (AU), Elizabeth Quay Bridge -- 2019 -- 0346-8 (crop 2)”City buildings and a bridge span are visible against a dark sky. The filter emphasizes horizontal floor lines and window ledges while the vertical sides of the skyscrapers are faint.Dietmar Rabich (photo); processed for the Atlas · CC BY-SA 4.0 · Wikimedia Commons
Sobel Y, applied to “Water reflection of Hyangwonjeong Pavilion at Gyeongbokgung Palace in Seoul”
06 Sobel Y, applied to “Water reflection of Hyangwonjeong Pavilion at Gyeongbokgung Palace in Seoul”A pavilion sits above a lake reflection. The roof lines and the horizontal water surface are brightly defined, showing vertical changes in brightness along horizontal boundaries.Basile Morin (photo); processed for the Atlas · CC BY-SA 4.0 · Wikimedia Commons
Sobel Y, applied to “High-Pressure-Cleaning-with-Personal-Protective-Equipment-01”
07 Sobel Y, applied to “High-Pressure-Cleaning-with-Personal-Protective-Equipment-01”A person in protective gear operates cleaning equipment. Horizontal edges of the wooden pallet and the ground surfaces are brightened, while vertical wall seams are largely invisible.CEphoto, Uwe Aranas (photo); processed for the Atlas · CC BY-SA 3.0 · Wikimedia Commons