32 #include <Filter/Erosion.hh>
33 #include <Base/Image/Image.hh>
34 #include <Base/Image/ImageIO.hh>
35 #include <Base/ImageUtils/ImageDraw.hh>
41 int main (
int argc,
char *argv[])
44 cerr << argv[0] <<
" <image>\n";
51 BIASERR(
"error loading image "<<argv[1]);
62 cout<<
"Written result.mip"<<endl;
virtual int Filter(const Image< InputStorageType > &src, Image< OutputStorageType > &dst)
Does the erosion.
virtual parent class for API definition of all (future) filters
Erosion operator for binary images (black and white)
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...