15 #include <itkImageRegionIterator.h> 22 this->SetNumberOfRequiredInputs(1);
23 this->SetNumberOfIndexedOutputs(1);
24 this->SetNthOutput(0, output.GetPointer());
39 if (idx + 1 > this->GetNumberOfInputs())
41 this->SetNumberOfRequiredInputs(idx + 1);
43 if (input != static_cast<InputType *>(this->ProcessObject::GetInput(idx)))
45 this->ProcessObject::SetNthInput(idx, const_cast<InputType *>(input));
52 if (this->GetNumberOfInputs() < 1)
59 if (this->GetNumberOfInputs() < 1)
71 itkExceptionMacro(
"mitk::ImageToLiveWireContourFilter: No input available. Please set the input!");
75 if (input->GetDimension() != 2)
77 MITK_ERROR <<
"Filter is only working on 2D images.";
78 itkExceptionMacro(
"mitk::ImageToLiveWireContourFilter: Filter is only working on 2D images.. Please make sure that " 89 template <
typename TPixel,
unsigned int VImageDimension>
90 void mitk::ImageToLiveWireContourFilter::ItkProcessImage(
const itk::Image<TPixel, VImageDimension> *)
~ImageToLiveWireContourFilter() override
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
mitk::Point3D m_StartPoint
#define AccessFixedDimensionByItk(mitkImage, itkImageTypeFunction, dimension)
Access a mitk-image with known dimension by an itk-image.
const InputType * GetInput(void)
ImageToLiveWireContourFilter()
void GenerateData() override
mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
mitk::Point3D m_EndPointInIndex
Image class for storing images.
mitk::Point3D m_StartPointInIndex
virtual void SetInput(const InputType *input)