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();
int pxOutBack;
int pyOutBack;
int pzOutBack;
+ int length=0;
while (ok==true)
{
ok2=false;
ok2 = true;
} // if min
} // if
- } // for kk
- } // fo jj
- } // for ii
+ } // for pz
+ } // fo py
+ } // for px
if (ok2==true)
{
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 );
BBTK_DECLARE_INPUT(Point2, std::vector<int>);
BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
+ BBTK_DECLARE_OUTPUT(Length, int );
BBTK_DECLARE_OUTPUT(FinalPoint,std::vector<int>);
BBTK_DECLARE_OUTPUT(LstPathXOut,std::vector<int>);
BBTK_DECLARE_OUTPUT(LstPathYOut,std::vector<int>);
BBTK_INPUT(DistanceMap,Point2,"End point (There is no guarantee of reaching this point.)",std::vector<int>,"");
BBTK_OUTPUT(DistanceMap,Out,"Output image",vtkImageData*,"");
+ BBTK_OUTPUT(DistanceMap,Length,"Path Length",int,"");
BBTK_OUTPUT(DistanceMap,FinalPoint,"Final Point",std::vector<int>,"");
BBTK_OUTPUT(DistanceMap,LstPathXOut,"Vector path X",std::vector<int>,"");
BBTK_OUTPUT(DistanceMap,LstPathYOut,"Vector path Y",std::vector<int>,"");
void ImageContinuousErode3D::Process()
{
-printf("EED ImageContinuousErode3D::Process Repetitions=%d\n", bbGetInputRepetitions() );
-printf("EED ImageContinuousErode3D::Process XYZ=%f %f %f\n", bbGetInputX(), bbGetInputY(), bbGetInputZ() );
-
vtkImageData* result = erodeFilterRecursive(bbGetInputImage(), bbGetInputRepetitions(), bbGetInputX(),bbGetInputY(),bbGetInputZ());
bbSetOutputOut(result);
}