Mimizan Lab – linear negatives from Bayer RAW without demosaicing

Hi,

I’ve been working on Mimizan Lab over the last month, and this is the first time I’m showing it anywhere.

Mimizan Lab turns Bayer RAW files into linear negatives — without demosaicing. Instead of spatial interpolation, it separates chrominance from the carriers in the frequency domain and keeps what’s left as luminance. Every output pixel is a fixed weighted sum of actual measured photosites.

By mixing these separations three times with different filter weights, it can also create three-color plates (in the Prokudin-Gorsky sense) — still without demosaicing, and perfectly in register by construction.

The best way to see how differently Mimizan renders structure and colour is to try it on a RAW file you know inside out — one where you already know where standard demosaicers usually guess, create artifacts, or smear texture. Look at the 1:1 print view and compare how it draws fine detail, grain, and high-contrast edges.

It’s written in 100% Rust (egui), runs on Linux, macOS, Windows (also in the Microsoft Store), and as a native Android build.

If you feel like taking a look or running your own files through it:

Best regards,
Dragan

4 Likes

Any examples of the demosaicing improvements you can share?

During development, I relied heavily on standardized studio scene RAWs (like DPReview’s test chart files) to tune and benchmark the algorithm. However, copyright and licensing terms prevent me from republishing converted crops of those files publicly.

I am currently in the process of setting up my own high-resolution studio test scene to publish standardized 1:1 side-by-side comparisons soon.

In the meantime, since Mimizan Lab is free and open-source, the best way to see the difference is to open one of your own familiar RAW files (or samples from raw.pixls.us) and inspect the 1:1 print view. Pay close attention to fine high-contrast edges, fine textures, and moiré-prone patterns—you’ll see the complete absence of spatial guessing, zipper artifacts, or color bleeding.

If anyone runs their own files through Mimizan and wants to post 1:1 comparison crops here in the thread, I’d be thrilled to see them!

1 Like

Hello, I tried your app. Your tiff seems to be better at first sight. I notice less noise (this is a 6400 iso shot with an old camera). Here’s a screenshot, on the left the Mimizan tiff, on the right the nef file. The reds and yellows on Bowie’s face differ.

On the left Mimizan, on the right the OOC jpg.

On the other hand, there’s no highlight reconstruction, is that by default?

EDIT. Using Wratten in the enlarger solves this pinkish spot.

1 Like

Hey @Dragan thanks for sharing this.
I cannot test it right now, but I’m curious if it works with this problematic image. If I understand correctly, could your software solve this kind of problem?

Thank you, that was a real bug in the plate, not a missing feature. Green clips lowest after the white balance, so a burnt-out green photosite made every colour difference around it false towards magenta. 0.15.6 takes the colour out there and prints the luminance; whites stay white, nothing reconstructed. Wratten hid it because its weights are all positive.

Thanks again for testing. The fix is in 0.15.6: the Linux, Windows and macOS builds are on GitHub (Release v0.15.6 · Draganito/mimizan · GitHub), and the Microsoft Store update has been submitted and will appear once it clears certification.

It is colour moiré, not banding. In the monochrome process it is gone, the weave stays weave. In the plate it is softer than in darktable but still there: at that frequency the sensor cannot tell a weave from colour. Crops attached


1 Like

I played a little with the program. I am quite impressed with the monochrome developments. It seems to be quite easy to get pleasing results with “pleasant” noise. As far as color reproduction goes, I’m not entirely convinced.
Comparison with my edits in darktable are difficult, because the final images came out quite different in brightness and contrast. But here is an example just rendered in Mimizan.

1 Like

Hello, I tried mimizan on what turned out to be a difficult image from a Canon R6 III. A guitar where the spatial frequency of the string windings beats with the sensor sampling interval. In the mono, the regular beat pattern can be seen and in the Plate the colour pattern is very obvious. LMMSE in darktable brings this down to a level that is unobtrusive in the overall picture.

1 Like

Thank you for the test, that is the hardest case for this approach. The windings sit near the sampling limit. In the monochrome negative the beat is the sensor’s own aliasing; nothing is reconstructed, so nothing hides it, and a demosaicer only smooths it along with everything else. In the plate the red and blue carriers run at half the sampling rate, so the beat folds down into the low band that Mimizan passes as colour. LMMSE estimates the missing samples from all three channels along the edge and cancels part of that colour; Mimizan does not estimate, so it cannot. It is the price of leaving the drawing untouched. A moiré suppression that acts on the colour layer alone, leaving the luminance as it is, would be possible and is worth thinking about. Could you share the CR3? I would like to measure where the fold lands.

Thank you for trying it, and the hawk is a fine print. The noise you call pleasant is the sensor’s own grain: nothing is interpolated, so it stays the size of a photosite and does not clump.

On colour, you are comparing two different things, and the difference in brightness and contrast is the sign of it. The plate is not a camera profile applied to a demosaiced image. It is three carriers projected through three filters onto a paper with its own curve, closer to a Prokudin-Gorsky plate than to a colour-managed render. It will not land where darktable’s filmic or sigmoid lands, and it is not meant to.

For a fair comparison take the other door: Negative… writes a linear DNG, the three carriers at their own sampling, no demosaicing, no paper. Open that in darktable next to the original RAW with the same profile, white balance and tone curve. Then the only difference between the two is the demosaicer, and you can judge the colour on its own.

If something in the plate still looks wrong to you after that, I would like to see the file. “Not entirely convinced” could be a taste, or it could be a mistake on my side, and I would rather know which.

Thanks for the file, it measures just as you saw it. Along the low E the winding repeats every 2.19 pixels, which is 0.457 cycles per pixel, a hair below the Bayer carrier at 0.5. Each colour sublattice folds that down to a 23 pixel beat: your dots. The A string does the same at 14 pixels.

In the mosaic a 2.2 px grey pattern and a 23 px colour pattern are the same frequency, so there is nothing to separate. LMMSE assumes colour differences are smooth and calls it grey, which on a guitar string is the right guess. Mimizan makes no guess, so about a fifth of the winding stays in the negative and the rest shows up as beads, and in the plate as yellow and blue. At f/8 this lens still has contrast at 0.46 c/px, which is what makes the case so clean.

That is the limit of the method, and I would rather show it than hide it. Thank you for finding it so precisely.

1 Like

This is a very interesting approach, thank you for working on and releasing it!

In terms of detail, the results remind me a little of the way Sigma’s Foveon sensors used to behave. Zoomed in att 100%, there’s a distinct lack of that Bayer “watercolor” effect, if you get my meaning.

In terms of color, my Sony files (some A6000, some even older) aren’t entirely to my tastes with this method either, not without tweaking. But the output is very interesting and I’ll keep experimenting as the project evolves.

As an aside, your recent posts read heavily like they’re AI-generated: FAQ - discuss.pixls.us

Haha, you caught me. I do not speak English, so every post here goes through an AI for translation; that is why it reads the way it does.

On Mimizan itself I want to be just as open. I have worked on it every day for thirty days, five to eight hours a day, and I am responsible for every detail of it. The AI writes the Rust and the maths with me; the idea, the decisions and the testing are mine, and every number in this thread was measured before I posted it. If that way of working is not welcome here, I understand and will keep it to the README.

On your Sony colour: the plate is three filters and a paper curve, not a profile, so it will not land where your usual rendering does. If you want Mimizan’s separation with your own colour, Negative… writes a linear DNG that darktable opens as a RAW and does not demosaic again. I would be glad to see what the A6000 files do with it.

Thank you for the Foveon comparison, that is the look I was after.

Pozdrav, Dragan B.

2 Likes

I posted this in error in another thread, and moving it to here makes the forum complain about ‘same post as elsewhere’. I’m typing this to see if it will now distinguish it as ‘unique’… :crazy_face:

I don’t know what others will say, but I am interested in this dialogue. If you’re using the tools to do things that you supervise and quality-control, go for it. LLM tools are apparently a fact of life, and good examples of their use are instructive.

1 Like

Thanks for the explanation, I will try that.

1 Like

I see! It’s great that we have these tools at our disposal, isn’t it? For coding, they are obviously supremely useful.

The writing in your posts just struck me as very distinctly Claudesque. I suspect that if you wrote in your native language and had them translated, rather than having Claude write them for you, it would be different – more human. But again, I don’t know the story.

I wasn’t very clear, but what I’m after with my Sony files is decidedly not the usual rendering, which suffers from the rather infamous “green tint”. I find myself correcting for that in various ways almost all of the time, Mimizan Lab included.

A chroma denoiser seems like a useful feature to add. I’ll see if I can post some A6000 examples eventually.

2 Likes

mosnee, fair point. From now on I write in German and only let the machine translate, so you get me and not the model. On the denoiser: there will never be one in Mimizan. Noise belongs to the sensor, like grain to film; Mimizan counts the photosites and leaves them as they are. What it does against colour noise is already in the separation, nothing more comes. Your green tint is another matter, that is white balance and matrix, not noise. Post the A6000 files and we look at where it comes from.

Dragan

1 Like

Glenn, thank you. That is exactly how I work: I decide, I test, I answer for every number. I will keep posting the way I measure, and I hope the examples are useful.

1 Like

Having peeked at your github page, I can say that this project is quite interesting to me. I will try and run some images next week sometime.

As a tangent: I have been playing with the old 3 color processes using film cameras and pinhole cameras recently. I use 3 old projectors with color filters over the lenses to view the images. Currently, I am trying to design and build a self contained device to allow me to view them projected on a ground-glass viewing port using a single light source. I would love to get a wet plate setup so I could combine the images onto a single plate, but convincing my wife that I need all the infrastructure and nasty chemicals in our spare bathroom has not been successful :laughing:

2 Likes