Polarization#
- itala.itala.extract_polar_component(image, component, algorithm)#
Extract a specific component (or angle) of the polarizer filter. The resulting image represents the captured light at the angle specified in degrees.
Notes: Only monochrome images are supported.
- Parameters:
image (
IImage
) – Raw image, acquired using a monochrome polarization filter array.component (int) – Component of the polarizer sensor.
algorithm (int) – Demosaicing algorithm to be applied to the image.
- Return type:
- Returns:
Pointer to the image containing the requested polar component.
- itala.itala.extract_all_polar_components(image, 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.
Notes: Only monochrome images are supported.
- Parameters:
image (
IImage
) – Raw image, acquired using a monochrome polarization filter array.algorithm (int) – Demosaicing algorithm to be applied to the image.
- Return type:
- Returns:
Structure containing the pointers to the polar component images.
- itala.itala.extract_all_polar_components_color(image, 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.
Notes: Only bayer color images are supported.
- Parameters:
image (
IImage
) – Raw image, acquired using a color polarization filter array.algorithm (int) – Demosaicing algorithm to be applied to the image.
- Return type:
- Returns:
Structure containing the pointers to the polar component images, for each color channel.
- itala.itala.compute_stokes_s0(polarComponents)#
Computes only the S0 component of the Stokes vectors from the extracted polar components.
- Parameters:
polarComponents (
PolarComponents
) – Polarization components demosaiced from the raw image.- Return type:
- Returns:
Pointer to the image containing the requested stokes vectors.
- itala.itala.compute_stokes_s1(polarComponents)#
Computes only the S1 component of the Stokes vectors from the extracted polar components.
- Parameters:
polarComponents (
PolarComponents
) – Polarization components demosaiced from the raw image.- Return type:
- Returns:
Pointer to the image containing the requested stokes vectors.
- itala.itala.compute_stokes_s2(polarComponents)#
Computes only the S2 component of the Stokes vectors from the extracted polar components.
- Parameters:
polarComponents (
PolarComponents
) – Polarization components demosaiced from the raw image.- Return type:
- Returns:
Pointer to the image containing the requested stokes vectors.
- itala.itala.compute_all_stokes(polarComponents)#
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.
- Parameters:
polarComponents (
PolarComponents
) – Polarization components demosaiced from the raw image.- Return type:
- Returns:
Structure containing the pointers to the stokes vector images.
- itala.itala.compute_ao_lp(*args)#
Overload 1:
Compute the AoLP (Angle of Linear Polarization) image from the Stokes vectors.
- Parameters:
stokesVectors (
StokesVectors
) – Stokes vectors computed from the polarization components.- Return type:
- Returns:
Pointer to the AoLP image.
Overload 2:
Convenience function which computes the AoLP (Angle of Linear Polarization) image directly from the raw polarization image without manual intermediate steps.
Notes: Only monochrome images are supported.
- itala.itala.compute_do_lp(*args)#
Overload 1:
Compute the DoLP (Degree of Linear Polarization) image from the Stokes vectors.
- Parameters:
stokesVectors (
StokesVectors
) – Stokes vectors computed from the polarization components.- Return type:
- Returns:
Pointer to the DoLP image.
Overload 2:
Convenience function which computes the DoLP (Degree of Linear Polarization) image directly from the raw polarization image without manual intermediate steps.
Notes: Only monochrome images are supported.
- itala.itala.compute_intensity(*args)#
Overload 1:
Compute the intensity image from the Stokes vectors.
- Parameters:
stokesVectors (
StokesVectors
) – Stokes vectors computed from the polarization components.rawImagePixelFormat (int) – The format of the raw polarization image.
- Return type:
- Returns:
Pointer to intensity image.
Overload 2:
Convenience function which computes the intensity image directly from the raw polarization image without manual intermediate steps.
Notes: Only monochrome images are supported.
- itala.itala.compute_polar_quadrants_image(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.
Notes: Only monochrome images are supported.
- class itala.itala.PolarComponents#
Convenient POD structure used as container for ‘ExtractAllPolarComponents’ ‘s multi-result.
- property thisown#
The membership flag
- property P0#
- property P45#
- property P90#
- property P135#