.. _doxcsid-class_p1_1_1_image_sdk_1_1_stacking_1a0490eeccf2336922a835e57e3f715469: 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 :ref:`StackingOutput ` struct. This function enable some configuration environmental compensation of the calibration of the nir image. .. ref-code-block:: csharp :class: doxyrest-overview-code-block public void DoStacking( :ref:`RawImage` masterImage, :ref:`IBitmapImage` rgbBitmap, double nominalFocalLength, :ref:`RawImage` nirImage, :ref:`IBitmapImage` nirBitmap, :ref:`ConvertConfig` nirConfig, :ref:`StackingOutput` stackingOutput ); .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - 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 .. rubric:: Returns: