ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, VMX(Altivec) and VSX(Power7) for PowerPC, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.04k stars 407 forks source link

RAWRGB to RGB32 ColoSpace #135

Open wangjianhong0574 opened 3 years ago

wangjianhong0574 commented 3 years ago

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

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; /*

ermig1979 commented 3 years ago

I will add this issue to future plans.