]> Creatis software - cpPlugins.git/commitdiff
More and more...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Tue, 21 Jun 2016 22:45:56 +0000 (17:45 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Tue, 21 Jun 2016 22:45:56 +0000 (17:45 -0500)
lib/cpPlugins_Instances/CMakeLists.txt
lib/cpPlugins_Instances/MedialnessFilters.i [new file with mode: 0644]
plugins/CMakeLists.txt
plugins/cpPluginsMedialnessFilters/CMakeLists.txt [new file with mode: 0644]
plugins/cpPluginsMedialnessFilters/GulsunTekMedialness.cxx [new file with mode: 0644]
plugins/cpPluginsMedialnessFilters/GulsunTekMedialness.h [new file with mode: 0644]

index d248386f17c213da486438b169e451963fd1254e..5360a0eecfafd555a09137c7519ab9540c9d52c0 100644 (file)
@@ -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 (file)
index 0000000..281cf34
--- /dev/null
@@ -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$
index 9d51a6ad35e6a09647ea608e7969ba7dbcb02ed1..569ad550c90d19ae1181bcaaf4cf21b079c8e972 100644 (file)
@@ -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 (file)
index 0000000..bb10058
--- /dev/null
@@ -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 (file)
index 0000000..5718541
--- /dev/null
@@ -0,0 +1,30 @@
+#include <cpPluginsMedialnessFilters/GulsunTekMedialness.h>
+#include <cpPlugins_Instances/MedialnessFilters.h>
+
+// -------------------------------------------------------------------------
+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 (file)
index 0000000..c32c3be
--- /dev/null
@@ -0,0 +1,44 @@
+#ifndef __CPPLUGINSMEDIALNESSFILTERS__GULSUNTEKMEDIALNESS__H__
+#define __CPPLUGINSMEDIALNESSFILTERS__GULSUNTEKMEDIALNESS__H__
+
+#include <cpPluginsMedialnessFilters/cpPluginsMedialnessFilters_Export.h>
+#include <cpPlugins/ProcessObject.h>
+
+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$