diff --git a/include/otbCacheLessLabelImageToVectorData.txx b/include/otbCacheLessLabelImageToVectorData.txx index 8a6d39fcc69d656f207541038280997d976edcaf..85730686c7900c2a4e327313cb0240c00c817f23 100644 --- a/include/otbCacheLessLabelImageToVectorData.txx +++ b/include/otbCacheLessLabelImageToVectorData.txx @@ -201,7 +201,7 @@ CacheLessLabelImageToVectorData<TInputImagePixel> bufferedInputImage->SetRegions(inputRegion); bufferedInputImage->Allocate(); bufferedInputImage->SetMetaDataDictionary(inputPtr->GetMetaDataDictionary()); - bufferedInputImage->SetSpacing(inputPtr->GetSignedSpacing()); + bufferedInputImage->SetSignedSpacing(inputPtr->GetSignedSpacing()); bufferedInputImage->SetOrigin (inputPtr->GetOrigin() ); diff --git a/include/otbMeanResampleImageFilter.hxx b/include/otbMeanResampleImageFilter.hxx index 168ab991371137994b3c0244f03e24c727b0fc7b..0d2e3963504282e54ba0674a1f4386803a0a0da4 100644 --- a/include/otbMeanResampleImageFilter.hxx +++ b/include/otbMeanResampleImageFilter.hxx @@ -43,15 +43,15 @@ MeanResampleImageFilter<TImage> // The new output image has the same origin ImagePointType origin = inputImage->GetOrigin(); - origin[0] += 0.5 * inputImage->GetSignedSpacing()[0] * (m_StepX - 1); - origin[1] += 0.5 * inputImage->GetSignedSpacing()[1] * (m_StepY - 1); + origin[0] += 0.5 * inputImage->GetSpacing()[0] * (m_StepX - 1); + origin[1] += 0.5 * inputImage->GetSpacing()[1] * (m_StepY - 1); outputPtr->SetOrigin ( origin ); // New spacing for the output image - ImageSpacingType spacing = inputImage->GetSignedSpacing(); + ImageSpacingType spacing = inputImage->GetSpacing(); spacing[0] *= m_StepX; spacing[1] *= m_StepY; - outputPtr->SetSignedSpacing (spacing); + outputPtr->SetSpacing (spacing); // New size for the output image ImageRegionType inRegion = inputImage->GetLargestPossibleRegion(); diff --git a/include/otbVectorDataToLabelImageCustomFilter.hxx b/include/otbVectorDataToLabelImageCustomFilter.hxx index 5503472c273c177e57673e47de3037c43d3faa14..017d07af34f04607a76f3a2cc1caf10bcbc6b8a7 100644 --- a/include/otbVectorDataToLabelImageCustomFilter.hxx +++ b/include/otbVectorDataToLabelImageCustomFilter.hxx @@ -119,7 +119,7 @@ VectorDataToLabelImageCustomFilter<TVectorData, TOutputImage> ::SetOutputParametersFromImage(const ImageBaseType * src) { this->SetOutputOrigin ( src->GetOrigin() ); - this->SetOutputSignedSpacing ( src->GetSignedSpacing() ); + this->SetOutputSpacing ( src->GetSignedSpacing() ); this->SetOutputSize ( src->GetLargestPossibleRegion().GetSize() ); otb::ImageMetadataInterfaceBase::Pointer imi = otb::ImageMetadataInterfaceFactory::CreateIMI(src->GetMetaDataDictionary()); this->SetOutputProjectionRef(imi->GetProjectionRef()); @@ -144,7 +144,7 @@ VectorDataToLabelImageCustomFilter<TVectorData, TOutputImage> outputPtr->SetLargestPossibleRegion(outputLargestPossibleRegion); // Set spacing and origin - outputPtr->SetSignedSpacing(m_OutputSpacing); + outputPtr->SetSpacing(m_OutputSpacing); outputPtr->SetOrigin(m_OutputOrigin); itk::MetaDataDictionary& dict = outputPtr->GetMetaDataDictionary(); @@ -295,8 +295,8 @@ VectorDataToLabelImageCustomFilter<TVectorData, TOutputImage>::GenerateData() this->GetOutput()->TransformIndexToPhysicalPoint(bufferIndexOrigin, bufferOrigin); geoTransform[0] = bufferOrigin[0]; geoTransform[3] = bufferOrigin[1]; - geoTransform[1] = this->GetOutput()->GetSignedSpacing()[0]; - geoTransform[5] = this->GetOutput()->GetSignedSpacing()[1]; + geoTransform[1] = this->GetOutput()->GetSpacing()[0]; + geoTransform[5] = this->GetOutput()->GetSpacing()[1]; // FIXME: Here component 1 and 4 should be replaced by the orientation parameters geoTransform[2] = 0.;