.. _doxcsid-class_p1_1_1_image_sdk_1_1_stacking_1a09f16df3c485aaaecd47874f758d9f28: 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. .. ref-code-block:: csharp :class: doxyrest-overview-code-block public void DoStacking( :ref:`IBitmapImage` rgbBitmap, :ref:`GeometricCorrection` rgbCalibration, :ref:`IBitmapImage` nirBitmap, :ref:`GeometricCorrection` nirCalibration, :ref:`StackingOutput` stackingOutput ); .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - 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. * - rgbCalibration - is a reference to a struct containing a simplifed Geometric calibration (since image is undistored already - you only need to setup focallength and pixelsize). * - 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. * - nirCalibration - is a reference to a struct containing a full Geometric calibration for the nir bitmap (the Stacker will undistort the nir image using this struct). * - 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: