From: Leonardo Florez-Valencia Date: Tue, 21 Jun 2016 22:45:56 +0000 (-0500) Subject: More and more... X-Git-Tag: v0.1~135 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4110cff7e90092a77cd272abe468db9013dd3863;p=cpPlugins.git More and more... --- diff --git a/lib/cpPlugins_Instances/CMakeLists.txt b/lib/cpPlugins_Instances/CMakeLists.txt index d248386..5360a0e 100644 --- a/lib/cpPlugins_Instances/CMakeLists.txt +++ b/lib/cpPlugins_Instances/CMakeLists.txt @@ -52,6 +52,7 @@ cpPlugins_WrapInstances( ) cpPlugins_WrapInstances(MorphologicalImageFilters ${arg} ${pfx}ScalarImagesBaseFilters) cpPlugins_WrapInstances(ExtractImageFilters ${arg} ${pfx}ScalarImages) +cpPlugins_WrapInstances(MedialnessFilters ${arg} ${pfx}ScalarImages ${pfx}VectorImages) SET( cpPlugins_LIBRARIES @@ -77,6 +78,7 @@ SET( ${pfx}GaussianImageFilters ${pfx}MorphologicalImageFilters ${pfx}ExtractImageFilters + ${pfx}MedialnessFilters CACHE INTERNAL "All valid instances." FORCE ) diff --git a/lib/cpPlugins_Instances/MedialnessFilters.i b/lib/cpPlugins_Instances/MedialnessFilters.i new file mode 100644 index 0000000..281cf34 --- /dev/null +++ b/lib/cpPlugins_Instances/MedialnessFilters.i @@ -0,0 +1,22 @@ +d #ints=char;short;int;long +d #uints=unsigned #ints +d #floats=float;double +d #pixels=#ints;#uints;#floats +d #dims=2;3 +d #functors=GulsunTek;Flux;MFlux + +i cpPlugins_Instances/ScalarImages.h +i cpPlugins_Instances/VectorImages.h +t itkImageFunction.h +t cpExtensions/Algorithms/GradientImageFunctionBase.h +t cpExtensions/Algorithms/{#functors}Medialness.h + +* =========== +* = Filters = +* =========== + +c itk::ImageFunction< itk::Image< itk::CovariantVector< #floats, #dims >, #dims >, #floats, #floats > +c cpExtensions::Algorithms::GradientImageFunctionBase< itk::Image< itk::CovariantVector< #floats, #dims >, #dims > > +c cpExtensions::Algorithms::{#functors}Medialness< itk::Image< itk::CovariantVector< #floats, #dims >, #dims > > + +* eof - $RCSfile$ diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 9d51a6a..569ad55 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -2,6 +2,7 @@ SUBDIRS( cpPluginsGenericFilters cpPluginsIO cpPluginsImageFilters + cpPluginsMedialnessFilters cpPluginsMeshSources cpPluginsMeshFilters cpPluginsImageMeshFilters diff --git a/plugins/cpPluginsMedialnessFilters/CMakeLists.txt b/plugins/cpPluginsMedialnessFilters/CMakeLists.txt new file mode 100644 index 0000000..bb10058 --- /dev/null +++ b/plugins/cpPluginsMedialnessFilters/CMakeLists.txt @@ -0,0 +1,32 @@ +SET(lib_NAME cpPluginsMedialnessFilters) +FILE(GLOB lib_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/*.h") +FILE(GLOB lib_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cxx") +SET(lib_OTHER_SOURCES "") +SET(lib_QT4_HEADERS "") + +SET(lib_LINKS) +IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux") + SET(lib_LINKS cpPlugins ${cpPlugins_LIBRARIES}) +ENDIF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux") + +cpPlugins_WrapPlugins( + ${lib_NAME} ${prj_VER} ${prj_sVER} + "${lib_HEADERS}" + "${lib_SOURCES}" + "${lib_OTHER_SOURCES}" + "${lib_QT4_HEADERS}" + ${lib_LINKS} + ) + +## ======================== +## -- Installation rules -- +## ======================== + +#INSTALL( +# TARGETS ${lib_NAME} +# RUNTIME DESTINATION bin +# LIBRARY DESTINATION lib +# ARCHIVE DESTINATION lib/static +# ) + +## eof - $RCSfile$ diff --git a/plugins/cpPluginsMedialnessFilters/GulsunTekMedialness.cxx b/plugins/cpPluginsMedialnessFilters/GulsunTekMedialness.cxx new file mode 100644 index 0000000..5718541 --- /dev/null +++ b/plugins/cpPluginsMedialnessFilters/GulsunTekMedialness.cxx @@ -0,0 +1,30 @@ +#include +#include + +// ------------------------------------------------------------------------- +cpPluginsMedialnessFilters::GulsunTekMedialness:: +GulsunTekMedialness( ) + : Superclass( ) +{ +} + +// ------------------------------------------------------------------------- +cpPluginsMedialnessFilters::GulsunTekMedialness:: +~GulsunTekMedialness( ) +{ +} + +// ------------------------------------------------------------------------- +void cpPluginsMedialnessFilters::GulsunTekMedialness:: +_GenerateData( ) +{ +} + +// ------------------------------------------------------------------------- +template< class _TImage > +void cpPluginsMedialnessFilters::GulsunTekMedialness:: +_GD0( _TImage* image ) +{ +} + +// eof - $RCSfile$ diff --git a/plugins/cpPluginsMedialnessFilters/GulsunTekMedialness.h b/plugins/cpPluginsMedialnessFilters/GulsunTekMedialness.h new file mode 100644 index 0000000..c32c3be --- /dev/null +++ b/plugins/cpPluginsMedialnessFilters/GulsunTekMedialness.h @@ -0,0 +1,44 @@ +#ifndef __CPPLUGINSMEDIALNESSFILTERS__GULSUNTEKMEDIALNESS__H__ +#define __CPPLUGINSMEDIALNESSFILTERS__GULSUNTEKMEDIALNESS__H__ + +#include +#include + +namespace cpPluginsMedialnessFilters +{ + /** + */ + class cpPluginsMedialnessFilters_EXPORT GulsunTekMedialness + : public cpPlugins::ProcessObject + { + public: + typedef GulsunTekMedialness Self; + typedef cpPlugins::ProcessObject Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; + + public: + itkNewMacro( Self ); + itkTypeMacro( GulsunTekMedialness, cpPlugins::ProcessObject ); + cpPlugins_Id_Macro( GulsunTekMedialness, MedialnessFilters ); + + protected: + GulsunTekMedialness( ); + virtual ~GulsunTekMedialness( ); + + virtual void _GenerateData( ) ITK_OVERRIDE; + + template< class _TImage > + inline void _GD0( _TImage* image ); + + private: + // Purposely not implemented + GulsunTekMedialness( const Self& ); + Self& operator=( const Self& ); + }; + +} // ecapseman + +#endif // __CPPLUGINSMEDIALNESSFILTERS__GULSUNTEKMEDIALNESS__H__ + +// eof - $RCSfile$