26 #include "Morphology.hh"
28 #include <Base/Common/BIASpragma.hh>
33 template <
class InputStorageType,
class OutputStorageType>
40 template <
class InputStorageType,
class OutputStorageType>
43 : kernelSize_(other.kernelSize_)
47 template <
class InputStorageType,
class OutputStorageType>
51 template <
class InputStorageType,
class OutputStorageType>
54 unsigned short int XBorderSize,
55 unsigned short int YBorderSize,
56 OutputStorageType Value) {
57 register OutputStorageType *UpperAddr, *LowerAddr, *last;
67 while (LowerAddr<=last) {
70 UpperAddr++; LowerAddr++;
76 register int WidthStep = Image.
GetWidth()*ChannelCount;
78 LowerAddr=UpperAddr+WidthStep-1;
79 while (LowerAddr<=last) {
82 UpperAddr+=WidthStep; LowerAddr+=WidthStep;
94 #define FILTER_INSTANTIATION_CLASS Morphology
95 #include "Filterinst.hh"
unsigned int GetWidth() const
int FillBorderConst(Image< OutputStorageType > &Image, unsigned short int XBorderSize, unsigned short int YBorderSize, OutputStorageType Value)
fills the XBorderSize respectivly YBorderSize nearest Pixels to picture border with Value XBorderSize...
unsigned int GetChannelCount() const
returns the number of Color channels, e.g.
unsigned int GetHeight() const
base class for Erosion, Dilation, and single Deletion
const StorageType * GetImageData() const
overloaded GetImageData() from ImageBase
unsigned long int GetPixelCount() const
returns number of pixels in image
const StorageType ** GetImageDataArray() const
overloaded GetImageDataArray() from ImageBase