Skip to content

Commit c078c10

Browse files
committed
fix compile issues on linux
1 parent c89cd15 commit c078c10

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

src/base/DICe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#include <DICe.h>
4343

4444
#include <iostream>
45-
#include <string>
45+
#include <string.h>
4646

4747
#if DICE_MPI
4848
#include <mpi.h>

src/base/DICe_LocalShapeFunction.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Affine_Shape_Function::high_order_terms(const scalar_t & x,
406406
const bool use_ref_grads){
407407
assert((int_t)high_order_terms.size()==4);
408408

409-
static scalar_t dx=0.0,dy=0.0,Dx=0.0,Dy=0.0,delTheta=0.0,delEx=0.0,delEy=0.0,delGxy=0.0;
409+
static scalar_t dx=0.0,dy=0.0,Dx=0.0,Dy=0.0;
410410
static scalar_t Gx=0.0,Gy=0.0;
411411
static scalar_t theta=0.0,dudx=0.0,dvdy=0.0,gxy=0.0,cosTheta=0.0,sinTheta=0.0;
412412
theta = has_rotz_ ? parameters_[rotz_ind_] : 0.0;
@@ -423,12 +423,6 @@ Affine_Shape_Function::high_order_terms(const scalar_t & x,
423423
Gx = use_ref_grads ? cosTheta*gx - sinTheta*gy : gx;
424424
Gy = use_ref_grads ? sinTheta*gx + cosTheta*gy : gy;
425425

426-
delTheta = Gx*(-sinTheta*Dx - cosTheta*Dy) + Gy*(cosTheta*Dx - sinTheta*Dy);
427-
//deldelTheta = Gx*(-cosTheta*Dx + sinTheta*Dy) + Gy*(-sinTheta*Dx - cosTheta*Dy);
428-
delEx = Gx*dx*cosTheta + Gy*dx*sinTheta;
429-
delEy = -Gx*dy*sinTheta + Gy*dy*cosTheta;
430-
delGxy = Gx*(cosTheta*dy - sinTheta*dx) + Gy*(sinTheta*dy + cosTheta*dx);
431-
432426
high_order_terms[0] = Gx*(sinTheta*Dy - cosTheta*Dx) + Gy*(-1.0*sinTheta*Dx - cosTheta*Dy);
433427
high_order_terms[1] = Gy*cosTheta*dx - Gx*sinTheta*dx;
434428
high_order_terms[2] = -1.0*Gx*cosTheta*dy - Gy*sinTheta*dy;

src/core/DICe_Schema.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3026,7 +3026,7 @@ Schema::march_from_neighbor_init(const Direction & neighbor_direction,
30263026
scalar_t subset_x = neigh_x;
30273027
scalar_t subset_y = neigh_y;
30283028
scalar_t cross_gamma = 0.0, cross_sigma = 0.0;
3029-
Status_Flag corr_status;
3029+
Status_Flag corr_status = CORRELATION_FAILED;
30303030
Teuchos::RCP<Objective> obj;
30313031
std::vector<scalar_t> save_params(sf->num_params(),0.0);
30323032
for(int_t ix=0;ix<=num_steps_x;++ix){
@@ -3200,13 +3200,13 @@ Schema::initialize_cross_correlation(Teuchos::RCP<Triangulation> tri,
32003200
// do a feature matching on the rectified images
32013201

32023202
float feature_epi_dist_tol = 0.5f;
3203-
float epi_dist_tol = 0.5f;
3203+
//float epi_dist_tol = 0.5f;
32043204
if(tri->avg_epipolar_error()!=0.0){
32053205
feature_epi_dist_tol = 3.0*tri->avg_epipolar_error();
3206-
epi_dist_tol = 3.0*tri->avg_epipolar_error();
3206+
//epi_dist_tol = 3.0*tri->avg_epipolar_error();
32073207
}
32083208
DEBUG_MSG("Schema::initialize_cross_correlation(): feature epi dist tol: " << feature_epi_dist_tol);
3209-
DEBUG_MSG("Schema::initialize_cross_correlation(): epi dist tol: " << epi_dist_tol);
3209+
//DEBUG_MSG("Schema::initialize_cross_correlation(): epi dist tol: " << epi_dist_tol);
32103210
Teuchos::RCP<DICe::Image> left_image = Teuchos::rcp(new Image(outname_left.c_str(),imgParams));
32113211
Teuchos::RCP<DICe::Image> right_image = Teuchos::rcp(new Image(outname_right.c_str(),imgParams));
32123212

0 commit comments

Comments
 (0)