35 #include <Base/Image/ImageBase.hh>
36 #include <Base/Image/ImageConvert.hh>
37 #include <Base/Image/ImageIO.hh>
42 int main(
int argc,
char *argv[]){
53 BIASERR(argv[0] <<
" image ");
59 BIASERR(
"error loading image "<<argv[1]);
65 BIASERR(
"error converting image to rgb");
72 BIASERR(
"error writing image ");
color values, 3 channels, order: red,green,blue
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...
static int Convert(BIAS::ImageBase &source, BIAS::ImageBase &dest, enum BIAS::ImageBase::EColorModel targetColorModel, bool bPlanar=false)
main general conversion function, calls desired specialized functions, always initializes the destIma...
This is the base class for images in BIAS.