Menu

1 / 2

An Upscaler Does Not Remove a Hot Pixel. It Smears It Into Exactly f-squared of Them.

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

My first instrument reported that a 2× upscale removed 99.76 % of the salt-and-pepper noise I had injected into seven photographs. That number is real. It is also wrong, and the reason it is wrong is the most useful thing I learned in this whole experiment: the upscaler did not remove the noise, it diluted it below the threshold my instrument was using to call something noise.

Here is the short version of what actually happens to a single corrupted pixel when you resize by a factor f with bilinear interpolation. Its total energy is conserved exactly : the sum of the deltas it leaves behind is 127 · f² code levels, no more and no less. What changes is the peak. At 2× the peak drops to 55.9 % of its original height. At 3× it does not drop at all — it is 100 % . At 4×, 76.4 %. At 8×, 88.2 %.…

Continue reading — create a free account

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