33 #include <Filter/Dilation.hh>
34 #include <Base/Image/Image.hh>
35 #include <Base/Image/ImageIO.hh>
36 #include <Base/ImageUtils/ImageDraw.hh>
41 int main (
int argc,
char *argv[])
44 cerr << argv[0] <<
" <image>\n";
50 BIASERR(
"error loading image "<<argv[1]);
60 cout<<
"Written result.mip"<<endl;
Dilation operator for binary images (black and white)
virtual parent class for API definition of all (future) filters
virtual int Filter(const Image< InputStorageType > &src, Image< OutputStorageType > &dst)
Does the dilation.
void SetBorderHandling(const int bh)
void SetKernelSize(int size)
static int Save(const std::string &filename, const ImageBase &img, const enum TFileFormat FileFormat=FF_auto, const bool sync=BIAS_DEFAULT_SYNC, const int c_jpeg_quality=BIAS_DEFAULT_IMAGE_QUALITY, const bool forceNewID=BIAS_DEFAULT_FORCENEWID, const bool &writeMetaData=true)
Export image as file using extrnal libs.
static int Load(const std::string &FileName, ImageBase &img)
first tries a call to Read MIP image and if that fails, tries to Import Image with all other availabl...