1 #ifndef __IMAGEPACKAGE_HH__
2 #define __IMAGEPACKAGE_HH__
4 #include <bias_config.h>
6 #include <Base/Image/Image.hh>
7 #include <Base/Image/ImageConvert.hh>
8 #include <Base/Image/ImageIO.hh>
9 #include <Image/Camera.hh>
10 #include <Utils/IOUtils.hh>
11 #include <Image/BackwardMapping.hh>
12 #include <Image/ProjectionMapping.hh>
29 os.write(reinterpret_cast<const char*>(&(ipih.
len_filename)),
sizeof(
unsigned int));
30 os.write(reinterpret_cast<const char*>(&(ipih.
len_metadata)),
sizeof(
unsigned int));
31 os.write(reinterpret_cast<const char*>(&(ipih.
len_pixeldata)),
sizeof(
unsigned int));
35 is.read((
char*)&(ipih.
len_filename),
sizeof(
unsigned int));
36 is.read((
char*)&(ipih.
len_metadata),
sizeof(
unsigned int));
62 int Create(
const std::string filename,
unsigned int num=1);
67 int AddImage(
const ImageBase image,
const std::string filename=
"");
72 int Open(
const std::string filename);
77 int GetImage(
const int imageNum,
ImageBase &image, std::string &filename);
82 int GetNextImage(
ImageBase &image, std::string &filename);
87 int GetPrevImage(
ImageBase &image, std::string &filename);
92 int WriteSingleImage(
const unsigned int imageNum,
const std::string filename=
"");
97 int WriteAllImages(
const std::string filename=
"");
112 unsigned int numImages_;
113 unsigned int fileNum_;
114 std::string filename_;
118 std::vector<std::ifstream*> ifs_;
121 std::vector<IPFileInfo> fileInfos_;
128 #endif // __IMAGEPACKAGE_H_
An Image Package is multiple .mip images in one file.
This is the base class for images in BIAS.