]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx
#3307 creaVtk Bug New Normal - StructuredPoint init
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkGrayLevel.cxx
index 11e6c3a76d438e34ea18262c3713cab495d19313..75ae894f1e89c5af3de63f0d9cec244d5c80938d 100644 (file)
@@ -13,9 +13,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(GrayLevel,bbtk::AtomicBlackBox);
 //===== 
 void GrayLevel::Process()
 {
-
-printf ("EED GrayLevel::Process Start\n");
-
 // THE MAIN PROCESSING METHOD BODY
 //   Here we simply set the input 'In' value to the output 'Out'
 //   And print out the output value
@@ -30,13 +27,10 @@ printf ("EED GrayLevel::Process Start\n");
 
 //    vtkImageData  *m_image  =  vtkImageData::New();
 //    m_image = bbGetInputImage();
-
     double grayLevel                   = -9999;
     std::vector<double> coord  = bbGetInputCoordinate();
-
        int ext[6];
        int maxX,maxY,maxZ;
-
        double px,py,pz;
        if (bbGetInputImage()!=NULL)
        {
@@ -46,7 +40,6 @@ printf ("EED GrayLevel::Process Start\n");
                maxX = ext[1]-ext[0]+1;
                maxY = ext[3]-ext[2]+1;
                maxZ = ext[5]-ext[4]+1;
-
                if (coord.size()==3)
                { 
                        if (bbGetInputWithSpacing()==true)
@@ -59,7 +52,6 @@ printf ("EED GrayLevel::Process Start\n");
                                py = coord[1];
                                pz = coord[2];
                        }// if
-
                        px=round(px);
                        py=round(py);
                        pz=round(pz);           
@@ -69,8 +61,6 @@ printf ("EED GrayLevel::Process Start\n");
                        } else {
                                grayLevel = -9991;
                        } // if px py pz
-
-
                } // coord
                std::vector<double> lstGL;
                std::vector<double> lstX = bbGetInputLstPointsX();
@@ -101,15 +91,11 @@ printf ("EED GrayLevel::Process Start\n");
                                } else {
                                        lstGL.push_back( -9991 );
                                }
-
                        }// for 
                        bbSetOutputLstGrayLevel(lstGL);
                } // if size of Lst
        } // InputImage
        bbSetOutputGrayLevel(grayLevel);
-
-printf ("EED GrayLevel::Process End\n");
-
 }
 
 //=====