Why is the horizontal resolution doubled when capturing raw? #1044
Answered
by
davidplowman
mr-wrinkles
asked this question in
Q&A
-
Hi, I am using the HQ camera and I am trying to capture raw cfa data. When I use capture_array() why does the resulting array have the dimensions (3040,8128) when the sensor is 4056x3040?
|
Beta Was this translation helpful? Give feedback.
Answered by
davidplowman
Jun 7, 2024
Replies: 1 comment 1 reply
-
Hi, you've asked for unpacked raw pixels so, because they're more than 8-bits wide they have to occupy 2 bytes each. To turn the raw buffer into 16-bit numbers, use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mr-wrinkles
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, you've asked for unpacked raw pixels so, because they're more than 8-bits wide they have to occupy 2 bytes each. To turn the raw buffer into 16-bit numbers, use
raw_data.view(np.uint16)
.