32 itkDebugMacro(<<
"GenerateOutputInformation()");
34 output->Initialize(input->GetPixelType(), input->GetDimension(), input->GetDimensions());
37 output->SetPropertyList(input->GetPropertyList()->Clone());
39 output->SetTimeGeometry(clonGeometry.GetPointer());
47 if (requestedRegion.GetSize(3) > 1)
48 SetChannelItem(GetChannelData(m_ChannelNr), 0);
51 if (requestedRegion.GetSize(2) > 1)
52 SetVolumeItem(GetVolumeData(requestedRegion.GetIndex(3), m_ChannelNr), requestedRegion.GetIndex(3), 0);
55 SetSliceItem(GetSliceData(requestedRegion.GetIndex(2), requestedRegion.GetIndex(3), m_ChannelNr),
56 requestedRegion.GetIndex(2),
57 requestedRegion.GetIndex(3),
63 Superclass::GenerateInputRequestedRegion();
70 requestedRegion = output->GetRequestedRegion();
71 requestedRegion.SetIndex(4, m_ChannelNr);
72 requestedRegion.SetSize(4, 1);
74 input->SetRequestedRegion(&requestedRegion);
virtual void GenerateInputRequestedRegion() override
virtual ~ImageChannelSelector()
itk::ImageRegion< RegionDimension > RegionType
Image class for storing images.
virtual void GenerateData() override
A version of GenerateData() specific for image processing filters.
virtual void GenerateOutputInformation() override