Polarization#
- class Itala.Polarization#
Public Static Functions
- IImage ExtractPolarComponent (IImage image, PolarComponent component, PolarDemosaicingAlgorithm algorithm)#
Extract a specific component (or angle) of the polarizer filter. The resulting image represents the captured light at the angle specified in degrees.
<note type=”caution”> Only monochrome images are supported. </note>
- Param image:
Image acquired
- Param component:
Component of the polarizer sensor.
- Param algorithm:
Demosaicing algorithm to be applied to the image.
- Return:
Image containing the requested polar component.
- PolarComponents ExtractAllPolarComponents (IImage image, PolarDemosaicingAlgorithm algorithm)#
Extract an image for each component (or angle) of the polarizer filter. Each resulting image represents the captured light at 0, 45, 90 and 135 degrees respectively.
<note type=”caution”> Only monochrome images are supported. </note>
- Param image:
Image acquired
- Param algorithm:
Demosaicing algorithm to be applied to the image.
- Return:
PolarComponents (Mono) containing the polar component images
- PolarComponentsColor ExtractAllPolarComponentsColor (IImage image, PolarDemosaicingAlgorithm algorithm)#
For each color channel, extract an image for each component (or angle) of the polarizer filter.Each resulting image represents the captured light at 0, 45, 90 and 135 degrees respectively, for each color channel.
- Param image:
Image acquired
- Param algorithm:
Demosaicing algorithm to be applied to the image.
- Return:
PolarComponentsColor (Color) containing the polar component images
- IImage ComputeStokesS0 (PolarComponents components)#
Computes only the S0 component of the Stokes vectors from the extracted polar components.
- Param components:
Polarization components demosaiced from the raw image.
- Return:
Image ccontaining the S0 stokes vectors.
- IImage ComputeStokesS1 (PolarComponents components)#
Computes only the S1 component of the Stokes vectors from the extracted polar components.
- Param components:
Polarization components demosaiced from the raw image.
- Return:
Image ccontaining the S1 stokes vectors.
- IImage ComputeStokesS2 (PolarComponents components)#
Computes only the S2 component of the Stokes vectors from the extracted polar components.
- Param components:
Polarization components demosaiced from the raw image.
- Return:
Image ccontaining the S2 stokes vectors.
- StokesVectors ComputeAllStokes (PolarComponents components)#
Compute all the Stokes vectors to determine the polarization state of the light given the extracted components.The Stokes vector components are expressed as 32-bit or 64-bit floating point numbers depending on the raw image format.
- Param components:
Plarization components demosaiced from the raw image.
- Return:
StokesVectors containing the stokes vectors component images
- IImage ComputeAoLP (StokesVectors stokesVectors)#
Compute the AoLP (Angle of Linear Polarization) image from the Stokes vectors.
- Param stokesVectors:
Stokes vectors computed from the polarization components.
- Return:
AoLP image.
- IImage ComputeDoLP (StokesVectors stokesVectors)#
Compute the DoLP (Degree of Linear Polarization) image from the Stokes vectors.
- Param stokesVectors:
Stokes vectors computed from the polarization components.
- Return:
DoLP image.
- IImage ComputeIntensity (StokesVectors stokesVectors, PfncFormat rawImagePixelFormat)#
Compute the intensity image from the Stokes vectors.
- Param stokesVectors:
Stokes vectors computed from the polarization components.
- Param rawImagePixelFormat:
The format of the raw polarization image.
- Return:
Intensity image.
- IImage ComputePolarQuadrantsImage (IImage image)#
Computes an image split in quadrants containing the four extracted polarization components(angles), of the same width and height of the raw polarization image.
- Param image:
Image acquired
- Return:
Quadrants image.
- IImage ComputeAoLP (IImage image, PolarDemosaicingAlgorithm algorithm)
Convenience function which computes the AoLP (Angle of Linear Polarization) image directly from the raw polarization image without manual intermediate steps.
<note type=”caution”> Only monochrome images are supported. </note>
- Param image:
Image acquired
- Param algorithm:
Demosaicing algorithm to be applied to the image.
- Return:
AoLP image.
- IImage ComputeDoLP (IImage image, PolarDemosaicingAlgorithm algorithm)
Convenience function which computes the DoLP (Degree of Linear Polarization) image directly from the raw polarization image without manual intermediate steps.
<note type=”caution”> Only monochrome images are supported. </note>
- Param image:
Image acquired
- Param algorithm:
Demosaicing algorithm to be applied to the image.
- Return:
DoLP image.
- IImage ComputeIntensity (IImage image, PolarDemosaicingAlgorithm algorithm)
Convenience function which computes the intensity image directly from the raw polarization image without manual intermediate steps.
<note type=”caution”> Only monochrome images are supported. </note>
- Param image:
Image acquired
- Param algorithm:
Demosaicing algorithm to be applied to the image.
- Return:
Intensity image.