Skip to content

Commit

Permalink
Rename sampling to frame_sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
danlipsa committed Mar 9, 2022
1 parent 7e0f6de commit ff55831
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions arrows/vtk/applets/color_mesh.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ class color_mesh::priv : public kwiver::arrows::vtk::mesh_coloration
}
if (cmd_args.count("frame-sampling"))
{
sampling_ = cmd_args["frame-sampling"].as<int>();
config_->set_value("frame_sampling", sampling_);
frame_sampling_ = cmd_args["frame-sampling"].as<int>();
config_->set_value("frame_sampling", frame_sampling_);
}
if (cmd_args.count("all-frames"))
{
Expand Down Expand Up @@ -236,7 +236,7 @@ class color_mesh::priv : public kwiver::arrows::vtk::mesh_coloration
}

// set variables from the config
sampling_ = config_->get_value("frame_sampling", 1);
frame_sampling_ = config_->get_value("frame_sampling", 1);
frame_ = config_->get_value("frame", -1);
all_frames_ = config_->get_value("all_frames", false);
occlusion_threshold_ = config_->get_value("occlusion_threshold", 0.0);
Expand Down
6 changes: 3 additions & 3 deletions arrows/vtk/mesh_coloration.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ::mesh_coloration()
{
input_ = nullptr;
output_ = vtkSmartPointer<vtkPolyData>::New();
sampling_ = 1;
frame_sampling_ = 1;
frame_ = -1;
all_frames_ = false;
occlusion_threshold_ = 0.0;
Expand Down Expand Up @@ -184,7 +184,7 @@ ::set_frame_sampling( int sample )
{
if( sample > 0 )
{
sampling_ = sample;
frame_sampling_ = sample;
}
}

Expand Down Expand Up @@ -579,7 +579,7 @@ ::initialize_data_list( int frame_id )

for( auto const& cam_itr : cam_map )
{
if( ( counter++ ) % sampling_ != 0 )
if( ( counter++ ) % frame_sampling_ != 0 )
{
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion arrows/vtk/mesh_coloration.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class KWIVER_ALGO_VTK_EXPORT mesh_coloration :
protected:
vtkSmartPointer< vtkPolyData > input_;
vtkSmartPointer< vtkPolyData > output_;
int sampling_;
int frame_sampling_;
int frame_;
bool all_frames_;
float occlusion_threshold_;
Expand Down

0 comments on commit ff55831

Please sign in to comment.