-#include <cpPlugins/DataObjects/Image.h>
-#include <cpPlugins/DataObjects/Image_Demanglers.h>
-#include <cpPlugins/DataObjects/BoundingBox.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/BoundingBox.h>
this->_ConfigureInput< _TImage >( "Input", true, false );
this->_ConfigureOutput< _TBBox >( "Output" );
this->_ConfigureInput< _TImage >( "Input", true, false );
this->_ConfigureOutput< _TBBox >( "Output" );
this->m_Parameters.ConfigureAsReal( "LowerThreshold", 0 );
this->m_Parameters.ConfigureAsReal( "UpperThreshold", 0 );
}
this->m_Parameters.ConfigureAsReal( "LowerThreshold", 0 );
this->m_Parameters.ConfigureAsReal( "UpperThreshold", 0 );
}
filter->SetLowerThreshold( this->m_Parameters.GetReal( "LowerThreshold" ) );
filter->SetUpperThreshold( this->m_Parameters.GetReal( "UpperThreshold" ) );
filter->Compute( );
// Create output
auto reg = filter->GetRegion( );
filter->SetLowerThreshold( this->m_Parameters.GetReal( "LowerThreshold" ) );
filter->SetUpperThreshold( this->m_Parameters.GetReal( "UpperThreshold" ) );
filter->Compute( );
// Create output
auto reg = filter->GetRegion( );
typename _TImage::PointType p0, p1;
image->TransformIndexToPhysicalPoint( reg.GetIndex( ), p0 );
image->TransformIndexToPhysicalPoint( reg.GetIndex( ) + reg.GetSize( ), p1 );
typename _TImage::PointType p0, p1;
image->TransformIndexToPhysicalPoint( reg.GetIndex( ), p0 );
image->TransformIndexToPhysicalPoint( reg.GetIndex( ) + reg.GetSize( ), p1 );