]> Creatis software - creaVtk.git/commitdiff
#3304 creaVtk Bug New Normal - GrayLevel box
authorEduardo DAVILA <davila@ei-ed-606.univ-lyon1.fr>
Wed, 11 Sep 2019 13:54:55 +0000 (15:54 +0200)
committerEduardo DAVILA <davila@ei-ed-606.univ-lyon1.fr>
Wed, 11 Sep 2019 13:54:55 +0000 (15:54 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx

index 8922cfad2afd4ea01f9f938534cb565195efc877..4f8ca61e3747575e0783ff8d31ab43d245813d6b 100644 (file)
@@ -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]);