Foundation (CVPolarization.dll) 15.0
Enumerations

Polarization de-mosaicing and visualization C API function declarations. More...

Enumerations

enum  CVPOL_PATTERN {
  CVPOL_PATTERN_90_45_135_0 = 0 , CVPOL_PATTERN_LINE_0_90_135 = 1 , CVPOL_PATTERN_BAYER_GREEN_BLUE = 1 << 16 , CVPOL_PATTERN_BAYER_BLUE_GREEN = 1 << 17 ,
  CVPOL_PATTERN_BAYER_RED_GREEN = 1 << 18 , CVPOL_PATTERN_BAYER_GREEN_RED = 1 << 19
}
 Possible pattern flags for raw polarization images. More...
 
enum  CVPOL_PSEUDO_COLOR_MODE {
  CVPOL_PCM_HSV_1 = 0 , CVPOL_PCM_HSV_2 = 1 , CVPOL_PCM_DEGREE_POL = 2 , CVPOL_PCM_ANGLE_POL_MONO = 3 ,
  CVPOL_PCM_ANGLE_POL_COL = 4
}
 Available colorization modes to visualize polarization. More...
 
enum  CVPOL_RESOLUTION { CVPOL_RES_HALF = 0 , CVPOL_RES_FULL = 1 }
 Possible upsampling modes for extracted polarization planes. More...
 

Detailed Description

Polarization de-mosaicing and visualization C API function declarations.

Enumeration Type Documentation

◆ CVPOL_PATTERN

Possible pattern flags for raw polarization images.

Note
CVPOL_PATTERN_90_45_135_0 can be added with one of CVPOL_PATTERN_BAYER_* to de-bayer color polarization images.
Enumerator
CVPOL_PATTERN_90_45_135_0 

The standard pattern for 2D polarization cameras. The polarization directions are all stored in a single plane in 2x2 blocks. These will be splitted in four planes in CVPolConvertPatternImageToPlanes.

CVPOL_PATTERN_LINE_0_90_135 

A three plane line scanner pattern found in Piranha4 cameras. The polarization directions are stored in seperate planes in rising angle order. 45° is missing and will be added by CVPolConvertPatternImageToPlanes.

CVPOL_PATTERN_BAYER_GREEN_BLUE 

A flag to add if the polarization plane is additionally color-encoded with a bayer pattern. Only supported with CVPOL_PATTERN_90_45_135_0. The bayer-pattern is assumed to be:

px 0 1 2 3
0 G G B B
1 G G B B
2 R R G G
3 R R G G

Therefore a polarization pattern group is within one color group.

CVPOL_PATTERN_BAYER_BLUE_GREEN 

A flag to add if the polarization plane is additionally color-encoded with a bayer pattern. Only supported with CVPOL_PATTERN_90_45_135_0. The bayer-pattern is assumed to be:

px 0 1 2 3
0 B B G G
1 B B G G
2 G G R R
3 G G R R

Therefore a polarization pattern group is within one color group.

CVPOL_PATTERN_BAYER_RED_GREEN 

A flag to add if the polarization plane is additionally color-encoded with a bayer pattern. Only supported with CVPOL_PATTERN_90_45_135_0. The bayer-pattern is assumed to be:

px 0 1 2 3
0 R R G G
1 R R G G
2 G G B B
3 G G B B

Therefore a polarization pattern group is within one color group.

CVPOL_PATTERN_BAYER_GREEN_RED 

A flag to add if the polarization plane is additionally color-encoded with a bayer pattern. Only supported with CVPOL_PATTERN_90_45_135_0. The bayer-pattern is assumed to be:

px 0 1 2 3
0 G G R R
1 G G R R
2 B B G G
3 B B G G

Therefore a polarization pattern group is within one color group.

◆ CVPOL_PSEUDO_COLOR_MODE

Available colorization modes to visualize polarization.

Enumerator
CVPOL_PCM_HSV_1 

RGB image from: Hue: angle of polarization Saturation: full Value: degree of polarization

CVPOL_PCM_HSV_2 

RGB image from: Hue: angle of polarization Saturation: degree of polarization Value: Stokes 0

CVPOL_PCM_DEGREE_POL 

Mono image with: Intensity: degree of polarization

CVPOL_PCM_ANGLE_POL_MONO 

Mono image with: Intensity: angle of polarization

CVPOL_PCM_ANGLE_POL_COL 

RGB image from: Hue: angle of polarization Saturation: full Value: full

◆ CVPOL_RESOLUTION

Possible upsampling modes for extracted polarization planes.

Enumerator
CVPOL_RES_HALF 

When extracting the polarization angles as planes of a raw polarization image, the planes are not upsampled and therefore only half the size of the raw image.

CVPOL_RES_FULL 

When extracting the polarization angles as planes of a raw polarization image, the planes are interpolated via upsampling to smooth the image and better represent the real scene. The resulting image will be the same size as the raw image.