Commit 24ee6411 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: don't throw an exception in ImageToGenericRSOutputParameters if the input has sensor geometry

parent 385daf67
Pipeline #6524 failed with stages
in 90 minutes and 54 seconds
......@@ -48,7 +48,7 @@ void ImageToGenericRSOutputParameters<TImage>::Compute()
if (m_Input.IsNull())
itkExceptionMacro(<< "The input is null , please set a non null input image");
if (m_Input->GetProjectionRef().empty())
if (!m_Input->GetImageMetadata().HasSensorGeometry() && !m_Input->GetImageMetadata().HasProjectedGeometry())
itkExceptionMacro(<< "No information in the metadata, please set an image with non empty metadata");
// First Call to UpdateTransform : Initialize with the input image
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