Functions and type definitions of the polarization library. More...
Enumerations | |
enum class | ImageResolution { Half = 0 , Full = 1 } |
Possible up sampling modes for extracted polarization planes. More... | |
enum class | PseudoColorMode { Hsv1 = CExports::CVPOL_PCM_HSV_1 , Hsv2 = CExports::CVPOL_PCM_HSV_2 , Degree = CExports::CVPOL_PCM_DEGREE_POL , AnglePolMono = CExports::CVPOL_PCM_ANGLE_POL_MONO , AngleRgb = CExports::CVPOL_PCM_ANGLE_POL_COL } |
Available colorization modes to visualize polarization. More... | |
enum class | Pattern { Square_90_45_135_0 = CExports::CVPOL_PATTERN_90_45_135_0 , Line_0_90_135 = CExports::CVPOL_PATTERN_LINE_0_90_135 , BayerGreenBlue = CExports::CVPOL_PATTERN_BAYER_GREEN_BLUE , BayerBlueGreen = CExports::CVPOL_PATTERN_BAYER_BLUE_GREEN , BayerRedGreen = CExports::CVPOL_PATTERN_BAYER_RED_GREEN , BayerGreenRed = CExports::CVPOL_PATTERN_BAYER_GREEN_RED } |
Possible patterns of raw polarization images. More... | |
Functions | |
std::unique_ptr< Image > | ConvertToPlanes (const Image &rawImage, const Pattern pattern, const ImageResolution resolution) |
Extracts the four polarization angles from a raw image to a four plane image. More... | |
std::unique_ptr< Image > | CalculateStokesImage (const Image &polarizationImage) |
From an extracted polarizationImage a new image is returned with the Stokes 0 to 2 as planes. More... | |
std::unique_ptr< Image > | CalculateStokes0 (const Image &polarizationImage) |
From an extracted polarizationImage a new image is returned with the Stokes 0 as content. More... | |
std::unique_ptr< Image > | CalculateStokes1 (const Image &polarizationImage) |
From an extracted polarizationImage a new image is returned with the Stokes 1 as content. More... | |
std::unique_ptr< Image > | CalculateStokes2 (const Image &polarizationImage) |
From an extracted polarizationImage a new image is returned with the Stokes 2 as content. More... | |
std::unique_ptr< Image > | CalculateMinReflectionImage (const Image &polarizationImage) |
From an extracted polarizationImage the minimum reflection image is calculated and returned. More... | |
std::unique_ptr< Image > | ColorizeStokesImage (const Image &stokesImage, const PseudoColorMode &colorMode) |
An extracted stokesImage is colorized in a chosen way to visualize the polarization. More... | |
Functions and type definitions of the polarization library.
|
strong |
Possible up sampling modes for extracted polarization planes.
|
strong |
Possible patterns of raw polarization images.
|
strong |
Available colorization modes to visualize polarization.
Enumerator | |
---|---|
Hsv1 | RGB image from:
|
Hsv2 | RGB image from:
|
Degree | Mono image with:
|
AnglePolMono | Mono image with:
|
AngleRgb | RGB image from:
|
|
inline |
From an extracted polarizationImage the minimum reflection image is calculated and returned.
The minimum reflection image is calculated by taking the minimum value of all the polarization angles that are contained in the input image.
polarizationImage | Input image with extracted polarization data. Usually from ConvertToPlanes. |
|
inline |
From an extracted polarizationImage a new image is returned with the Stokes 0 as content.
From an extracted polarization image Stokes 0 is calculated and returned. Stokes 0 is calculated as (0 + 45 + 90 + 135) * 0.25
.
polarizationImage | Input image with extracted polarization data. Usually from ConvertToPlanes. |
|
inline |
From an extracted polarizationImage a new image is returned with the Stokes 1 as content.
From an extracted polarization image Stokes 1 is calculated and returned.
polarizationImage | Input image with extracted polarization data. Usually from ConvertToPlanes. |
|
inline |
From an extracted polarizationImage a new image is returned with the Stokes 2 as content.
From an extracted polarization image Stokes 2 is calculated and returned in outImage.
polarizationImage | Input image with extracted polarization data. Usually from ConvertToPlanes. |
s
|
inline |
From an extracted polarizationImage a new image is returned with the Stokes 0 to 2 as planes.
From a extracted polarization image the three first Stokes are calculated and returned. Stokes 0 is calculated as (0 + 45 + 90 + 135) * 0.25
. The index of the plane represents the Stokes number.
polarizationImage | Input image with extracted polarization data. Usually from ConvertToPlanes. |
|
inline |
An extracted stokesImage is colorized in a chosen way to visualize the polarization.
Depending on the colorMode the polarization of the input image is visualized in different ways. See the comments for PseudoColorMode on information what colorization modes are available.
stokesImage | Input image with calculated stokes from a polarization image. Usually from CalculateStokesImage. |
colorMode | The PseudoColorMode that will be used to colorize the image. |
|
inline |
Extracts the four polarization angles from a raw image to a four plane image.
From a raw polarization image this function extracts the polarization angles to outImage. The returned image holds the polarization data as 4 planes sorted by increasing angle: 0, 45, 90, 135
The expected pattern of the raw image with Pattern::Square_90_45_135_0 for example is a 2x2 pattern with: Top-left: 90, Top-right: 45, Bottom-left: 135, Bottom-right: 0.
If resolution is set to <see cref="Resolution::full/> the image is interpolated and has the same size as rawImage, otherwise it will be half the size. </remarks> <param name="rawImage">Input image with raw polarization data.</param> <param name="pattern">Indicates in which pattern the polarization angles are ordered in \a rawImage.</param> <param name="resolution">Resolution of outImage. If set to <see cref="Resolution::Full/> the image is interpolated and will equal the size of rawImage, otherwise it will be half the size.