FilterPictureA PictureEditor.com tool

Detect the edges in a photograph

Rendered on your computer, not on a server.

A named 3×3 Sobel operator, a threshold and a scale—an inspectable gradient map, not an unexplained sketch filter.

Drag a photograph in, or click to find oneClean shapes against an even ground produce a readable map; noise and foliage produce many truthful but distracting edges.

Nothing to hand right now?

Step 1 of 4 — Open

Bring in a picture and you'll see six effects on it at once. Pick the one that looks right, then push it further.

The operation behind the appearance

Red, green and blue are first reduced to weighted luminance. Two 3×3 Sobel kernels measure change across x and y; their Euclidean magnitude is multiplied by strength and compared with the threshold. Inversion changes presentation only, turning bright-on-black into black-on-white.

The controls are measurements

Threshold
The minimum gradient magnitude allowed to remain.
Gradient strength
A multiplier on all measured edge magnitudes.
Black lines on white
An inversion after measurement, not a different detector.

Where the construction breaks

Sobel locates contrast, not meaning. Noise, compression blocks, skin texture and patterned fabric can be stronger than the outline a person wanted. Blur the source beforehand when the job is structural edges; keep the unblurred source when fine texture is the subject.

The preview, draft and export all run the same kernel. Parameters measured in pixels are scaled with the source, so a chosen tile, band or radius does not become unexpectedly finer in the downloaded file.

Questions about this effect

What counts as an edge?
A rapid change in Rec. 709 luminance across neighbouring pixels. The Sobel pair measures horizontal and vertical change and combines their magnitudes.
Why does texture fill with lines?
Texture is made of local brightness changes too. The operator knows nothing about objects, so a leaf vein and a face outline are both gradients.
What does threshold remove?
Gradient magnitudes below the chosen value are written as zero before inversion. Raising it suppresses weak texture and also discards faint real boundaries.

Compare another reconstruction