mirror of
https://github.com/ConsistentlyInconsistentYT/Pixeltovoxelprojector.git
synced 2025-10-12 20:02:06 +00:00
Comment out unused variables.
This avoid a few warnings from the compiler.
This commit is contained in:
parent
f006e9aca0
commit
33eb136028
1 changed files with 4 additions and 4 deletions
|
@ -445,10 +445,10 @@ int main(int argc, char** argv) {
|
|||
//------------------------------------------
|
||||
// Basic parameters
|
||||
float motion_threshold = 2.0f; // difference threshold
|
||||
float alpha = 0.1f; // distance-based attenuation factor
|
||||
//float alpha = 0.1f; // distance-based attenuation factor
|
||||
|
||||
for(auto &kv : frames_by_cam) {
|
||||
int cam_id = kv.first;
|
||||
//int cam_id = kv.first;
|
||||
auto &cam_frames = kv.second;
|
||||
|
||||
if(cam_frames.size() < 2) {
|
||||
|
@ -521,8 +521,8 @@ int main(int argc, char** argv) {
|
|||
|
||||
// Accumulate
|
||||
for(const auto &rs : steps) {
|
||||
float dist = rs.distance;
|
||||
float attenuation = 1.f/(1.f + alpha*dist);
|
||||
//float dist = rs.distance;
|
||||
//float attenuation = 1.f/(1.f + alpha*dist);
|
||||
float val = pix_val * 1.f; //attenuation, need to fix this to work better so that it scales with the size of the image as it would appear at that distance but for now this works;
|
||||
int idx = rs.ix*N*N + rs.iy*N + rs.iz;
|
||||
voxel_grid[idx] += val;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue