Program: bbtk
Module: $RCSfile: bbitkResampleImageFilter.h,v $
Language: C++
- Date: $Date: 2009/05/18 10:45:44 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2011/05/03 12:24:22 $
+ Version: $Revision: 1.11 $
=========================================================================*/
/* ---------------------------------------------------------------------
:
public bbtk::AtomicBlackBox
{
- BBTK_BLACK_BOX_INTERFACE(ResampleImageFilter,
- bbtk::AtomicBlackBox);
- BBTK_DECLARE_INPUT(In,anyImagePointer);
- BBTK_DECLARE_INPUT(Spacing,std::vector<double>);
- BBTK_DECLARE_INPUT(Interpolation,std::string);
- BBTK_DECLARE_OUTPUT(Out,anyImagePointer);
+ BBTK_BLACK_BOX_INTERFACE(ResampleImageFilter, bbtk::AtomicBlackBox);
+ BBTK_DECLARE_INPUT(In,anyImagePointer);
+ BBTK_DECLARE_INPUT(Spacing,std::vector<double>);
+ BBTK_DECLARE_INPUT(Interpolation,std::string);
+ BBTK_DECLARE_OUTPUT(Out,anyImagePointer);
BBTK_PROCESS(ProcessSwitch);
private :
inline void ProcessSwitch();
BBTK_AUTHOR("laurent.guigues at creatis.insa-lyon.fr");
BBTK_DESCRIPTION("Resamples an image");
BBTK_CATEGORY("image;filter");
- BBTK_INPUT(ResampleImageFilter,In,
- "Input image. Can be any itk::Image<T,D>*",anyImagePointer,"");
- BBTK_INPUT(ResampleImageFilter,Spacing,
- "Spacing",std::vector<double>,"spacing");
- BBTK_INPUT(ResampleImageFilter,Interpolation,
- "Interpolation",std::string,"");
- BBTK_OUTPUT(ResampleImageFilter,Out,
- "Output image. Of the same type and dimension than the input image",
- anyImagePointer,"");
+ BBTK_INPUT(ResampleImageFilter,In,"Input image. Can be any itk::Image<T,D>*",anyImagePointer,"");
+ BBTK_INPUT(ResampleImageFilter,Spacing,"Spacing",std::vector<double>,"spacing");
+ BBTK_INPUT(ResampleImageFilter,Interpolation,"Interpolation: Linear (default) || BSpline || NearestNeighbor) ",std::string,"");
+ BBTK_OUTPUT(ResampleImageFilter,Out,"Output image. Of the same type and dimension than the input image",anyImagePointer,"");
BBTK_END_DESCRIBE_BLACK_BOX(ResampleImageFilter);
//===================================================
}
-}
-// EO namespace bbtk
+} // EO namespace bbitk
-#endif
+#endif // _USE_ITK_
//-----------------------------------------------------------
void VecIsoSurfaceExtractor::bbUserSetDefaultValues()
{
-
-std::cout <<
-"================================VecIsoSurfaceExtractor::bbUserSetDefaultValues()"
-<< std::endl;
+//EED std::cout << "================================VecIsoSurfaceExtractor::bbUserSetDefaultValues()" << std::endl;
std::vector<double> colour;
// 1- red
colour.push_back(1.0);
{
// bbSetInputIn(NULL);
// bbSetInputInVtkObject(NULL);
-std::cout <<
-"================================VecIsoSurfaceExtractor::bbUserInitializeProcessing()"
-<< std::endl;
+//EED std::cout << "================================VecIsoSurfaceExtractor::bbUserInitializeProcessing()" << std::endl;
}
//-----------------------------------------------------------
void VecIsoSurfaceExtractor::bbUserFinalizeProcessing()
{
-std::cout <<
-"================================VecIsoSurfaceExtractor::bbUserFinalizeProcessing()"
-<< std::endl;
+//EED std::cout << "================================VecIsoSurfaceExtractor::bbUserFinalizeProcessing()" << std::endl;
int i,size = VecMarchingcubes.size();
for (i=0;i<size;i++)
{
//-----------------------------------------------------------
void VecIsoSurfaceExtractor::Process()
{
-std::cout <<
-"================================VecIsoSurfaceExtractor::Process()"
-<< std::endl;
+//EED std::cout <<"================================VecIsoSurfaceExtractor::Process()" << std::endl;
double r,g,b;
vtkMarchingCubes *marchingcubes;
vtkPolyDataMapper *polydatamapper;