Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using with png #28

Open
vvubbalubba opened this issue Oct 11, 2023 · 2 comments
Open

using with png #28

vvubbalubba opened this issue Oct 11, 2023 · 2 comments

Comments

@vvubbalubba
Copy link

Hi!
I'm trying to use this method with images i have only in PNG format. Is there any way to do this?

@Jamy-L
Copy link
Owner

Jamy-L commented Oct 13, 2023

Hi,

There is not really a straightforward way to make it work with any png image. Actually this algorithm is designed for raw images, so it would not work as well if the input has already been post-processed. 2 key elements are the noise distribution and the color space: denoising will not work so well if the noise distribution has been altered, and frame fusion must be done in the raw color space to work best.

Admitting that your png contains an image with minimal modification from the raw, there is also the question of channels. This algorithm was designed for mosaiced raw frames, so it can't work if the png is already and rgb image. You could either decimate the image to simulate mosaicing, or treat each channel as a separate image. We do have a grey_mode flag to process grey images, so you could process the R G and B channel by pretending that they are separate grey images.

I dont really know the nature of your png's, but this algorithm may not the best choice for your use case. If you still want to proceed, you need to run the code locally and modify the function that calls the pipeline. This means that you will need to manually normalise your image, get the noise profile and give the bayer pattern (in grey mode you can give whatever 2x2 matrice, it doesn't matter). If you have no idea of the noise profile, you can take alpha = 1.80710882e-4 and beta = 3.1937599182128e-6, and use the noise curve included in one folder of the project.

@vvubbalubba
Copy link
Author

vvubbalubba commented Oct 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants