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