15 #ifndef itkMIDASImageUpdatePixelWiseSingleValueProcessor_h
16 #define itkMIDASImageUpdatePixelWiseSingleValueProcessor_h
31 template <
class TPixel,
unsigned int VImageDimension>
59 itkSetMacro(Value, PixelType)
60 itkGetMacro(Value, PixelType)
66 void AddToList(IndexType &voxelIndex);
72 std::vector<
int> ComputeMinimalBoundingBox();
75 virtual
void Undo() override;
78 virtual
void Redo() override;
81 MIDASImageUpdatePixelWiseSingleValueProcessor();
82 void PrintSelf(
std::ostream& os, Indent indent) const override;
83 virtual ~MIDASImageUpdatePixelWiseSingleValueProcessor() {}
87 void operator=(
const Self&);
89 void ApplyListToDestinationImage(
const DataListType& list);
92 bool m_UpdateCalculated;
93 IndexListType m_Indexes;
94 DataListType m_Before;
100 #ifndef ITK_MANUAL_INSTANTIATION
101 #include "itkMIDASImageUpdatePixelWiseSingleValueProcessor.txx"
SmartPointer< Self > Pointer
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:39
Class that takes a pointer to a destination image, and applies changes directly to it and enablng und...
Definition: itkMIDASImageUpdateProcessor.h:36
Definition: niftkMeshSmoother.cxx:19
Definition: niftkITKAffineResampleImage.cxx:74
ImageType::Pointer ImagePointer
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:51
ImageType::IndexType IndexType
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:52
MIDASImageUpdatePixelWiseSingleValueProcessor Self
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:37
SmartPointer< const Self > ConstPointer
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:40
float PixelType
Definition: niftkBreastDCEandADC.cxx:88
MIDASImageUpdateProcessor< TPixel, VImageDimension > Superclass
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:38
TPixel PixelType
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:49
ImageType::SizeType SizeType
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:53
std::vector< TPixel > DataListType
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:56
ImageType::RegionType RegionType
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:54
std::vector< IndexType > IndexListType
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:55
Simultaneous itk::Image and itk::Array (and hence vnl_vector) class.
Class to support undo/redo of an operation that takes a list of pixels, and sets them all to a given ...
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:32
unsigned long int GetNumberOfVoxels(const mitk::Image *image)
Returns the number of voxels in an image.
Definition: niftkImageUtils.cxx:395