forked from InsightSoftwareConsortium/ITKWikiExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMultiThreadedImageFilter.h
45 lines (32 loc) · 1.11 KB
/
MultiThreadedImageFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef __itkImageFilter_h
#define __itkImageFilter_h
#include "itkImageToImageFilter.h"
namespace itk
{
template< class TImage>
class MultiThreadedImageFilter : public ImageToImageFilter< TImage, TImage >
{
public:
/** Standard class type alias. */
using Self = MultiThreadedImageFilter;
using Superclass = ImageToImageFilter< TImage, TImage >;
using Pointer = SmartPointer< Self >;
using OutputImageRegionType = typename Superclass::OutputImageRegionType;
/** Method for creation through the object factory. */
itkNewMacro(Self);
/** Run-time type information (and related methods). */
itkTypeMacro(ImageFilter, ImageToImageFilter);
protected:
MultiThreadedImageFilter(){}
~MultiThreadedImageFilter(){}
virtual void ThreadedGenerateData(const OutputImageRegionType &,
ThreadIdType);
private:
MultiThreadedImageFilter(const Self &); //purposely not implemented
void operator=(const Self &); //purposely not implemented
};
} //namespace ITK
#ifndef ITK_MANUAL_INSTANTIATION
#include "MultiThreadedImageFilter.hxx"
#endif
#endif // __itkMultiThreadedImageFilter_h