]> Creatis software - FrontAlgorithms.git/commitdiff
...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Fri, 15 Apr 2016 19:07:45 +0000 (14:07 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Fri, 15 Apr 2016 19:07:45 +0000 (14:07 -0500)
22 files changed:
appli/CMakeLists.txt
appli/TempAirwaysAppli/CMakeLists.txt
appli/TempAirwaysAppli/TempAirwaysAppli.cxx
lib/Airways/AirwaysLib/CMakeLists.txt [moved from appli/TempAirwaysAppli/AirwaysLib/CMakeLists.txt with 50% similarity]
lib/Airways/AirwaysLib/airwaysEdge.cxx [moved from appli/TempAirwaysAppli/AirwaysLib/airwaysEdge.cxx with 100% similarity]
lib/Airways/AirwaysLib/airwaysEdge.h [moved from appli/TempAirwaysAppli/AirwaysLib/airwaysEdge.h with 98% similarity]
lib/Airways/AirwaysLib/airwaysNode.cxx [moved from appli/TempAirwaysAppli/AirwaysLib/airwaysNode.cxx with 100% similarity]
lib/Airways/AirwaysLib/airwaysNode.h [moved from appli/TempAirwaysAppli/AirwaysLib/airwaysNode.h with 99% similarity]
lib/Airways/AirwaysLib/airwaysTree.cxx [moved from appli/TempAirwaysAppli/AirwaysLib/airwaysTree.cxx with 100% similarity]
lib/Airways/AirwaysLib/airwaysTree.h [moved from appli/TempAirwaysAppli/AirwaysLib/airwaysTree.h with 99% similarity]
lib/Airways/AirwaysLib/airwaysTreeTypeDefinition.h [moved from appli/TempAirwaysAppli/AirwaysLib/airwaysTreeTypeDefinition.h with 100% similarity]
lib/Airways/CMakeLists.txt [new file with mode: 0644]
lib/Airways/MathLib/CMakeLists.txt [moved from appli/TempAirwaysAppli/MathLib/CMakeLists.txt with 58% similarity]
lib/Airways/MathLib/Quaternion.cpp [moved from appli/TempAirwaysAppli/MathLib/Quaternion.cpp with 100% similarity]
lib/Airways/MathLib/Quaternion.h [moved from appli/TempAirwaysAppli/MathLib/Quaternion.h with 97% similarity]
lib/Airways/MathLib/vec3.cxx [moved from appli/TempAirwaysAppli/MathLib/vec3.cxx with 100% similarity]
lib/Airways/MathLib/vec3.h [moved from appli/TempAirwaysAppli/MathLib/vec3.h with 98% similarity]
lib/Airways/fpa2Airways/Converter.h [new file with mode: 0644]
lib/CMakeLists.txt
lib/fpa/Base/ExtractEndPointsAndBifurcationsFromMinimumSpanningTree.hxx
lib/fpa/Base/ImageSkeleton.hxx
lib/fpa/Image/ExtractEndPointsAndBifurcationsFromMinimumSpanningTree.hxx

index d9ec0266198e17ebd3473484f844b541288b136c..0e315a1b588976da4ace107ecf35953162f509fb 100644 (file)
@@ -1,9 +1,3 @@
-#IF(BUILD_EXAMPLES)
-#SUBDIRS(
-#examples
-## fpaLab
-#)
-#ENDIF(BUILD_EXAMPLES)
 
 IF(BUILD_TempAirwaysAppli)
   SUBDIRS(
index 4b80e61969eb044e4dbabac9123cb3cdefa47304..b038389ec7188ea9e79eaa0c76229bc2ac6e911b 100644 (file)
@@ -3,18 +3,16 @@
 FIND_PACKAGE(Boost REQUIRED system filesystem program_options)
 INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
 
-SUBDIRS(
-  MathLib
-  AirwaysLib
-  )
 INCLUDE_DIRECTORIES(
-  MathLib
-  AirwaysLib
+  ${PROJECT_SOURCE_DIR}/lib/Airways/MathLib
+  ${PROJECT_SOURCE_DIR}/lib/Airways/AirwaysLib
+  ${PROJECT_BINARY_DIR}/lib/Airways/MathLib
+  ${PROJECT_BINARY_DIR}/lib/Airways/AirwaysLib
   )
 ADD_EXECUTABLE(TempAirwaysAppli TempAirwaysAppli.cxx)
 TARGET_LINK_LIBRARIES(
   TempAirwaysAppli
-  ${Boost_LIBRARIES} MathLib AirwaysLib
+  ${Boost_LIBRARIES} TempAirwaysAppli_AirwaysLib
   cpPlugins
   ${fpa_LIBRARIES}
   )
index 1bb55735d144ab6ce9bbc7155f41c7ab3180d083..9e3692d23b6d5548a0c48983ca68555725f29074 100644 (file)
@@ -464,6 +464,7 @@ void DrawVTKLinesFromTree(AirwaysTree& tree, const std::string filepath, bool co
 #include <fpa/Image/MinimumSpanningTree.h>
 #include <cpExtensions/DataStructures/ImageIndexesContainer.h>
 #include <itkImage.h>
+#include <queue>
 
 template< class TImage, class TVertex >
 Node* FAVertexToNode( TVertex vertex, TImage* image )
@@ -498,33 +499,62 @@ AirwaysTree& ConvertFilterToAirwaysTree( TInputImage* input_image, cpPlugins::Wo
   auto distance_map =
     ws.GetFilter( "dmap" )->GetOutputData( "Output" )->
     GetITK< itk::Image< float, 3 > >( );
-  auto branches =
+  auto sk =
     w_filter->GetOutputData( "Skeleton" )->GetITK< TFASkeleton >( );
-  auto sIt = branches->Get( ).begin( );
-  for( ; sIt!=branches->Get( ).end( ); ++sIt )
+  const auto& branches = sk->Get( );
+  auto seed0 =
+    ws.GetFilter( "seed" )->GetOutputData( "Output" )->
+    GetITK< TVerticesFA >( )->Get( )[ 0 ];
+
+  std::queue< TVertexFA > q;
+  // TODO: std::set< TVertexFA, TVertexCompareFA > marks;
+  q.push( seed0 );
+  while( !q.empty( ) )
   {
-    auto srcIt = vertexMap.find( sIt->first );
+    auto sVertex = q.front( );
+    q.pop( );
+    auto sIt = branches.find( sVertex );
+    /* TODO
+       if( marks.find( sVertex ) != marks.end( ) )
+       {
+       std::cout << "MARK!!!!! : " << sVertex << std::endl;
+       }
+       marks.insert( sVertex );
+    */
+
+    // End node... do nothing
+    if( sIt == branches.end( ) )
+      continue;
+
+    // Create source node
+    auto srcIt = vertexMap.find( sVertex );
     if( srcIt == vertexMap.end( ) )
       srcIt = vertexMap.insert(
         VertexMap::value_type(
-          sIt->first, FAVertexToNode( sIt->first, input_image )
+          sVertex, FAVertexToNode( sVertex, input_image )
           )
         ).first;
-    auto eIt = sIt->second.begin( );
-    for( ; eIt != sIt->second.end( ); ++eIt )
+
+    // TODO: std::cout << sVertex << " " << " " << sLevel << " " << seed0 << std::endl;
+    // Create destination nodes
+    for( auto eIt = sIt->second.begin( ); eIt != sIt->second.end( ); ++eIt )
     {
       auto dstIt = vertexMap.find( eIt->first );
-      if( dstIt != vertexMap.end( ) )
-        continue;
-      dstIt = vertexMap.insert(
-        VertexMap::value_type(
-          eIt->first, FAVertexToNode( eIt->first, input_image )
-          )
-        ).first;
-
+      if( dstIt == vertexMap.end( ) )
+        dstIt = vertexMap.insert(
+          VertexMap::value_type(
+            eIt->first, FAVertexToNode( eIt->first, input_image )
+            )
+          ).first;
+
+      // Connect in the acyclic graph
       dstIt->second->SetFather( srcIt->second );
       srcIt->second->AddChild( dstIt->second );
+
+      // Create detailed edge
       TEdgeAirways* edge = new Edge( );
+      edge->SetSource( srcIt->second );
+      edge->SetTarget( dstIt->second );
       auto path = eIt->second->GetVertexList( );
       for( unsigned int pIt = 0; pIt < path->Size( ); ++pIt )
       {
@@ -539,12 +569,16 @@ AirwaysTree& ConvertFilterToAirwaysTree( TInputImage* input_image, cpPlugins::Wo
 
       } // rof
 
+      // Finish association
+      dstIt->second->SetEdge( edge );
+
+      // Put it as next candidate
+      q.push( eIt->first );
+
     } // rof
 
-  } // rof
-  auto seed0 =
-    ws.GetFilter( "seed" )->GetOutputData( "Output" )->
-    GetITK< TVerticesFA >( )->Get( )[ 0 ];
+  } // elihw
+
   AirwaysTree* tree =
     new AirwaysTree( input_image, NULL, vertexMap[ seed0 ], false );
   std::time(&end);
similarity index 50%
rename from appli/TempAirwaysAppli/AirwaysLib/CMakeLists.txt
rename to lib/Airways/AirwaysLib/CMakeLists.txt
index 2c05400221c884c639ba198d3f64bf1d791b48e0..712dc2561db49f09bb3b0cee2c0997b8faa67721 100644 (file)
@@ -2,25 +2,23 @@
 ## = Set names and directories =
 ## =============================
 
-SET(lib_NAME AirwaysLib)
+SET(lib_NAME TempAirwaysAppli_AirwaysLib)
 
 INCLUDE_DIRECTORIES(
-  ${PROJECT_SOURCE_DIR}/appli/TempAirwaysAppli/MathLib
-  ${PROJECT_SOURCE_DIR}/appli/TempAirwaysAppli/AirwaysLib
-  ${PROJECT_BINARY_DIR}/appli/TempAirwaysAppli/MathLib
-  ${PROJECT_BINARY_DIR}/appli/TempAirwaysAppli/AirwaysLib
+  ${CMAKE_CURRENT_SOURCE_DIR}/../MathLib
+  ${CMAKE_CURRENT_BINARY_DIR}/../MathLib
   )
 
 ## ===============
 ## = Source code =
 ## ===============
 
-FILE(GLOB lib_HEADERS_H   "*.h")
-FILE(GLOB lib_HEADERS_HPP "*.hpp")
-FILE(GLOB lib_HEADERS_HXX "*.hxx")
-FILE(GLOB lib_SOURCES_C   "*.c")
-FILE(GLOB lib_SOURCES_CPP "*.cpp")
-FILE(GLOB lib_SOURCES_CXX "*.cxx")
+FILE(GLOB lib_HEADERS_H   "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+FILE(GLOB lib_HEADERS_HPP "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp")
+FILE(GLOB lib_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
+FILE(GLOB lib_SOURCES_C   "${CMAKE_CURRENT_SOURCE_DIR}/*.c")
+FILE(GLOB lib_SOURCES_CPP "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
+FILE(GLOB lib_SOURCES_CXX "${CMAKE_CURRENT_SOURCE_DIR}/*.cxx")
 
 ## =====================
 ## = Compilation rules =
@@ -40,6 +38,6 @@ GENERATE_EXPORT_HEADER(
   EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/${lib_NAME}_Export.h
   STATIC_DEFINE ${lib_NAME}_BUILT_AS_STATIC
   )
-TARGET_LINK_LIBRARIES(${lib_NAME} MathLib ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+TARGET_LINK_LIBRARIES(${lib_NAME} TempAirwaysAppli_MathLib ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 ## eof - $RCSfile$
similarity index 98%
rename from appli/TempAirwaysAppli/AirwaysLib/airwaysEdge.h
rename to lib/Airways/AirwaysLib/airwaysEdge.h
index fe7adf126f21b87f96e38e412d8522a7ff540e81..8157793ac2d4337ac18612f987724eb8250f37c5 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "airwaysNode.h"
 #include "Quaternion.h"
-#include <appli/TempAirwaysAppli/AirwaysLib/AirwaysLib_Export.h>
+#include <Airways/AirwaysLib/TempAirwaysAppli_AirwaysLib_Export.h>
 
 /**
  * @brief Airways project namespace
@@ -43,7 +43,7 @@ class Node;
  * This means that the edge source corresponds to the father and the target to the child. This implies that the root
  * node has a NULL edge.
  */
-class AirwaysLib_EXPORT Edge
+class TempAirwaysAppli_AirwaysLib_EXPORT Edge
 {
 public:
        /*!
similarity index 99%
rename from appli/TempAirwaysAppli/AirwaysLib/airwaysNode.h
rename to lib/Airways/AirwaysLib/airwaysNode.h
index f002038dcaef778ffd9537ede8cdf052af0e2e1a..cdffe311a1775a50102a2490ebdce4cb63abc7bd 100644 (file)
@@ -16,7 +16,7 @@
 #include "../MathLib/vec3.h"
 #include "airwaysEdge.h"
 #include "Quaternion.h"
-#include <appli/TempAirwaysAppli/AirwaysLib/AirwaysLib_Export.h>
+#include <Airways/AirwaysLib/TempAirwaysAppli_AirwaysLib_Export.h>
 
 // Namespaces
 using namespace std;
@@ -30,7 +30,7 @@ class Edge;
 /*
  * This class represents a node in a tree.
  */
-class AirwaysLib_EXPORT Node
+class TempAirwaysAppli_AirwaysLib_EXPORT Node
 {
 
 public:
similarity index 99%
rename from appli/TempAirwaysAppli/AirwaysLib/airwaysTree.h
rename to lib/Airways/AirwaysLib/airwaysTree.h
index 0134708ee5c16d1362c202316ba79d4eec6219b6..9b9775dad2627fbd35f76083cbf5d5589fdfe35f 100644 (file)
@@ -28,7 +28,7 @@
 #include "itkImageRegionIterator.h"
 #include "itkLineIterator.h"
 #include <itkImageFileWriter.h>
-#include <appli/TempAirwaysAppli/AirwaysLib/AirwaysLib_Export.h>
+#include <Airways/AirwaysLib/TempAirwaysAppli_AirwaysLib_Export.h>
 
 namespace airways
 {
@@ -59,7 +59,7 @@ typedef std::vector<Pair_PairNodes_Score> Vector_Pair_PairNodes_Score;
  */
 typedef std::vector<pair_posVox_rad> vec_pair_posVox_rad;
 
-class AirwaysLib_EXPORT AirwaysTree
+class TempAirwaysAppli_AirwaysLib_EXPORT AirwaysTree
 {
 public:
 
diff --git a/lib/Airways/CMakeLists.txt b/lib/Airways/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b609a0d
--- /dev/null
@@ -0,0 +1,6 @@
+SUBDIRS(
+  MathLib
+  AirwaysLib
+  )
+
+## eof - $RCSfile$
similarity index 58%
rename from appli/TempAirwaysAppli/MathLib/CMakeLists.txt
rename to lib/Airways/MathLib/CMakeLists.txt
index 6812792c1e0aea508082c401698bd2ccbfc57bbc..cc436e0c07c1e77d83ad3f779a36cad321af8c75 100644 (file)
@@ -2,18 +2,18 @@
 ## = Set names and directories =
 ## =============================
 
-SET(lib_NAME MathLib)
+SET(lib_NAME TempAirwaysAppli_MathLib)
 
 ## ===============
 ## = Source code =
 ## ===============
 
-FILE(GLOB lib_HEADERS_H   "*.h")
-FILE(GLOB lib_HEADERS_HPP "*.hpp")
-FILE(GLOB lib_HEADERS_HXX "*.hxx")
-FILE(GLOB lib_SOURCES_C   "*.c")
-FILE(GLOB lib_SOURCES_CPP "*.cpp")
-FILE(GLOB lib_SOURCES_CXX "*.cxx")
+FILE(GLOB lib_HEADERS_H   "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+FILE(GLOB lib_HEADERS_HPP "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp")
+FILE(GLOB lib_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
+FILE(GLOB lib_SOURCES_C   "${CMAKE_CURRENT_SOURCE_DIR}/*.c")
+FILE(GLOB lib_SOURCES_CPP "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
+FILE(GLOB lib_SOURCES_CXX "${CMAKE_CURRENT_SOURCE_DIR}/*.cxx")
 
 ## =====================
 ## = Compilation rules =
@@ -33,6 +33,5 @@ GENERATE_EXPORT_HEADER(
   EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/${lib_NAME}_Export.h
   STATIC_DEFINE ${lib_NAME}_BUILT_AS_STATIC
   )
-##TARGET_LINK_LIBRARIES(${lib_NAME})
 
 ## eof - $RCSfile$
similarity index 97%
rename from appli/TempAirwaysAppli/MathLib/Quaternion.h
rename to lib/Airways/MathLib/Quaternion.h
index ba02e860f003df128bf59f1dd714faf09139db41..9cef552556f7723a72fae136a47766c150afaa95 100644 (file)
@@ -15,7 +15,7 @@
 //-----------------
 // OWN
 //-----------------
-#include <appli/TempAirwaysAppli/MathLib/MathLib_Export.h>
+#include <Airways/MathLib/TempAirwaysAppli_MathLib_Export.h>
 #include "vec3.h"
 
 // Namespaces
@@ -24,7 +24,7 @@ using namespace std;
 //------------------------------------------------------------------------------
 // Class that represents a Quaterion with all its operations
 //------------------------------------------------------------------------------
-class MathLib_EXPORT Quaternion
+class TempAirwaysAppli_MathLib_EXPORT Quaternion
 {
 public:
 
similarity index 98%
rename from appli/TempAirwaysAppli/MathLib/vec3.h
rename to lib/Airways/MathLib/vec3.h
index 22f9ee348a92bfee195d63d695712ac7ea478612..6adbe42e942d25044f4e010045641e81a7a4163d 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef VEC3_H
 #define VEC3_H
 
-#include <appli/TempAirwaysAppli/MathLib/MathLib_Export.h>
+#include <Airways/MathLib/TempAirwaysAppli_MathLib_Export.h>
 #include <cmath>
 #include <iostream>
 #include <limits>       // std::numeric_limits
@@ -16,7 +16,7 @@
 /**
  * @brief The Vec3 class that represents a vector in 3D
  */
-class MathLib_EXPORT Vec3
+class TempAirwaysAppli_MathLib_EXPORT Vec3
 {
 private:
        float x, y, z; //!< Coordinates
diff --git a/lib/Airways/fpa2Airways/Converter.h b/lib/Airways/fpa2Airways/Converter.h
new file mode 100644 (file)
index 0000000..da2f214
--- /dev/null
@@ -0,0 +1,43 @@
+#ifndef __FPA2AIRWAYS__CONVERTER__H__
+#define __FPA2AIRWAYS__CONVERTER__H__
+
+#include <itkProcessObject.h>
+#include <itkSimpleDataObjectDecorator.h>
+
+namespace fpa2Airways
+{
+  /**
+   */
+  template< class _TSkeleton, class _TAirways >
+  class Converter
+    : public itk::ProcessObject
+  {
+  public:
+    itkNewMacro( Self );
+    itkTypeMacro( Converter, itk::ProcessObject );
+
+  public:
+    SetInput( TSkeleton );
+    TAirways GetOutput( );
+
+  protected:
+    Converter( );
+    virtual ~Converter( );
+
+    virtual void GenerateData( ) ITK_OVERRIDE;
+
+  private:
+    // Purposely not implemented.
+    Converter( const Self& );
+    Self& operator=( const Self& );
+  };
+
+} // ecapseman
+
+#ifndef ITK_MANUAL_INSTANTIATION 
+#include <fpa2Airways/Converter.hxx> 
+#endif // ITK_MANUAL_INSTANTIATION 
+
+#endif // __FPA2AIRWAYS__CONVERTER__H__
+
+// eof - $RCSfile$
index a49797830c0c18f6523195d911ef13a3f7097609..0afa2df52490a8686b810ce268d76ed1aa16f982 100644 (file)
@@ -1,3 +1,8 @@
+IF(BUILD_TempAirwaysAppli)
+  SUBDIRS(
+    Airways
+    )
+ENDIF(BUILD_TempAirwaysAppli)
 IF(BUILD_PLUGINS)
   SUBDIRS(
     fpa_Instances
index afb5252f43c693f5e08644a9213dc3634ad38369..82debb4f0c139a90f8e368a9342d2387e92c20bf 100644 (file)
@@ -120,7 +120,7 @@ GenerateData( )
     auto vertex = qIt->second;
 
     // 2.1. Check if the vertex has already been visited
-    if( this->_Mark( vertex ) > 0 )
+    if( this->_Mark( vertex ) > 0 || this->_SkeletonMark( vertex ) > 0 )
       continue;
 
     // 2.2. Get path from front seed
@@ -144,8 +144,8 @@ GenerateData( )
         bifurcations->Get( ).push_back( *pIt );
 
         // Reorder labels
-        auto coll_branch = this->m_Branches[ mark ];
-        this->m_Branches[ mark  ] = _TBranch( coll_branch.first, *pIt );
+        auto coll_branch = this->m_Branches[ mark - 1 ];
+        this->m_Branches[ mark - 1 ] = _TBranch( coll_branch.first, *pIt );
         this->m_Branches[ label - 1 ] = _TBranch( qIt->second, *pIt );
         this->m_Branches.push_back( _TBranch( *pIt, coll_branch.second ) );
 
@@ -157,6 +157,8 @@ GenerateData( )
           pIt++;
 
         } // elihw
+        if( pIt != path.end( ) )
+          this->_MarkSkeleton( *pIt, label );
 
         // Force inner loop termination
         pIt = path.end( );
@@ -198,6 +200,18 @@ GenerateData( )
 
   } // rof
 
+  // Remove illegal branches
+  auto dIt = this->m_Branches.begin( );
+  while( dIt != this->m_Branches.end( ) )
+  {
+    if( dIt->first == dIt->second )
+      dIt = this->m_Branches.erase( dIt );
+    else
+      dIt++;
+    
+  } // fi
+
+  // Finish
   endpoints->SetReferenceImage( mst );
   bifurcations->SetReferenceImage( mst );
   collisions->SetReferenceImage( mst );
index 96257958d259d52dadf6c20b44bc6af0d4ea72e9..747d9ded94f46ec1782dade17403340b58b3e5fb 100644 (file)
@@ -11,9 +11,9 @@ AddBranch( const TVertex& a, const TVertex& b )
 
   // Check if the branch already exists
   bool found = false;
-  auto arIt = this->Get( ).find( a );
-  if( arIt != this->Get( ).end( ) )
-    found = ( arIt->second.find( b ) != arIt->second.end( ) );
+  auto aIt = this->Get( ).find( a );
+  if( aIt != this->Get( ).end( ) )
+    found = ( aIt->second.find( b ) != aIt->second.end( ) );
   if( found )
     return;
 
@@ -25,8 +25,24 @@ AddBranch( const TVertex& a, const TVertex& b )
 
   // Assign path vertices
   path->SetReferenceImage( this->m_MinimumSpanningTree );
-  this->Get( )[ a ][ b ] = path;
-  this->Modified( );
+
+  typedef typename TSkeleton::value_type _T1;
+  typedef typename TSkeletonRow::value_type _T2;
+
+  TSkeleton& sk = this->Get( );
+  auto sIt = sk.find( a );
+  if( sIt == sk.end( ) )
+  {
+    sIt = sk.insert( _T1( a, TSkeletonRow( ) ) ).first;
+    this->Modified( );
+
+  } // fi
+  if( sIt->second.find( b ) == sIt->second.end( ) )
+  {
+    sIt->second.insert( _T2( b, path ) );
+    this->Modified( );
+
+  } // fi
 }
 
 // -------------------------------------------------------------------------
index a089fedb84b2258ad8d611aef9b0bc4386a67dba..789d392f6a65634e186ca372921404559c31bc6b 100644 (file)
@@ -188,9 +188,11 @@ _MarkSphere(
   {
     typename _TImage::PointType pnt;
     this->m_MarkImage->TransformIndexToPhysicalPoint( spIt.GetIndex( ), pnt );
-    if( double( pnt.EuclideanDistanceTo( c ) ) <= rr || all )
+    /*
+      if( double( pnt.EuclideanDistanceTo( c ) ) <= rr || all )
       if( spIt.Get( ) == 0 )
-        spIt.Set( l );
+    */
+    spIt.Set( l );
 
   } // rof
 }