From: Eduardo DAVILA Date: Wed, 11 Sep 2019 13:54:55 +0000 (+0200) Subject: #3304 creaVtk Bug New Normal - GrayLevel box X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b2426b967d278b6ef83d202be0d9f4dbe2aa9d8e;p=creaVtk.git #3304 creaVtk Bug New Normal - GrayLevel box --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx index 8922cfa..4f8ca61 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx @@ -40,9 +40,9 @@ void GrayLevel::Process() { if (bbGetInputWithSpacing()==true) { - px = round(coord[0])/spc[0]; - py = round(coord[1])/spc[1]; - pz = round(coord[2])/spc[2]; + px = round(coord[0]/spc[0]); + py = round(coord[1]/spc[1]); + pz = round(coord[2]/spc[2]); } else { px = round(coord[0]); py = round(coord[1]); @@ -61,9 +61,9 @@ void GrayLevel::Process() { if (bbGetInputWithSpacing()==true) { - px = round(lstX[i])/spc[0]; - py = round(lstY[i])/spc[1]; - pz = round(lstZ[i])/spc[2]; + px = round(lstX[i]/spc[0]); + py = round(lstY[i]/spc[1]); + pz = round(lstZ[i]/spc[2]); } else { px = round(lstX[i]); py = round(lstY[i]);