Menu

1 / 2

Median Before or After the Upscale? The Crossover Is 0.2%, and Real Photos Never Get There

DEV Community: computervision·celticgemini001·2 days ago
#uSLCsmAL
Long article (2572 words) — no AI summary yet.
Reading 0:00
15s threshold

Every "denoise before you upscale" tutorial says the same thing, and so did I: strip the noise first, because enlarging a spike into four fat spikes only makes it worse. Then I measured the case where nobody has added noise — a clean photograph — and the ranking flipped. Median-3 after the 2× upscale beat median-3 before it by 7.59 dB .

Both statements cannot be the rule. One of them has to be a special case, and finding out which one tells you whether the advice applies to your file at all.

The two numbers that contradicted each other

Seven photographs, 512-pixel centre crops, one bilinear 2× upscale. The same seven crops in every arm. The "truth" image is the bilinear 2× of the clean crop, so an arm that does nothing to the image scores the resize error alone, and every filter is charged for whatever it changes.

Clean frames, nothing injected.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.