Stacking.DoStacking Method#
Definition#
Namespace: P1.ImageSdk
A class to stack an rgb image and a nir images from PAS280i or the 4-band solution. The rgb image is regarded as the master image. The stacker will scale and merge the two images on to of each other into upto 2 of the 3 different formats that are supported by the stacker. What outputs to generated is setup in the StackingOutput struct. This function enable some configuration environmental compensation of the calibration of the nir image.
public void DoStacking( RawImage masterImage, IBitmapImage rgbBitmap, double nominalFocalLength, RawImage nirImage, IBitmapImage nirBitmap, ConvertConfig nirConfig, StackingOutput stackingOutput );
Parameters:
masterImage |
is a reference to the rgb image used as master image for the stacking operation |
rgbBitmap |
is a reference to the rgb image (this image will normally for a PAS system be a stitched image). This bitmap is expected to be an undistorted image. |
nominalFocalLength |
this defines the nominal focallength used for the image. Normally it will be set to the focallength of the master image. |
nirImage |
is a reference to the nir image used for the stacking operation |
nirBitmap |
is a reference to the nir image. This bitmap is expected to be still an distorted image. The stacker will undistort the image using the geometric calibration for the nir camera. |
nirConfig |
is a reference to a convert config for the nir image, where control of environmental compensation and calibration can be setup. |
stackingOutput |
is a struct that is used to setup the types of out puts the stacker should produce. It can produce either an Rgbi or a Irg bitmap. Aisde this it can in the same process alsoe produce an ndvi bitmap if it is selected. The selected bitmaps are returned in this stract after a successful stacking |
Returns: