Skip to content

Commit

Permalink
Depends on PR to dgtal
Browse files Browse the repository at this point in the history
Remove NoObject from VoxelComplex

DGtal-team/DGtal#1369
  • Loading branch information
phcerdan committed Jan 7, 2019
1 parent bf4b7c2 commit 7883bcb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ find_package(Boost COMPONENTS
graph
REQUIRED)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
find_package(DGtal REQUIRED)
# Requires version with this PR in: https://github.com/DGtal-team/DGtal/pull/1369
# Merged in DGtal 1.0.beta
find_package(DGtal REQUIRED 1.0)
include_directories(SYSTEM ${DGTAL_INCLUDE_DIRS})
find_package(ITK REQUIRED COMPONENTS
ITKCommon
Expand Down
8 changes: 4 additions & 4 deletions cpp-scripts/thin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <DGtal/topology/CubicalComplexFunctions.h>
#include "DGtal/topology/KhalimskyCellHashFunctions.h"

#include <DGtal/topology/VoxelComplexNoObject.h>
#include <DGtal/topology/VoxelComplexNoObjectFunctions.h>
#include <DGtal/topology/VoxelComplex.h>
#include <DGtal/topology/VoxelComplexFunctions.h>
#include "DGtal/topology/NeighborhoodConfigurations.h"
#include "DGtal/topology/tables/NeighborhoodTables.h"
// ITKWriter
Expand Down Expand Up @@ -208,13 +208,13 @@ int main(int argc, char* const argv[]){
Image image(handle_out);


// Create a VoxelComplexNoObject from the set
// Create a VoxelComplex from the set
using DigitalTopology = DT26_6;
using DigitalSet = // DGtal::Z3i::DigitalSet;
DGtal::DigitalSetByAssociativeContainer<Domain ,
std::unordered_set< typename Domain::Point> >;
using ComplexMap = std::unordered_map<KSpace::Cell, DGtal::CubicalCellData>;
using Complex = DGtal::VoxelComplexNoObject<KSpace, ComplexMap>;
using Complex = DGtal::VoxelComplex<KSpace, ComplexMap>;

auto & sk = sk_string;
KSpace ks;
Expand Down

0 comments on commit 7883bcb

Please sign in to comment.