]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkDistanceMap.cxx
#3276 creaVtk Feature New Normal - DistanceMap Box
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkDistanceMap.cxx
index 1c50d0f3405c1a0fd028e19a3521dbcfa7821c31..787c1efa5e3d9033935458369b5534768066adec 100644 (file)
@@ -75,6 +75,16 @@ void DistanceMap::Process()
                int px,py,pz;           
                int pxOut,pyOut,pzOut;  
 
+
+printf("EED Warnning!  DistanceMap::Process    Clean Ponter Image......\n");
+printf("EED Warnning!  DistanceMap::Process    Clean Ponter Image......\n");
+printf("EED Warnning!  DistanceMap::Process    Clean Ponter Image......\n");
+printf("EED Warnning!  DistanceMap::Process    Clean Ponter Image......\n");
+printf("EED Warnning!  DistanceMap::Process    Clean Ponter Image......\n");
+printf("EED Warnning!  DistanceMap::Process    Clean Ponter Image......\n");
+printf("EED Warnning!  DistanceMap::Process    Clean Ponter Image......\n");
+printf("EED Warnning!  DistanceMap::Process    Clean Ponter Image......\n");
+
                while (lst1X.size()>0)
                {
                        depth=depth+bbGetInputSlope();
@@ -163,6 +173,7 @@ void DistanceMap::Process()
                int pxOutBack;
                int pyOutBack;
                int pzOutBack;
+               int length=0;
                while (ok==true)
                {       
                        ok2=false;
@@ -184,9 +195,9 @@ void DistanceMap::Process()
                                                                        ok2                     = true;
                                                                } // if min
                                                } // if 
-                                       } // for kk
-                               } // fo jj
-                       } // for ii
+                                       } // for pz
+                               } // fo py
+                       } // for px
 
                        if (ok2==true)
                        {
@@ -196,14 +207,15 @@ void DistanceMap::Process()
                                lstPathXOut.push_back( pxOut );
                                lstPathYOut.push_back( pyOut );
                                lstPathZOut.push_back( pzOut );
+                               length++;
                        } else {
                                ok=false;
                        }
-               }
+               } // while
 
                bbSetOutputOut( imageoutput );
                bbSetOutputFinalPoint( lstPointOut );
-
+               bbSetOutputLength( length );
                bbSetOutputLstPathXOut( lstPathXOut );
                bbSetOutputLstPathYOut( lstPathYOut );
                bbSetOutputLstPathZOut( lstPathZOut );