33 #include "Filter/Median.hh"
34 #include "Base/Image/ImageIO.hh"
35 #include <Base/Image/ImageConvert.hh>
38 #include <Base/Debug/TimeMeasure.hh>
43 int main(
int argc,
char *argv[]) {
52 cerr <<
"num args " << argc <<
" usage: filtersizeX filtersizeY sourceimage destimage \n";
57 BIASERR(
"error loading image "<<argv[3]);
60 cerr <<
"read "<<argv[3]<<endl;
64 BIASERR(
"error converting image "<<argv[3]);
67 median.
SetSize(atoi(argv[1]),atoi(argv[2]));
75 cout <<
"saving to " << string(argv[4]) << endl;
static int ConvertST(const BIAS::ImageBase &source, BIAS::ImageBase &dest, ImageBase::EStorageType targetST)
Function to convert the storage type of images e.g.
unsigned int GetChannelCount() const
returns the number of Color channels, e.g.
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...
This is the base class for images in BIAS.