 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
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);
std::string stereo_folder
Definition: workspace.h:40
Definition: normal_map.h:20
QTextStream & endl(QTextStream &stream)
Definition: QtCompat.h:718
void CreateDirIfNotExists(const std::string &path)
Definition: misc.cc:112
std::vector< std::string > ReadTextFileLines(const std::string &path)
Definition: misc.cc:308
Definition: workspace.h:21
bool ExistsFile(const std::string &path)
Definition: misc.cc:100
auto AddTask(func_t &&f, args_t &&... args) -> std::future< typename std::result_of< func_t(args_t...)>::type >
Definition: threading.h:299
virtual const DepthMap & GetDepthMap(const int image_idx)
Definition: workspace.cc:123
void Read(const std::string &path, const std::string &format)
Definition: model.cc:44
std::string JoinPaths(T const &... paths)
Definition: misc.h:128
Model model_
Definition: workspace.h:71
void Start()
Definition: timer.cc:43
void ImportPMVSWorkspace(const Workspace &workspace, const std::string &option_name)
Definition: workspace.cc:227
virtual void Load(const std::vector< std::string > &image_names)
Definition: workspace.cc:63
bool image_as_rgb
Definition: workspace.h:34
std::string GetBitmapPath(const int image_idx) const
Definition: workspace.cc:131
int width
Definition: FileIOFactory.cpp:142
const std::vector< std::vector< int > > & GetMaxOverlappingImagesFromPMVS() const
Definition: model.cc:191
std::string workspace_format
Definition: workspace.h:38
bool HasNormalMap(const int image_idx) const
Definition: workspace.cc:151
int height
Definition: FileIOFactory.cpp:143
std::string GetFileName(const int image_idx) const
Definition: workspace.cc:57
const Bitmap & GetBitmap(const int image_idx) override
Definition: workspace.cc:178
void Wait()
Definition: threading.cc:221
std::string input_type
Definition: workspace.h:39
int max_image_size
Definition: workspace.h:31
bool HasDepthMap(const int image_idx) const
Definition: workspace.cc:147
void UpdateNumBytes(const key_t &key)
Definition: cache.h:405
virtual const Bitmap & GetBitmap(const int image_idx)
Definition: workspace.cc:119
bool HasBitmap(const int image_idx) const
Definition: workspace.cc:143
void StringToLower(std::string *str)
Definition: string.cc:193
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
int num_threads
Definition: workspace.h:28
CachedWorkspace(const Options &options)
Definition: workspace.cc:173
void ClearCache()
Definition: workspace.h:87
virtual const NormalMap & GetNormalMap(const int image_idx)
Definition: workspace.cc:127
std::string GetDepthMapPath(const int image_idx) const
Definition: workspace.cc:135
std::string workspace_path
Definition: workspace.h:37
#define NON_COPYABLE(class_name)
Definition: types.h:30
double cache_size
Definition: workspace.h:25
int GetEffectiveNumThreads(const int num_threads)
Definition: threading.cc:269
Definition: depth_map.h:19
std::string EnsureTrailingSlash(const std::string &str)
Definition: misc.cc:40
std::vector< std::string > StringSplit(const std::string &str, const std::string &delim)
Definition: string.cc:166
const DepthMap & GetDepthMap(const int image_idx) override
Definition: workspace.cc:194
std::shared_ptr< value_t > Get(const key_t &key)
Definition: cache.h:352
std::string GetNormalMapPath(const int image_idx) const
Definition: workspace.cc:139
Workspace(const Options &options)
Definition: workspace.cc:41
Definition: AutomaticReconstructionController.h:17
int GetImageIdx(const std::string &name) const
Definition: model.cc:127
const Model & GetModel() const
Definition: workspace.h:50
Definition: workspace.h:23
void PrintMinutes() const
Definition: timer.cc:93
bool StringStartsWith(const std::string &str, const std::string &prefix)
Definition: string.cc:173
Options options_
Definition: workspace.h:70
std::vector< Image > images
Definition: model.h:72
Definition: workspace.h:81
const NormalMap & GetNormalMap(const int image_idx) override
Definition: workspace.cc:210
void Load(const std::vector< std::string > &image_names) override
Definition: workspace.h:85
std::string StringPrintf(const char *format,...)
Definition: string.cc:131
Definition: threading.h:171
void Clear()
Definition: cache.h:419
const Options & GetOptions() const
Definition: workspace.h:48
std::string GetImageName(const int image_idx) const
Definition: model.cc:133