28 #ifndef itkImageSource_h
29 #define itkImageSource_h
66 template <
typename TOutputImage>
96 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
152 GetOutput(
unsigned int idx);
175 lastFilterInMiniPipeline->GraftOutput( this->GetOutput() );
178 lastFilterInMiniPipeline->Update();
182 this->GraftOutput( lastFilterInMiniPipeline->GetOutput() );
185 * For proper pipeline execution, a filter
using a mini-pipeline
186 * must implement the GenerateInputRequestedRegion(),
187 * GenerateOutputRequestedRegion(), GenerateOutputInformation() and
188 * EnlargeOutputRequestedRegion() methods as necessary to reflect
189 * how the mini-pipeline will execute (in other words, the outer
190 * filter's pipeline mechanism must be consistent with what the
191 * mini-pipeline will do).
211 GraftNthOutput(
unsigned int idx,
DataObject * graft);
252 GenerateData() override;
326 BeforeThreadedGenerateData()
365 GetImageRegionSplitter()
const;
382 SplitRequestedRegion(
unsigned int i,
unsigned int pieces, OutputImageRegionType & splitRegion);
388 ThreaderCallback(
void * arg);
397 PrintSelf(std::ostream & os,
Indent indent)
const override;
402 itkGetConstMacro(DynamicMultiThreading,
bool);
403 itkSetMacro(DynamicMultiThreading,
bool);
404 itkBooleanMacro(DynamicMultiThreading);
407 bool m_DynamicMultiThreading{
true };
411 #ifndef ITK_MANUAL_INSTANTIATION
412 # include "itkImageSource.hxx"