PixInsight Forum (historical)

PixInsight => Bug Reports => Topic started by: jpaana on 2019 September 08 15:00:26

Title: CometAlignment saving issue in drizzle mode with operand image
Post by: jpaana on 2019 September 08 15:00:26
Currently when using CometAlignment in drizzle mode with operand image the comet aligned result is not saved correctly and is identical to star aligned result image. Reason seems to be a copy & paste error in the code:

Code: [Select]
void CometAlignmentInstance::SaveImage ( CAThread* t)
{
Save(t->TargetImage(), t, 0); //Save result image

if(t->StarAligned()) //Save PureStarAligned
{
ImageVariant* img = new ImageVariant(t->StarAligned());
Save(img, t, 1);
delete img, img = 0;
}
if(t->CometAligned()) //Save PureCometAligned
{
ImageVariant* img = new ImageVariant(t->StarAligned());   // <-- this should probably be t->CometAligned()?
Save(img, t, 2);
delete img, img = 0;
}
}
Title: Re: CometAlignment saving issue in drizzle mode with operand image
Post by: Juan Conejero on 2019 September 09 07:10:16
Bug confirmed. This is now fixed in version 1.8.7. Thank you for reporting and for your spot-on solution.