33 #include <Base/Image/ImageBase.hh>
34 #include <Base/Image/ImageIO.hh>
39 int main(
int argc,
char *argv[])
42 cout<<
"no image given\nusage: "<<argv[0]<<
" <image-file>"<<endl;
49 BIASERR(
"error loading \n"<<argv[1]<<
" with result="<<result);
56 cout<<
"successfully loaded \n"<<argv[1]<<
" "<<endl
62 cout<<
"UID "<<im.
GetUID()<<
" ";
unsigned int GetDepth() const
returns the bytes per channel, which is the sizeof(StorageType) Should match GetSizeDepth(GetStorageT...
unsigned int GetWidth() const
unsigned int GetBitDepth() const
returns the bits per channel Is not necessairily 8*sizeof(StorageType), could be fewer bits...
const BIAS::UUID & GetUID() const
returns the UUID of the image
unsigned int GetChannelCount() const
returns the number of Color channels, e.g.
unsigned int GetHeight() const
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.
bool IsValid() const
checks whether this uuid is valid(true) or unitialized(false)