Commit 2fe9787e authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

BUG: Add writerpctags flag when the origin image is in sensor geometry

parent 1f6a6744
......@@ -220,6 +220,14 @@ private:
itk::NumericTraits<FloatVectorImageType::PixelType>::SetLength(defaultValue, movingImage->GetNumberOfComponentsPerPixel());
defaultValue.Fill(GetParameterFloat("fv"));
// If the origin product is in sensor geometry, superimpose should keep the RPC parameters for orthorectification for exemple
if (refimage->GetImageMetadata().HasSensorGeometry())
{
std::string out_FileName = GetParameterString("out");
out_FileName.append("?&writerpctags=true");
SetParameterString("out",out_FileName);
}
if (GetParameterString("mode") == "default")
{
FloatVectorImageType::SpacingType defSpacing;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment