-//=========================================================================================================================
-//Set input image params
-template <class InputImageType, class OutputImageType>
-void InvertVFFilter<InputImageType, OutputImageType>::GenerateInputRequestedRegion()
-{
- //std::cout << "InvertVFFilter::GenerateInputRequestedRegion - IN" << std::endl;
- // call the superclass' implementation of this method
- // Superclass::GenerateInputRequestedRegion();
-
- typename InputImageType::Pointer inputPtr = const_cast< InputImageType * >(this->GetInput());
- inputPtr->SetRequestedRegion(inputPtr->GetLargestPossibleRegion());
-
- //std::cout << "InvertVFFilter::GenerateInputRequestedRegion - OUT" << std::endl;
-}
-
-//=========================================================================================================================
-//Set output image params
-template<class InputImageType, class OutputImageType >
-void InvertVFFilter<InputImageType, OutputImageType>::GenerateOutputInformation()
-{
- //std::cout << "InvertVFFilter::GenerateOutputInformation - IN" << std::endl;
- Superclass::GenerateOutputInformation();
-
- typename InputImageType::ConstPointer inputPtr=this->GetInput();
- typename WeightsImageType::RegionType region = inputPtr->GetLargestPossibleRegion();
- region.SetSize(m_OutputSize);
-
- typename OutputImageType::Pointer outputPtr = this->GetOutput();
- outputPtr->SetRegions( region );
- outputPtr->SetSpacing(m_OutputSpacing);
- outputPtr->SetOrigin(inputPtr->GetOrigin());
-
- //std::cout << "InvertVFFilter::GenerateOutputInformation - OUT" << std::endl;
-}
-