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

Can I use a specific CFA? #7

Open
makejohn opened this issue Jul 25, 2023 · 2 comments
Open

Can I use a specific CFA? #7

makejohn opened this issue Jul 25, 2023 · 2 comments

Comments

@makejohn
Copy link

I got a TDI camera, which is R G B R G B... which mean the image CFA should be like

[R G B R G B R G B R G B R G B R G B R G B ]
[R G B R G B R G B R G B R G B R G B R G B ]
[R G B R G B R G B R G B R G B R G B R G B ]
[R G B R G B R G B R G B R G B R G B R G B ]

Does this project support this kind of CFA? Or should I modify something to make this project fit with this "RGB" CFA

@cheind
Copy link
Owner

cheind commented Jul 25, 2023

hey,

so you got a line-based camera? The arrangement of filters is currently unsupported by this library out of the box. You will need to tweak things a bit. You could for example shift every second row by -1 and then drop every third column..this should give

RGRG
GBGB

but will cost you resolution (due to dropping columns) and will probably also offset colors a bit (due to shifting). Alternatively you will need to come up with custom conv kernels.

@makejohn
Copy link
Author

Thanks for your reply, I am not familiar with pytorch, just met a lot of false color while demosaicing the TDI-camera image, I trying to solve this issue using different methods.

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