43 ,mesh_count_(0), options_(options), bounding_counter(0),texture_counter(0),pic_count_(0)
53 auto mesh_work = boost::any_cast<pair<pair<MeshPtr, bool>, vector<kfusion::ImgPose*> > >(
getInQueue()->Take());
54 bool last_shift = mesh_work.first.second;
55 MeshPtr act_mesh = mesh_work.first.first;
56 string mesh_notice = (
"#### C: Mesh Optimization " + to_string(
mesh_count_) +
" ####");
63 std::vector<kfusion::ImgPose*> image_poses_buffer = mesh_work.second;
76 if(tmp_pointer ==
NULL)
90 for(i=0;i<image_poses_buffer.size();i++){
91 counter = tmp_pointer->projectAndMapNewImage(*(image_poses_buffer[i]));
101 image_poses_buffer.resize(0);
102 getOutQueue()->Add(pair<pair<MeshPtr, bool>, vector<ImgPose*> >(
103 pair<MeshPtr, bool>(tmp_pointer, last_shift), mesh_work.second));
MeshBufferPtr meshBufferPtr
const kaboom::Options * options
int getDepth() const
Returns the maximum recursion depth for region growing.
static Timestamp timestamp
A global time stamp object for program runtime measurement.
A class to parse the program options for the reconstruction executable.
boost::shared_ptr< BlockingQueue > getInQueue() const
int getMinPlaneSize() const
Minimum value for plane optimzation.
boost::shared_ptr< BlockingQueue > getOutQueue() const
OptimizeStage(Options *options)
int getSmallRegionThreshold() const
Returns the threshold for the size of small region deletion after plane optimization.
int getFillHoles() const
Returns the region threshold for hole filling.
int getPlaneIterations() const
Returns to number plane optimization iterations.
void setQuiet(bool quiet)
float getNormalThreshold() const
Returns the normal threshold for plane optimization.
string getClassifier() const
Returns the name of the classifier used to color the mesh.
float getLineFusionThreshold() const
Returns the fusion threshold for tesselation.