auto mIt = skeleton->BeginEdgesRows( );
for( ; mIt != skeleton->EndEdgesRows( ); ++mIt )
{
- /* TODO
- mIt->first; --> this is the row index. <--
- */
auto rIt = mIt->second.begin( );
for( ; rIt != mIt->second.end( ); ++rIt )
{
- /* TODO
- rIt->first; --> this is the column index.
- */
auto eIt = rIt->second.begin( );
for( ; eIt != rIt->second.end( ); ++eIt )
{
tinclude itkBinaryFunctorImageFilter:h|hxx
tinclude itkUnaryFunctorImageFilter:h|hxx
+tinclude itkInvertIntensityImageFilter:h|hxx
cinclude itk#filters#ImageFilter.h
instances itk::BinaryFunctorImageFilter< itk::Image< #all_ints#, #process_dims# >, itk::Image< #all_ints#, #process_dims# >, itk::Image< #all_ints#, #process_dims# >, itk::Functor::#functors#< #all_ints#, #all_ints#, #all_ints# > >
instances itk::UnaryFunctorImageFilter< itk::Image< #all_ints#, #process_dims# >, itk::Image< #all_ints#, #process_dims# >, itk::Functor::NOT< #all_ints#, #all_ints# > >
+instances itk::InvertIntensityImageFilter< itk::Image< #scalar_pixels#, #process_dims# > >
+
** eof - $RCSfile$
--- /dev/null
+#include <ImageBooleanFilters/InvertIntensityImageFilter.h>
+#include <cpPlugins/DataObjects/Image.h>
+#include <cpPlugins/DataObjects/Image_Demanglers.h>
+
+#include <itkInvertIntensityImageFilter.h>
+
+// -------------------------------------------------------------------------
+cpPluginsImageBooleanFilters::InvertIntensityImageFilter::
+InvertIntensityImageFilter( )
+ : Superclass( )
+{
+ typedef cpPlugins::DataObjects::Image _TImage;
+
+ this->_ConfigureInput< _TImage >( "Input", true, false );
+ this->_ConfigureOutput< _TImage >( "Output" );
+ this->m_Parameters.ConfigureAsUint( "Maximum", 1 );
+}
+
+// -------------------------------------------------------------------------
+cpPluginsImageBooleanFilters::InvertIntensityImageFilter::
+~InvertIntensityImageFilter( )
+{
+}
+
+// -------------------------------------------------------------------------
+void cpPluginsImageBooleanFilters::InvertIntensityImageFilter::
+_GenerateData( )
+{
+ auto o = this->GetInputData( "Input" );
+ cpPlugins_Demangle_Image_ScalarPixels_AllDims_1( o, _GD0 )
+ this->_Error( "Invalid input image." );
+}
+
+// -------------------------------------------------------------------------
+template< class _TImage >
+void cpPluginsImageBooleanFilters::InvertIntensityImageFilter::
+_GD0( _TImage* image )
+{
+ typedef itk::InvertIntensityImageFilter< _TImage > _TFilter;
+
+ // Configure filter
+ auto filter = this->_CreateITK< _TFilter >( );
+ filter->SetInput( image );
+ filter->SetMaximum( this->m_Parameters.GetUint( "Maximum" ) );
+ filter->Update( );
+ this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+}
+
+// eof - $RCSfile$
--- /dev/null
+#ifndef __cpPluginsImageBooleanFilters__InvertIntensityImageFilter__h__
+#define __cpPluginsImageBooleanFilters__InvertIntensityImageFilter__h__
+
+#include <cpPluginsImageBooleanFilters_Export.h>
+#include <cpPlugins/BaseObjects/ProcessObject.h>
+
+namespace cpPluginsImageBooleanFilters
+{
+ /**
+ */
+ class cpPluginsImageBooleanFilters_EXPORT InvertIntensityImageFilter
+ : public cpPlugins::BaseObjects::ProcessObject
+ {
+ cpPluginsObject(
+ InvertIntensityImageFilter,
+ cpPlugins::BaseObjects::ProcessObject,
+ ImageBooleanFilters
+ );
+
+ protected:
+ template< class _TImage >
+ inline void _GD0( _TImage* image );
+ };
+
+} // ecapseman
+
+#endif // __cpPluginsImageBooleanFilters__InvertIntensityImageFilter__h__
+
+// eof - $RCSfile$