Skip to content

Commit

Permalink
Merge pull request #111 from oleg-alexandrov/compile_fix
Browse files Browse the repository at this point in the history
msm2: Fix compile error with clang
  • Loading branch information
gfacciol authored Mar 10, 2022
2 parents dfc351c + 61da608 commit dd30836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3rdparty/msmw2/libstereo_newversion/cc_postprocess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ int cc_postprocess(int w, int h, float *img, float *msk, float *out, float *outm
if(maxerr< MAXERR && vmax-vmin< MAXDIFF ) {
for(int i = 0;i<pixels.size();i++) {
int idx = pixels[i].x + pixels[i].y*w;
float vv[3] = {pixels[i].x, pixels[i].y, 0};
float vv[3] = {float(pixels[i].x), float(pixels[i].y), float(0.0)};
out[idx] = eval_model(3, vv, model);
outmsk[idx] = 254;
}
Expand Down

0 comments on commit dd30836

Please sign in to comment.