#ifndef __bbSlicerResampleDTIVolume_h_INCLUDED__ #define __bbSlicerResampleDTIVolume_h_INCLUDED__ #include "bbSlicer_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include #include #include #include #include #include #include #include #include #include #include #include "CreationTool.h" namespace bbSlicer { class bbSlicer_EXPORT ResampleDTIVolume : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE ( ResampleDTIVolume , bbtk::AtomicBlackBox ) ; // GENERATED ARGS BBTK_DECLARE_INPUT ( inputVolume , std::string ); BBTK_DECLARE_INPUT ( outputVolume , std::string ); BBTK_DECLARE_INPUT ( referenceVolume , std::string ); BBTK_DECLARE_INPUT ( transformationFile , std::string ); BBTK_DECLARE_INPUT ( deffield , std::string ); BBTK_DECLARE_INPUT ( typeOfField , std::string ); BBTK_DECLARE_INPUT ( interpolationType , std::string ); BBTK_DECLARE_INPUT ( correction , std::string ); BBTK_DECLARE_INPUT ( ppd , std::string ); BBTK_DECLARE_INPUT ( transformsOrder , std::string ); BBTK_DECLARE_INPUT ( notbulk , bool ); BBTK_DECLARE_INPUT ( space , bool ); BBTK_DECLARE_INPUT ( rotationPoint , std::vector ); BBTK_DECLARE_INPUT ( centeredTransform , bool ); BBTK_DECLARE_INPUT ( imageCenter , std::string ); BBTK_DECLARE_INPUT ( inverseITKTransformation , bool ); BBTK_DECLARE_INPUT ( outputImageSpacing , std::vector ); BBTK_DECLARE_INPUT ( outputImageSize , std::vector ); BBTK_DECLARE_INPUT ( outputImageOrigin , std::vector ); BBTK_DECLARE_INPUT ( directionMatrix , std::vector ); BBTK_DECLARE_INPUT ( numberOfThread , int ); BBTK_DECLARE_INPUT ( defaultPixelValue , double ); BBTK_DECLARE_INPUT ( windowFunction , std::string ); BBTK_DECLARE_INPUT ( splineOrder , int ); BBTK_DECLARE_INPUT ( transformMatrix , std::vector ); BBTK_DECLARE_INPUT ( transformType , std::string ); // EO GENERATED ARGS BBTK_PROCESS ( Process ) ; void Process ( ) ; private: void execute ( std::string lib , int _argc , char * _argv[] ) ; } ; BBTK_BEGIN_DESCRIBE_BLACK_BOX ( ResampleDTIVolume , bbtk::AtomicBlackBox ) ; BBTK_NAME ( "ResampleDTIVolume" ) ; BBTK_AUTHOR ( "Francois Budin" ) ; BBTK_DESCRIPTION ( "Resampling an image is a very important task in image analysis. It is especially important in the frame of image registration. This module implements DT image resampling through the use of itk Transforms. The resampling is controlled by the Output Spacing. 'Resampling' is performed in space coordinates, not pixel/grid coordinates. It is quite important to ensure that image spacing is properly set on the images involved. The interpolator is required since the mapping from one space to the other will often require evaluation of the intensity of the image at non-grid positions." ) ; BBTK_CATEGORY ( "Diffusion.Utilities" ) ; // GENERATED DESCRPTION BBTK_INPUT(ResampleDTIVolume , inputVolume , "inputVolume" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , outputVolume , "outputVolume" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , referenceVolume , "referenceVolume" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , transformationFile , "transformationFile" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , deffield , "deffield" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , typeOfField , "typeOfField" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , interpolationType , "interpolationType" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , correction , "correction" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , ppd , "ppd" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , transformsOrder , "transformsOrder" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , notbulk , "notbulk" , bool, ""); BBTK_INPUT(ResampleDTIVolume , space , "space" , bool, ""); BBTK_INPUT(ResampleDTIVolume , rotationPoint , "rotationPoint" , std::vector, ""); BBTK_INPUT(ResampleDTIVolume , centeredTransform , "centeredTransform" , bool, ""); BBTK_INPUT(ResampleDTIVolume , imageCenter , "imageCenter" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , inverseITKTransformation , "inverseITKTransformation" , bool, ""); BBTK_INPUT(ResampleDTIVolume , outputImageSpacing , "outputImageSpacing" , std::vector, ""); BBTK_INPUT(ResampleDTIVolume , outputImageSize , "outputImageSize" , std::vector, ""); BBTK_INPUT(ResampleDTIVolume , outputImageOrigin , "outputImageOrigin" , std::vector, ""); BBTK_INPUT(ResampleDTIVolume , directionMatrix , "directionMatrix" , std::vector, ""); BBTK_INPUT(ResampleDTIVolume , numberOfThread , "numberOfThread" , int, ""); BBTK_INPUT(ResampleDTIVolume , defaultPixelValue , "defaultPixelValue" , double, ""); BBTK_INPUT(ResampleDTIVolume , windowFunction , "windowFunction" , std::string, ""); BBTK_INPUT(ResampleDTIVolume , splineOrder , "splineOrder" , int, ""); BBTK_INPUT(ResampleDTIVolume , transformMatrix , "transformMatrix" , std::vector, ""); BBTK_INPUT(ResampleDTIVolume , transformType , "transformType" , std::string, ""); // EO GENERATED DESCRIPTION BBTK_END_DESCRIBE_BLACK_BOX ( ResampleDTIVolume ) ; } #endif // __bbSlicerResampleDTIVolume_h_INCLUDED__