GithubHelp home page GithubHelp logo

carreraslice's Introduction

Grow cut, level set integration for interactive segmentation. Ivan Kolesov, LiangJia Zhu, Yi Gao, Peter Karasev. 

December 2013

carreraslice's People

Contributors

jcfr avatar ljzhu avatar ikolesov avatar lassoan avatar

Watchers

James Cloos avatar Yi Gao avatar  avatar  avatar

carreraslice's Issues

Fix build error on windows

D:\D\N\S-1-E-b\CarreraSlice\src\sfm_local_chanvese\src\lsops3c.cpp(294): error C2039: 'max' : is not a member of 'std' [D:\D\N\S-1-E-b\CarreraSlice-build\src\sfm_local_chanvese\sfm_local_chanvese.vcxproj]

NameError: global name 'mainWindow' is not defined

Traceback (most recent call last):
  File "/home/jcfr/.config/NA-MIC/Extensions-24305/CarreraSlice/lib/Slicer-4.4/qt-scripted-modules/CarreraSliceEffect.py", line 175, in onStartBot
    KSliceBot(self)
  File "/home/jcfr/.config/NA-MIC/Extensions-24305/CarreraSlice/lib/Slicer-4.4/qt-scripted-modules/CarreraSliceEffect.py", line 221, in __init__
    self.start()
  File "/home/jcfr/.config/NA-MIC/Extensions-24305/CarreraSlice/lib/Slicer-4.4/qt-scripted-modules/CarreraSliceEffect.py", line 225, in start
    self.logic = KSliceEffectLogic( self.redSliceWidget.sliceLogic() )
  File "/home/jcfr/.config/NA-MIC/Extensions-24305/CarreraSlice/lib/Slicer-4.4/qt-scripted-modules/CarreraSliceEffect.py", line 366, in __init__
    self.init_fGrwoCut()
  File "/home/jcfr/.config/NA-MIC/Extensions-24305/CarreraSlice/lib/Slicer-4.4/qt-scripted-modules/CarreraSliceEffect.py", line 426, in init_fGrwoCut
    s = qt.QShortcut(keydef[0], mainWindow()) # connect this qt event to mainWindow focus
NameError: global name 'mainWindow' is not defined

Clang does not support openmp

@ikolesov

The clang compilers (Mac 10.9) do not support openmp.

This little patch allows building.

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9a85074..f9f017a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -14,10 +14,10 @@ set(KSLICE_VERSION_MAJOR "1")
set(KSLICE_VERSION_MINOR "0")
set(KSLICE_VERSION ${KSLICE_VERSION_MAJOR}.${KSLICE_VERSION_MINOR})
set(EXTENSION_STATUS "Beta")
-set(EXTENSION_DEPENDS "NA")
+set(EXTENSION_DEPENDS "NA")
set(EXTENSION_SCREENSHOTURLS "http://www.slicer.org/slicerWiki/images/thumb/2/2c/DrawLabel.png/500px-DrawLabel.png http://www.na-mic.org/Wiki/images/thumb/d/d0/TendonSegment.png/800px-TendonSegment.png http://www.na-mic.org/Wiki/images

"boost") # Specified as a space separated list or 'NA' if any

-#set(EXTENSION_BUILD_SUBDIRECTORY
+#set(EXTENSION_BUILD_SUBDIRECTORY

set(MIDAS_PACKAGE_URL http://slicer.kitware.com/midas3)
set(MIDAS_PACKAGE_EMAIL [email protected])
@@ -66,8 +66,8 @@ else(WIN32)
set(CMAKE_C_FLAGS "-fPIC -g3 -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS -Wl,--no-undefined -fopenmp" CACHE STRING "compiler flags always used" FORCE)
set(CMAKE_CXX_FLAGS "-fPIC -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS -Wl,--no-undefined -fopenmp" CACHE STRING "compiler flags always used" FORCE)
else(LINUX)

  • set(CMAKE_C_FLAGS "-fPIC -g3 -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS -fopenmp" CACHE STRING "compiler flags always used" FORCE)
  • set(CMAKE_CXX_FLAGS "-fPIC -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS -fopenmp" CACHE STRING "compiler flags always used" FORCE)
  • set(CMAKE_C_FLAGS "-fPIC -g3 -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS " CACHE STRING "compiler flags always used" FORCE)
  • set(CMAKE_CXX_FLAGS "-fPIC -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS " CACHE STRING "compiler flags always used" FORCE)
    endif(LINUX)
    set(CMAKE_CXX_FLAGS_DEBUG "-g3 " CACHE STRING "extra compiler flags for debug" FORCE )
    endif(WIN32)
    diff --git a/src/fastGrowCut/CMakeLists.txt b/src/fastGrowCut/CMakeLists.txt
    index b3e0b67..32740c0 100644
    --- a/src/fastGrowCut/CMakeLists.txt
    +++ b/src/fastGrowCut/CMakeLists.txt
    @@ -16,8 +16,8 @@ else(WIN32)
    set(CMAKE_C_FLAGS "-fPIC -g3 -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS -Wl,--no-undefined -fopenmp" CACHE STRING "compiler flags always used" FORCE)
    set(CMAKE_CXX_FLAGS "-fPIC -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS -Wl,--no-undefined -fopenmp" CACHE STRING "compiler flags always used" FORCE)
    else(LINUX)
  • set(CMAKE_C_FLAGS "-fPIC -g3 -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS -fopenmp" CACHE STRING "compiler flags always used" FORCE)
  • set(CMAKE_CXX_FLAGS "-fPIC -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS -fopenmp" CACHE STRING "compiler flags always used" FORCE)
  • set(CMAKE_C_FLAGS "-fPIC -g3 -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS " CACHE STRING "compiler flags always used" FORCE)
  • set(CMAKE_CXX_FLAGS "-fPIC -Wall -pipe -DVTK_EXCLUDE_STRSTREAM_HEADERS " CACHE STRING "compiler flags always used" FORCE)
    endif(LINUX)
    set(CMAKE_CXX_FLAGS_DEBUG "-g3 " CACHE STRING "extra compiler flags for debug" FORCE )
    endif(WIN32)

Remove dependency on deprecated Slicer core modules

We are planning to remove Slicer core modules that have been superseded by other modules.
https://discourse.slicer.org/t/removing-legacy-modules-in-slicer5/11371

We have noticed that this extension currently uses legacy editor module, instead of the current Segment Editor module.

If you want your extension to be available for the upcoming Slicer5 release, please remove dependency to deprecated modules. If you have any questions or need any help with the upgrade, you can write here or post to the Slicer forum. Thank you for your contribution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.