letmaik / rawpy

📷 RAW image processing for Python, a wrapper for libraw
https://pypi.python.org/pypi/rawpy
MIT License
613 stars 68 forks source link

Does raw_pattern start from (top_margin, left_margin)? #67

Closed yzxing87 closed 5 years ago

yzxing87 commented 5 years ago

Hi, I am confused that if a raw image has top and left margin, then does the raw_pattern start from (0,0) or (top_margin, left_margin)?

Thanks!

letmaik commented 5 years ago

raw_pattern is independent of margins, it's just the Bayer pattern used in the sensor. So, the pattern is valid starting from (0,0) as well as (top_margin, left_margin).