-
Notifications
You must be signed in to change notification settings - Fork 355
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
add bayer array support for IMX477 sensor #634
base: master
Are you sure you want to change the base?
Conversation
Closes #633. Not sure if my commit to the tests was implemented correctly, I was unable to run any tests on my rpi. |
Hey, just to let you know I've merged a copy of this PR into a picamera fork we're using for some projects, found at labthings#2 Thanks! |
I think the logic inside _unpack_data is different to old 10-bit unpack code. |
@AlecVercruysse At first glance, I think there are many different. after read fix #563 , the only different is line 437, unpacked_array will be create many times. |
Good catches, thank you! I changed |
I work with bayer pattern images. I need to know which color the first Pixel in the captured array has.. |
I no longer have access to the sensor, but you can check using this library. find what |
thanks for your help Alec, what would you say if you read the code, what color is the first pixel (1,1)? &does this also apply to the imx477 (HQ Cam)? |
Bayer order varies depending on horizontal and vertical flips, so there is no one guaranteed answer. The header of the raw capture includes metadata which tells you the Bayer order that frame has. @AlecVercruysse appears to have already given you the runes required to extract this in Python (in C see https://github.com/6by9/dcraw/blob/master/dcraw.c#L6465) |
Thanks for reply. I use the following:
Could you please show me in code, how to extract the metadata/information for the colorfilter information? |
Hey I took the time to convert the raw bayer array to BGGR GBRG GRBG and RGGB.
it looks like BGGR is the way to go. since iam only interested in radiometric characteristics of the images, I was wondering if it would even matter^^ printing config['raw']['format'] shows SBGGR12. I guess I can trust that. |
also fix the bug metioned in #563