Extracts the four polarization angles from a raw image to a four plane image.
Namespace:
Stemmer.Cvb.Foundation
Assembly:
Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
public static Image ConvertToPlanes(
Image rawImage,
PolarizationPattern pattern,
PolarizationImageResolution resolution
)
Public Shared Function ConvertToPlanes (
rawImage As Image,
pattern As PolarizationPattern,
resolution As PolarizationImageResolution
) As Image
public:
static Image^ ConvertToPlanes(
Image^ rawImage,
PolarizationPattern pattern,
PolarizationImageResolution resolution
)
static member ConvertToPlanes :
rawImage : Image *
pattern : PolarizationPattern *
resolution : PolarizationImageResolution -> Image
Parameters
- rawImage
- Type: Stemmer.CvbImage
Input image with raw polarization data. - pattern
- Type: Stemmer.Cvb.FoundationPolarizationPattern
Indicates in which pattern the polarization angles are ordered in \a rawImage. - resolution
- Type: Stemmer.Cvb.FoundationPolarizationImageResolution
Resolution of outImage. If set to CVPOL_RESOLUTION_FULL the image
is interpolated and will equal the size of rawImage, otherwise it will be half the size.
Return Value
Type:
ImageThe resulting image with 4 planes.
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
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 CVPOL_RESOLUTION_FULL the image is interpolated and has the same
size as rawImage, otherwise it will be half the size.
Reference