36 #include <Base/Image/ImageBase.hh>
37 #include <Base/Image/ImageIO.hh>
42 int main(
int argc,
char *argv[])
44 unsigned int tilecount=2;
49 BIASERR(argv[0] <<
" image ");
55 BIASERR(
"error loading image "<<argv[1]);
67 BIASERR(
"error pasting to ROI");
74 BIASERR(
"error writing image ");
79 BIASERR(
"error exporting image ");
unsigned int GetWidth() const
unsigned int GetChannelCount() const
returns the number of Color channels, e.g.
unsigned int GetHeight() const
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.
int SetROI(unsigned int UpperLeftX, unsigned int UpperLeftY, unsigned int LowerRightX, unsigned int LowerRightY)
deprecated, use SetROICorners()
void Init(unsigned int Width, unsigned int Height, unsigned int channels=1, enum EStorageType storageType=ST_unsignedchar, const bool interleaved=true)
calls Init from ImageBase storageType is ignored, just dummy argument
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...
enum EStorageType GetStorageType() const
int Paste2ROI(const ImageBase &Image)
paste Image to current ROI