Skip to content

Instantly share code, notes, and snippets.

@Abhinay1997
Last active August 15, 2019 03:50
Show Gist options
  • Save Abhinay1997/cfc8fd2360ec413943d5f61259011637 to your computer and use it in GitHub Desktop.
Save Abhinay1997/cfc8fd2360ec413943d5f61259011637 to your computer and use it in GitHub Desktop.
Sample showing the difference between GRBG and RGGB debayering on Panoptes FITS files.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Abhinay1997
Copy link
Author

Clarification The FITS files have the zeroth pixel at the bottom left corner of the array. So first flip the array using np.flipud and then apply RGGB demosaicing which is the pattern used by Canon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment