forked from InsightSoftwareConsortium/ITKWikiExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitkImageFilterMultipleInputs.h
49 lines (35 loc) · 1.29 KB
/
itkImageFilterMultipleInputs.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
46
47
48
49
#ifndef itkImageFilterMultipleInputs_h
#define itkImageFilterMultipleInputs_h
#include "itkImageToImageFilter.h"
namespace itk
{
template< class TImage>
class ImageFilterMultipleInputs : public ImageToImageFilter< TImage, TImage >
{
public:
/** Standard class type alias. */
using Self = ImageFilterMultipleInputs;
using Superclass = ImageToImageFilter< TImage, TImage >;
using Pointer = SmartPointer< Self >;
/** Method for creation through the object factory. */
itkNewMacro(Self);
/** Run-time type information (and related methods). */
itkTypeMacro(ImageFilterMultipleInputs, ImageToImageFilter);
/** The image to be inpainted in regions where the mask is white.*/
void SetInputImage(const TImage* image);
/** The mask to be inpainted. White pixels will be inpainted, black pixels will be passed through to the output.*/
void SetInputMask(const TImage* mask);
protected:
ImageFilterMultipleInputs();
~ImageFilterMultipleInputs(){}
/** Does the real work. */
virtual void GenerateData();
private:
ImageFilterMultipleInputs(const Self &); //purposely not implemented
void operator=(const Self &); //purposely not implemented
};
} //namespace ITK
#ifndef ITK_MANUAL_INSTANTIATION
#include "itkImageFilterMultipleInputs.txx"
#endif
#endif // itkImageFilterMultipleInputs_h