struct P1::ImageSdk::StackingOutput#

Overview#

Struct used for two purposes. the three boolean variables. hasRgbBitmap, hasIrgBitmap, hasNdviBitmap is used to order what type of output to be produced by the stacker. The produced bitmaps are returned in the correcponding: RgbiBitmap, IrgBitmap and NdviBitmap. It is only possible to produce either an RgbiBitmap or an IrgBitmap (and not both in same run). The NdviBitmap can be selected if wanted. More…

#include <P1ImageStacking.hpp>

struct StackingOutput
{
    // fields

    bool hasRgbiBitmap =false;
    bool hasIrgBitmap =false;
    bool hasNdviBitmap =false;
    std::vector<PixelComponent> rgbiPixelComponent = {PixelComponent::Red, PixelComponent::Green, PixelComponent::Blue, PixelComponent::Nir};
    std::vector<PixelComponent> irgPixelComponent = { PixelComponent::Nir, PixelComponent::Red, PixelComponent::Green};
    P1::ImageSdk::BitmapImage RgbiBitmap;
    P1::ImageSdk::BitmapImage IrgBitmap;
    P1::ImageSdk::BitmapImage NdviBitmap;
    int interrestPoints = 0;
    int acceptedTiePoints = 0;
    int rejectedTiePoints = 0;
    double xRms = 0.0;
    double yRms = 0.0;
    double lenRms = 0.0;
};

Detailed Documentation#

Struct used for two purposes. the three boolean variables. hasRgbBitmap, hasIrgBitmap, hasNdviBitmap is used to order what type of output to be produced by the stacker. The produced bitmaps are returned in the correcponding: RgbiBitmap, IrgBitmap and NdviBitmap. It is only possible to produce either an RgbiBitmap or an IrgBitmap (and not both in same run). The NdviBitmap can be selected if wanted.

Fields#

bool hasRgbiBitmap =false

If set to true. The stacker will produce an RGBI Bitmap (in member: RgbiBitmap)

bool hasIrgBitmap =false

If set to true. The stacker will produce an IRG Bitmap (in member: IrgBitmap)

bool hasNdviBitmap =false

If set to true. The stacker will produce an NDVI Bitmap (in member: NdviBitmap). Ndvi is a single channel bitmap calculated based on the equation: (R-I)/(R+I)

std::vector<PixelComponent> rgbiPixelComponent = {PixelComponent::Red, PixelComponent::Green, PixelComponent::Blue, PixelComponent::Nir}

User defined bitmap component (mix of red, green, blue, nir or ndvi)

std::vector<PixelComponent> irgPixelComponent = { PixelComponent::Nir, PixelComponent::Red, PixelComponent::Green}

User defined bitmap component (mix of red, green, blue, nir or ndvi)

P1::ImageSdk::BitmapImage RgbiBitmap

This will contain a 4 channel bitmap after stacking if hasRgbiBitmap was set to true.

P1::ImageSdk::BitmapImage IrgBitmap

This will contain a 3 channel bitmap after stacking if hasIrgBitmap was set to true.

P1::ImageSdk::BitmapImage NdviBitmap

This will contain a 1 channel bitmap after stacking if hasNdviBitmap was set to true.