Spinnaker C++
2.6.0.0
Public Types | Static Public Member Functions | List of all members
ImageUtilityPolarization Class Reference

Static functions to create polarization images from image objects of pixel format Polarized8 and BayerRGPolarized8. More...

Public Types

enum  PolarizationQuadrant { QUADRANT_I0, QUADRANT_I45, QUADRANT_I90, QUADRANT_I135 }
 Polarization quadrant specifiers describing the four orientations of linear polarizing filters on polarized cameras. More...
 

Static Public Member Functions

static ImagePtr ExtractPolarQuadrant (const ImagePtr &srcImage, const PolarizationQuadrant desiredQuadrant)
 Extracts all pixels of a specified degree of linear polarization into a new image object. More...
 
static void ExtractPolarQuadrant (const ImagePtr &srcImage, ImagePtr &destQuadImage, const PolarizationQuadrant desiredQuadrant)
 Extracts all pixels of a specified degree of linear polarization into the provided image object. More...
 
static ImagePtr CreateGlareReduced (const ImagePtr &srcImage)
 Create a glare reduced image from the source image by choosing the darkest pixel from each polarization quadrant The source image pixel format must be Polarized8 or BayerRGPolarized8. More...
 
static void CreateGlareReduced (const ImagePtr &srcImage, ImagePtr &destGlareReducedImage)
 Create a glare reduced image from the source image by choosing the darkest pixel from each polarization quadrant The source image pixel format must be Polarized8 or BayerRGPolarized8. More...
 
static ImagePtr CreateStokesS0 (const ImagePtr &srcImage, const ColorProcessingAlgorithm colorProcessingAlg=DEFAULT)
 Computes an image representing the overall intensity of light from a polarized image. More...
 
static void CreateStokesS0 (const ImagePtr &srcImage, ImagePtr &destStokesS0Image, const ColorProcessingAlgorithm colorProcessingAlg=DEFAULT)
 Computes an image representing the overall intensity of light from a polarized image. More...
 
static ImagePtr CreateStokesS1 (const ImagePtr &srcImage, const ColorProcessingAlgorithm colorProcessingAlg=DEFAULT)
 Computes an image representing the difference in intensity accepted through the polarizers at 0 and 90 to the horizontal. More...
 
static void CreateStokesS1 (const ImagePtr &srcImage, ImagePtr &destStokesS1Image, const ColorProcessingAlgorithm colorProcessingAlg=DEFAULT)
 Computes an image representing the difference in intensity accepted through the polarizers at 0 and 90 to the horizontal. More...
 
static ImagePtr CreateStokesS2 (const ImagePtr &srcImage, const ColorProcessingAlgorithm colorProcessingAlg=DEFAULT)
 Computes an image representing the difference in intensity accepted through the polarizers at 45 and -45 to the horizontal. More...
 
static void CreateStokesS2 (const ImagePtr &srcImage, ImagePtr &destStokesS2Image, const ColorProcessingAlgorithm colorProcessingAlg=DEFAULT)
 Computes an image representing the difference in intensity accepted through the polarizers. More...
 
static ImagePtr CreateDolp (const ImagePtr &srcImage, const ColorProcessingAlgorithm colorProcessingAlg=DEFAULT)
 Computes an image representing the fraction of incident light intensity in the linear polarization states. More...
 
static void CreateDolp (const ImagePtr &srcImage, ImagePtr &destDolpImage, const ColorProcessingAlgorithm colorProcessingAlg=DEFAULT)
 Computes an image representing the fraction of incident light intensity in the linear polarization states. More...
 
static ImagePtr CreateAolp (const ImagePtr &srcImage, const ColorProcessingAlgorithm colorProcessingAlg=DEFAULT)
 Computes an image representing the angle at which linearly polarized light oscillates with respect to a reference axis. More...
 
static void CreateAolp (const ImagePtr &srcImage, ImagePtr &destAolpImg, const ColorProcessingAlgorithm colorProcessingAlg=DEFAULT)
 Computes an image representing the angle at which linearly polarized light oscillates with respect to a reference axis. More...
 

Detailed Description

Static functions to create polarization images from image objects of pixel format Polarized8 and BayerRGPolarized8.

Member Enumeration Documentation

Polarization quadrant specifiers describing the four orientations of linear polarizing filters on polarized cameras.

Enumerator
QUADRANT_I0 

The 0 degree of polarization.

QUADRANT_I45 

The 45 degree of polarization.

QUADRANT_I90 

The 90 degree of polarization.

QUADRANT_I135 

The 135 degree of polarization.

Member Function Documentation

static ImagePtr CreateAolp ( const ImagePtr srcImage,
const ColorProcessingAlgorithm  colorProcessingAlg = DEFAULT 
)
static

Computes an image representing the angle at which linearly polarized light oscillates with respect to a reference axis.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format will be Mono32f or RGB32f respectively. The destination image height and width will be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
colorProcessingAlgThe color processing algorithm to use for color images
Returns
The angle of linear polarization (aolp) image
Examples:
Polarization.cpp.
static void CreateAolp ( const ImagePtr srcImage,
ImagePtr destAolpImg,
const ColorProcessingAlgorithm  colorProcessingAlg = DEFAULT 
)
static

Computes an image representing the angle at which linearly polarized light oscillates with respect to a reference axis.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format must be Mono32f or RGB32f respectively. The destination image height and width must be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
destAolpImgThe destination image in which to store the angle of linear polarization (aolp) image
colorProcessingAlgThe color processing algorithm to use for color images
static ImagePtr CreateDolp ( const ImagePtr srcImage,
const ColorProcessingAlgorithm  colorProcessingAlg = DEFAULT 
)
static

Computes an image representing the fraction of incident light intensity in the linear polarization states.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format will be Mono32f or RGB32f respectively. The destination image height and width will be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
colorProcessingAlgThe color processing algorithm to use for color images
Returns
The degree of linear polarization (dolp) image
Examples:
Polarization.cpp.
static void CreateDolp ( const ImagePtr srcImage,
ImagePtr destDolpImage,
const ColorProcessingAlgorithm  colorProcessingAlg = DEFAULT 
)
static

Computes an image representing the fraction of incident light intensity in the linear polarization states.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format must be Mono32f or RGB32f respectively. The destination image height and width must be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
destDolpImageThe destination image in which to store the degree of linear polarization (dolp) image
colorProcessingAlgThe color processing algorithm to use for color images
static ImagePtr CreateGlareReduced ( const ImagePtr srcImage)
static

Create a glare reduced image from the source image by choosing the darkest pixel from each polarization quadrant The source image pixel format must be Polarized8 or BayerRGPolarized8.

The destination image pixel format will be Mono8 or BayerRG8 respectively. The destination image height and width must be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
Returns
The reduced glare image
Examples:
Polarization.cpp.
static void CreateGlareReduced ( const ImagePtr srcImage,
ImagePtr destGlareReducedImage 
)
static

Create a glare reduced image from the source image by choosing the darkest pixel from each polarization quadrant The source image pixel format must be Polarized8 or BayerRGPolarized8.

The destination image pixel format will be Mono8 or BayerRG8 respectively. The destination image height and width must be half of the source image.

Parameters
srcImageThe source image from which to apply glare reduction
destGlareReducedImageThe destination image in which to store the image with reduced glare
static ImagePtr CreateStokesS0 ( const ImagePtr srcImage,
const ColorProcessingAlgorithm  colorProcessingAlg = DEFAULT 
)
static

Computes an image representing the overall intensity of light from a polarized image.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format will be Mono16s or RGB16s respectively. The destination image height and width will be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
colorProcessingAlgThe color processing algorithm to use for color images
Returns
The Stokes' S0 image
Examples:
Polarization.cpp.
static void CreateStokesS0 ( const ImagePtr srcImage,
ImagePtr destStokesS0Image,
const ColorProcessingAlgorithm  colorProcessingAlg = DEFAULT 
)
static

Computes an image representing the overall intensity of light from a polarized image.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format must be Mono16s or RGB16s respectively. The destination image height and width must be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
destStokesS0ImageThe destination image in which to store the Stokes' S0 image
colorProcessingAlgThe color processing algorithm to use for color images
static ImagePtr CreateStokesS1 ( const ImagePtr srcImage,
const ColorProcessingAlgorithm  colorProcessingAlg = DEFAULT 
)
static

Computes an image representing the difference in intensity accepted through the polarizers at 0 and 90 to the horizontal.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format will be Mono16s or RGB16s respectively. The destination image height and width will be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
colorProcessingAlgThe color processing algorithm to use for color images
Returns
The Stokes' S1 image
Examples:
Polarization.cpp.
static void CreateStokesS1 ( const ImagePtr srcImage,
ImagePtr destStokesS1Image,
const ColorProcessingAlgorithm  colorProcessingAlg = DEFAULT 
)
static

Computes an image representing the difference in intensity accepted through the polarizers at 0 and 90 to the horizontal.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format must be Mono16s or RGB16s respectively. The destination image height and width must be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
destStokesS1ImageThe destination image in which to store the Stokes' S1 image
colorProcessingAlgThe color processing algorithm to use for color images
static ImagePtr CreateStokesS2 ( const ImagePtr srcImage,
const ColorProcessingAlgorithm  colorProcessingAlg = DEFAULT 
)
static

Computes an image representing the difference in intensity accepted through the polarizers at 45 and -45 to the horizontal.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format will be Mono16s or RGB16s respectively. The destination image height and width will be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
colorProcessingAlgThe color processing algorithm to use for color images
Returns
The Stokes' S2 image
Examples:
Polarization.cpp.
static void CreateStokesS2 ( const ImagePtr srcImage,
ImagePtr destStokesS2Image,
const ColorProcessingAlgorithm  colorProcessingAlg = DEFAULT 
)
static

Computes an image representing the difference in intensity accepted through the polarizers.

at 45 and -45 to the horizontal. The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format must be Mono16s or RGB16s respectively. The destination image height and width must be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
destStokesS2ImageThe destination image in which to store the Stokes' S2 image
colorProcessingAlgThe color processing algorithm to use for color images
static ImagePtr ExtractPolarQuadrant ( const ImagePtr srcImage,
const PolarizationQuadrant  desiredQuadrant 
)
static

Extracts all pixels of a specified degree of linear polarization into a new image object.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format will be Mono8 or BayerRG8 respectively. The destination image height and width will be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
desiredQuadrantThe polarization quadrant to extract
Returns
The specified polarization quadrant image
Examples:
Polarization.cpp.
static void ExtractPolarQuadrant ( const ImagePtr srcImage,
ImagePtr destQuadImage,
const PolarizationQuadrant  desiredQuadrant 
)
static

Extracts all pixels of a specified degree of linear polarization into the provided image object.

The source image pixel format must be Polarized8 or BayerRGPolarized8. The destination image pixel format must be Mono8 or BayerRG8 respectively. The destination image height and width must be half of the source image.

Parameters
srcImageThe source image from which to extract polarization data
destQuadImageThe destination image in which to store the extracted polarization quadrant
desiredQuadrantThe polarization quadrant to extract

The documentation for this class was generated from the following file:
Contact Support Spinnaker® SDK Programmer's Guide and API Reference