|
SatDump 2.0.0-alpha-520736c72
|
Earth curvature correction for simple instruments (eg, AVHRR) More...
#include "image.h"Go to the source code of this file.
Functions | |
| Image | satdump::image::earth_curvature::correct_earth_curvature (Image &image, float satellite_height, float swath, float resolution_km, std::vector< float > *foward_table=nullptr, std::vector< float > *reverse_table=nullptr) |
| This allows correcting the effect of the earth's curvature and instrument scanning methods to generate an image with a more linear relation between pixels and the Earth's surface distances. It is meant to correct images from nadir-pointing instruments scanning on the roll axis at a constant angle between pixels. | |
| image::Image | satdump::image::earth_curvature::perform_geometric_correction (image::Image img, bool &success, std::vector< float > *foward_table=nullptr, std::vector< float > *reverse_table=nullptr) |
| The same as correct_earth_curvature, but automatically reading the correction's configuration in the image metadata. | |
Earth curvature correction for simple instruments (eg, AVHRR)
| Image satdump::image::earth_curvature::correct_earth_curvature | ( | Image & | image, |
| float | satellite_height, | ||
| float | swath, | ||
| float | resolution_km, | ||
| std::vector< float > * | foward_table = nullptr, | ||
| std::vector< float > * | reverse_table = nullptr ) |
This allows correcting the effect of the earth's curvature and instrument scanning methods to generate an image with a more linear relation between pixels and the Earth's surface distances. It is meant to correct images from nadir-pointing instruments scanning on the roll axis at a constant angle between pixels.
| image | input image |
| satellite_height | satellite orbit height (in km) |
| swath | instrument swath in km |
| resolution_km | instrument ground resolution in km |
| foward_table | optional LUT generated. Input => Corrected |
| reverse_table | optional LUT generated. Corrected => Input |
| Image satdump::image::earth_curvature::perform_geometric_correction | ( | image::Image | img, |
| bool & | success, | ||
| std::vector< float > * | foward_table = nullptr, | ||
| std::vector< float > * | reverse_table = nullptr ) |
The same as correct_earth_curvature, but automatically reading the correction's configuration in the image metadata.
| img | input image |
| success | will be set to true on success |
| foward_table | optional LUT generated. Input => Corrected |
| reverse_table | optional LUT generated. Corrected => Input |