dilevin / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
2 stars 10 forks source link

Demosaic Bayer pattern? #71

Closed willgc88 closed 2 months ago

willgc88 commented 2 months ago

Is the given mosaiced image in BGGR or GBRG pattern? In the header file it says both: Also, which pattern should we use for simulate_bayer_mosaic?

// Given a mosaiced image (interleaved BGGR colors in a single channel), created // a 3-channel rgb image. // // Inputs: // bayer widthheight array containing interleaved color intensities in // the GBRG bayer pattern. // width image width (i.e., number of columns) // height image height (i.e., number of rows) // Outputs: // rgb widthheight*3 array containing rgb image color intensities

dilevin commented 2 months ago

See here: https://github.com/dilevin/computer-graphics-raster-images/issues/64