SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
bowtie.h File Reference

BowTie correction for multi-line instruments. More...

#include "image.h"
#include <vector>

Go to the source code of this file.

Functions

Image satdump::image::bowtie::correctGenericBowTie (Image &inputImage, const int channelCount, const long scanHeight, const float alpha, const float beta, std::vector< std::vector< int > > *reverse_lut=nullptr)
 Performs instrument bowtie correction, required for instruments such as MERSI, MODIS and such.

Detailed Description

BowTie correction for multi-line instruments.

Function Documentation

◆ correctGenericBowTie()

Image satdump::image::bowtie::correctGenericBowTie ( Image & inputImage,
const int channelCount,
const long scanHeight,
const float alpha,
const float beta,
std::vector< std::vector< int > > * reverse_lut = nullptr )

Performs instrument bowtie correction, required for instruments such as MERSI, MODIS and such.

Parameters
inputImagethe input image
channelCountnumber of channels in the image (inputImage.channels())
scanHeightthe height of each scanline group
alphavalue, representing the slant increase of the correction
betavalue, being the offset of the correction
reverse_lutoptionally, generates a LUT to get back the original image pixel positions (eg, for calibration)
Returns
the corrected image