How can I make a bayer image and become a debayer again? (demosaicing)

684 Views Asked by At

My goal is to blur the picture a bit using a bilinear debayer.

This is to embody the dirty image of the VHS days.

As a graphic major, I tried to reproduce it with various graphic tools, but did not get the desired quality result. I want that subtle feeling of faded haze when scanned with a scanner. I decided to emulate a camera sensor.

The process I envisioned is this: I convert the tiff,targa.png.jpg format image I made into a bayer format image. I want to restore the original image by debayering it again with a bilinear algorithm.

The reason for the bilinear method is that it degrades most gently and strongly. The link below is the image change according to the algorithm. https://www.dpreview.com/forums/post/63514167

I'm not a programmer at all, but I've tried something on my own to get what I want.

https://codegolf.stackexchange.com/questions/86410/reverse-bayer-filter-of-an-image I succeeded in making an image of the Bayer pattern using the coding here.

And I tried debayering by running the debayer source code downloaded from other places, but it failed because the extension was not supported.

So you can change demoasic(debayer) in various ways I got a program called darkable and raw therapy and tried to convert it, but these programs could only recognize raw files. Even the algorithms provided by both programs were so good that it was hard to get the impression that the image was degraded.

How do I make what I want? What can I look for? I really want to make this.

Please let me know which way I should go.

0

There are 0 best solutions below