Skip to content

Why is the horizontal resolution doubled when capturing raw? #1044

Answered by davidplowman
mr-wrinkles asked this question in Q&A
Discussion options

You must be logged in to vote

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).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mr-wrinkles
Comment options

Answer selected by mr-wrinkles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants