46 virtual void Load(
const std::vector<std::string>& image_names);
63 bool HasBitmap(
const int image_idx)
const;
74 std::string depth_map_path_;
75 std::string normal_map_path_;
76 std::vector<std::unique_ptr<Bitmap>> bitmaps_;
77 std::vector<std::unique_ptr<DepthMap>> depth_maps_;
78 std::vector<std::unique_ptr<NormalMap>> normal_maps_;
85 void Load(
const std::vector<std::string>& image_names)
override {}
97 CachedImage(CachedImage&& other);
98 CachedImage& operator=(CachedImage&& other);
99 inline size_t NumBytes()
const {
return num_bytes; }
100 size_t num_bytes = 0;
102 std::unique_ptr<Bitmap> bitmap;
103 std::unique_ptr<DepthMap> depth_map;
104 std::unique_ptr<NormalMap> normal_map;
110 MemoryConstrainedLRUCache<int, CachedImage> cache_;
116 const std::string& option_name);
const Bitmap & GetBitmap(const int image_idx) override
const DepthMap & GetDepthMap(const int image_idx) override
CachedWorkspace(const Options &options)
void Load(const std::vector< std::string > &image_names) override
const NormalMap & GetNormalMap(const int image_idx) override
std::string GetFileName(const int image_idx) const
virtual const NormalMap & GetNormalMap(const int image_idx)
const Options & GetOptions() const
virtual const DepthMap & GetDepthMap(const int image_idx)
virtual void Load(const std::vector< std::string > &image_names)
std::string GetDepthMapPath(const int image_idx) const
bool HasBitmap(const int image_idx) const
Workspace(const Options &options)
bool HasNormalMap(const int image_idx) const
const Model & GetModel() const
bool HasDepthMap(const int image_idx) const
std::string GetBitmapPath(const int image_idx) const
virtual const Bitmap & GetBitmap(const int image_idx)
std::string GetNormalMapPath(const int image_idx) const
void ImportPMVSWorkspace(const Workspace &workspace, const std::string &option_name)
std::string workspace_format
std::string stereo_folder
std::string workspace_path
#define NON_COPYABLE(class_name)