mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
Various fixes
This commit is contained in:
parent
173af92843
commit
64ca3ca98b
2 changed files with 13 additions and 3 deletions
|
|
@ -80,6 +80,9 @@ namespace satdump
|
|||
if (normalize_image)
|
||||
current_image.normalize();
|
||||
|
||||
int pre_corrected_width = current_image.width();
|
||||
int pre_corrected_height = current_image.height();
|
||||
|
||||
std::vector<float> corrected_stuff;
|
||||
if (correct_image)
|
||||
{
|
||||
|
|
@ -95,8 +98,8 @@ namespace satdump
|
|||
if (map_overlay || cities_overlay)
|
||||
{
|
||||
current_image.to_rgb(); // Ensure this is RGB!!
|
||||
auto proj_func = satdump::reprojection::setupProjectionFunction(current_image.width(),
|
||||
current_image.height(),
|
||||
auto proj_func = satdump::reprojection::setupProjectionFunction(pre_corrected_width,
|
||||
pre_corrected_height,
|
||||
products->get_proj_cfg(),
|
||||
current_proj_metadata,
|
||||
products->get_tle(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue