]> Creatis software - FrontAlgorithms.git/commitdiff
...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Mon, 18 Apr 2016 01:51:07 +0000 (20:51 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Mon, 18 Apr 2016 01:51:07 +0000 (20:51 -0500)
appli/TempAirwaysAppli/TempAirwaysAppli.cxx
lib/fpa/Image/ExtractEndPointsAndBifurcationsFromMinimumSpanningTree.hxx

index 160d26f260c7cf008bf5ce8e0b3d05f5f6664f90..2664f789f651b6f6532601b98f2fa04b1a751643 100644 (file)
@@ -23,8 +23,6 @@ namespace
 
 typedef std::vector< AirwaysTree > AirwaysVector;
 
-#include <itkCastImageFilter.h>
-
 // Auxiliar struct to save info for execution.
 typedef void* TImagePointer;
 struct TreeInfo{
@@ -43,13 +41,19 @@ struct TreeInfo{
 
   void CastImage( )
     {
-      auto image = this->myWorkspace->GetFilter( "reader" )->GetOutputData( "Output" )->GetITK< itk::Image< unsigned char, 3 > >( );
-      typedef itk::CastImageFilter< itk::Image< unsigned char, 3 >, TInputImage > _TCast;
-      _TCast::Pointer cast = _TCast::New( );
-      cast->SetInput( image );
-      cast->Update( );
-      this->Image = cast->GetOutput( );
-      this->Image->DisconnectPipeline( );
+      try
+      {
+        this->myWorkspace->Execute( "cast" );
+      }
+      catch( itk::ExceptionObject& err )
+      {
+        std::cerr << "Error: " << err << std::endl;
+        std::exit( 1 );
+
+      } // yrt
+      this->Image =
+        this->myWorkspace->GetFilter( "cast" )->GetOutputData( "Output" )->
+        GetITK< TInputImage >( );
     }
 
   TInputImage::Pointer Image;
index 789d392f6a65634e186ca372921404559c31bc6b..cdc34fbea67e146a24807d020944a7756d4d74d3 100644 (file)
@@ -144,7 +144,7 @@ _MarkSphere(
   const unsigned long& l
   )
 {
-  double rr = r * double( 1.5 );
+  double rr = r * double( 1.1 );
 
   // Get marking region
   auto rreg = this->m_MarkImage->GetRequestedRegion( );