ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
rectify.cl File Reference

Macros

#define NEWCAM   true
 
#define FX_L   420.34273f
 
#define FY_L   421.97661f
 
#define CX_L   331.07862f
 
#define CY_L   230.79201f
 
#define K1_L   -0.38584f
 
#define K2_L   0.20258f
 
#define P1_L   0.00178f
 
#define P2_L   -0.00064f
 
#define FX_R   421.17524f
 
#define FY_R   422.85973f
 
#define CX_R   325.68780f
 
#define CY_R   233.11305f
 
#define K1_R   -0.38543f
 
#define K2_R   0.19216f
 
#define P1_R   0.00123f
 
#define P2_R   0.00038f
 
#define NEW_FR   276.4772f
 
#define NEW_CX   318.0379f
 
#define NEW_CY   234.3821f
 
#define INV_R1_00   0.9996f
 
#define INV_R1_01   -0.0016f
 
#define INV_R1_02   -0.0265f
 
#define INV_R1_10   0.0015f
 
#define INV_R1_11   1.0000f
 
#define INV_R1_12   -0.0032f
 
#define INV_R1_20   0.0265f
 
#define INV_R1_21   0.0032f
 
#define INV_R1_22   0.9996f
 
#define INV_R2_00   1.0f
 
#define INV_R2_01   -0.0013f
 
#define INV_R2_02   -0.0035f
 
#define INV_R2_10   0.0013f
 
#define INV_R2_11   1.0f
 
#define INV_R2_12   0.0032f
 
#define INV_R2_20   0.0035f
 
#define INV_R2_21   -0.0032f
 
#define INV_R2_22   1.0f
 
#define WIDTH   640
 
#define HEIGHT   480
 

Functions

__kernel void rectifyL (__global uchar *input, __global uchar *output)
 
__kernel void rectifyR (__global uchar *input, __global uchar *output)
 
__kernel void rectifyL_8bit (__global uchar *input, __global uchar *output)
 
__kernel void rectifyR_8bit (__global uchar *input, __global uchar *output)
 

Macro Definition Documentation

◆ CX_L

#define CX_L   331.07862f

◆ CX_R

#define CX_R   325.68780f

◆ CY_L

#define CY_L   230.79201f

◆ CY_R

#define CY_R   233.11305f

◆ FX_L

#define FX_L   420.34273f

◆ FX_R

#define FX_R   421.17524f

◆ FY_L

#define FY_L   421.97661f

◆ FY_R

#define FY_R   422.85973f

◆ HEIGHT

#define HEIGHT   480

◆ INV_R1_00

#define INV_R1_00   0.9996f

◆ INV_R1_01

#define INV_R1_01   -0.0016f

◆ INV_R1_02

#define INV_R1_02   -0.0265f

◆ INV_R1_10

#define INV_R1_10   0.0015f

◆ INV_R1_11

#define INV_R1_11   1.0000f

◆ INV_R1_12

#define INV_R1_12   -0.0032f

◆ INV_R1_20

#define INV_R1_20   0.0265f

◆ INV_R1_21

#define INV_R1_21   0.0032f

◆ INV_R1_22

#define INV_R1_22   0.9996f

◆ INV_R2_00

#define INV_R2_00   1.0f

◆ INV_R2_01

#define INV_R2_01   -0.0013f

◆ INV_R2_02

#define INV_R2_02   -0.0035f

◆ INV_R2_10

#define INV_R2_10   0.0013f

◆ INV_R2_11

#define INV_R2_11   1.0f

◆ INV_R2_12

#define INV_R2_12   0.0032f

◆ INV_R2_20

#define INV_R2_20   0.0035f

◆ INV_R2_21

#define INV_R2_21   -0.0032f

◆ INV_R2_22

#define INV_R2_22   1.0f

◆ K1_L

#define K1_L   -0.38584f

◆ K1_R

#define K1_R   -0.38543f

◆ K2_L

#define K2_L   0.20258f

◆ K2_R

#define K2_R   0.19216f

◆ NEW_CX

#define NEW_CX   318.0379f

◆ NEW_CY

#define NEW_CY   234.3821f

◆ NEW_FR

#define NEW_FR   276.4772f

◆ NEWCAM

#define NEWCAM   true

◆ P1_L

#define P1_L   0.00178f

◆ P1_R

#define P1_R   0.00123f

◆ P2_L

#define P2_L   -0.00064f

◆ P2_R

#define P2_R   0.00038f

◆ WIDTH

#define WIDTH   640

Function Documentation

◆ rectifyL()

__kernel void rectifyL ( __global uchar *  input,
__global uchar *  output 
)

Rectify a stereo camera given its camera parameter and rectification parameter
img seperate mode - Left image processing
4byte(float) image processing

Parameters
inputLeft input image
outputLeft image after rectified

◆ rectifyL_8bit()

__kernel void rectifyL_8bit ( __global uchar *  input,
__global uchar *  output 
)

Rectify a stereo camera given its camera parameter and rectification parameter
img seperate mode - Left image processing
8bit(uchar) image processing

Parameters
inputLeft input image
outputLeft image after rectified

◆ rectifyR()

__kernel void rectifyR ( __global uchar *  input,
__global uchar *  output 
)

Rectify a stereo camera given its camera parameter and rectification parameter
img seperate mode - Right image processing
4byte(float) image processing

Parameters
inputRight input image
outputRight image after rectified

◆ rectifyR_8bit()

__kernel void rectifyR_8bit ( __global uchar *  input,
__global uchar *  output 
)

Rectify a stereo camera given its camera parameter and rectification parameter
img seperate mode - Right image processing
8bit(uchar) image processing

Parameters
inputRight input image
outputRight image after rectified