Commit e2fb7e8b authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

Merge branch 'modify-superimpose-behavior-rpc' into 'develop'

Add RPC write on Superimpose and bundleToPerfectSensor apps

Closes #2295

See merge request !923
parents e7aca8a8 b4e5102d
Pipeline #11353 passed with stage
in 21 minutes and 21 seconds
......@@ -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->GetProjectionRef().empty() && 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