Luminous Landscape Forum

Equipment & Techniques => Mirrorless Cameras => Topic started by: Guillermo Luijk on January 16, 2022, 11:32:31 am

Title: Leica M11's sensor is a conventional Bayer sensor
Post by: Guillermo Luijk on January 16, 2022, 11:32:31 am
Leica claims the new Leica M11 can produce 3 different output resolutions, both in JPEG and RAW. This could lead to think that the camera uses some CFA that allows for pixel binning techniques to produce different resolutions. But the sensor happens to be a standard 60Mpx RG/GB Bayer sensor (which BTW is the most logical way in order to prioritize image quality at the highest resolution), so the 36Mpx and 18Mpx shooting modes should just be downscaled versions of the 60Mpx demosaiced RAW data.

I am a bit surprised at why Leica is putting so much effort in marketing these lower resolution modes, claiming an improvement in SNR and DR, which is a common consequence of any pixel downsizing procedure.

There are RAW files available at DPreview:

http://guillermoluijk.com/misc/leicam11.jpg

200% crop of processed RAW file and RG/GB Bayer pattern:
http://guillermoluijk.com/misc/leicam11crop.jpg

D:\leicam11>dcraw -v -i *.dng
Filename: L1000504.DNG
Raw colors: 3
Filter pattern: RG/GB
Timestamp: Sun Dec 12 18:45:05 2021
Camera: Leica M11
DNG Version: 1.4.0.0
ISO speed: 64
Shutter: 1/128.0 sec
Aperture: f/4.8
Focal length: 0.0 mm
Number of raw images: 1
Thumb size:  9504 x 6320
Full size:   9536 x 6336
Image size:  9536 x 6336
Output size: 6336 x 9536
Daylight multipliers: 3.820809 0.967847 1.426022
Camera multipliers: 3.851563 1.000000 1.527344 0.000000

Regards
Title: Re: Leica M11's sensor is a conventional Bayer sensor
Post by: Guillermo Luijk on January 16, 2022, 11:59:09 am
Surprisingly, in Amateur Photographer have analysed that the 36Mpx and 18Mpx output modes keep the RG/GB Bayer pattern, which means some form of new downscaling implemented by Leica:

https://www.amateurphotographer.co.uk/reviews/compactsystemcameras/leica-m11-review

Regards
Title: Re: Leica M11's sensor is a conventional Bayer sensor
Post by: Manoli on January 16, 2022, 12:28:34 pm
... which means some form of new downscaling implemented by Leica:

https://www.amateurphotographer.co.uk/reviews/compactsystemcameras/leica-m11-review

Quote
This isn’t the first time we’ve seen ‘small RAW’ files […] But it seems like Leica is doing something technically very different. Where these other sRAW formats involve demosaicing the raw sensor data and downsampling the resultant full-colour file, examining the M11’s DNGs using RawDigger reveals that Leica is simply outputting lower-resolution, un-demosaiced files.

This looks like such an obvious approach that you’d be forgiven for wondering why other cameras don’t all do it already. The likely reason is that, theoretically, interpolating and downsampling the individual colour channels like this could be open to producing imaging artefacts with finely-repeating, low-contrast detail. However, there’s no obvious problems with our landscape comparison above.
Title: Re: Leica M11's sensor is a conventional Bayer sensor
Post by: Guillermo Luijk on January 16, 2022, 01:22:06 pm
Not that simple:

DNG™
L-DNG 60,3 MP 9528 x 6328 pixels
M-DNG 36,5 MP 7416 x 4928 pixels
S-DNG 18,4 MP 5272 x 3498 pixels

Regards
Title: Re: Leica M11's sensor is a conventional Bayer sensor
Post by: mcbroomf on January 16, 2022, 02:39:09 pm
So it boils down to whether Leica's downsize interpolation of the colour channels before demosaic (if AP is right) is equal to, better, or worse than a straight interpolation after the full image is demosaiced.  I'm not sure these days unless you are a dedicated sports/wildlife/journalist (for eg) type shooter who shoots thousands in one session that you need smaller files, and in that case most (from what I understand) want jpg so that they can fly from camera to editor without being touched by the photographer.
Title: Re: Leica M11's sensor is a conventional Bayer sensor
Post by: Guillermo Luijk on January 16, 2022, 05:03:25 pm
So it boils down to whether Leica's downsize interpolation of the colour channels before demosaic (if AP is right) is equal to, better, or worse than a straight interpolation after the full image is demosaiced.
The downsize interpolation process is lossy, so I think it's safe to say you'll never get anything with the 36Mpx or 18Mpx modes that cannot be achieved or improved in terms of image quality using the original 60Mpx RAW data. The usefulness of these lower resolution modes comes when the advantage of smaller files is greater than the quality loss.

However what we know so far is that the camera produces undemosaiced DNG files (or we'd better say to-be-demosaiced DNG files), but it remains a mystery whether the original RAW data is demosaiced at some point in the process or not. I can think of two possibilities:

I can see advantages and disadvantage on both approaches, but the first being more complex makes more sense to me and I find it more attractive from an engineering/signal processing perspective.

Regards

Title: Re: Leica M11's sensor is a conventional Bayer sensor
Post by: SrMi on February 27, 2022, 05:27:03 pm
The quality of lower resolution files (M-DNG, S-DNG) is similar to the resized full resolution (L-DNG) file quality. I do not know of any other manufacturer that can provide smaller resolution raw files without a quality loss.
It is not clear how they do that, but the chosen resolutions are limited by the algorithms used. E.g., 24MP mode was not possible.