You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i use your RAW to RGB32 the speed is very fast.Thank you for your great and selfless work. But in some cases the effect is not good, I have the following C language image quality is good. I hope it will be useful for you.
this is better
/*
BayerConversion
function: fairly basic interpolation scheme creating RGB values from surrounding R,G,B in bayer
image.bordercases are handled by coloring them black
in: pointer to 8bpp Bayer buffer
out: pointer to 32bpp RGB buffer
special: using the following 3x3 kernel interpolation:
void BayerConversionGRBG(unsigned char *pIn, unsigned char pOut, int nRealWidth, int nRealHeight, Bayer_Filter BayerFilter)
{
int yWidth = 0, ym1Width = 0, yp1Width;
int x, y;
int pix;
/
* border cases (fill it in with black)
*/
/G R G R G R
B G B G B G
G R G R G R
B G B G B G/
i use your RAW to RGB32 the speed is very fast.Thank you for your great and selfless work. But in some cases the effect is not good, I have the following C language image quality is good. I hope it will be useful for you.
this is better
/*
/
/
G R
B G
*/
#define B_OFFSET 0
#define G_OFFSET 1
#define R_OFFSET 2
#define ODD(i) ((i)&1)
#define EVEN(i) (!((i)&1))
typedef enum {
Pattern_Recognition_Filter,
Laroche_Prescott_Filter,
Fast_Linear_Filter,
Anisotropic_Filter
}Bayer_Filter;
void BayerConversionGRBG(unsigned char *pIn, unsigned char pOut, int nRealWidth, int nRealHeight, Bayer_Filter BayerFilter)
{
int yWidth = 0, ym1Width = 0, yp1Width;
int x, y;
int pix;
/
* border cases (fill it in with black)
*/
/G R G R G R
B G B G B G
G R G R G R
B G B G B G/
}
The text was updated successfully, but these errors were encountered: