qiicr / pettumorsegmentation Goto Github PK
View Code? Open in Web Editor NEW3D Slicer Extension for PETTumorSegmentation
License: Other
3D Slicer Extension for PETTumorSegmentation
License: Other
Building against Slicer r24904 on Ubuntu 15.10 using g++ 5.2.1 returns the following
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx: In member function ‘itk::Image<short int, 3u>::Pointer vtkSlicerPETTumorSegmentationLogic::ConvertLabelImageToITK(vtkMRMLPETTumorSegmentationParametersNode*, vtkImageData*)’:
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:189:119: warning: narrowing conversion of ‘-(* vtkLabelVolume->vtkMRMLScalarVolumeNode::<anonymous>.vtkMRMLVolumeNode::GetOrigin())’ from ‘double’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
float origin2[3] = {-vtkLabelVolume->GetOrigin()[0], -vtkLabelVolume->GetOrigin()[1], vtkLabelVolume->GetOrigin()[2]};
^
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:189:119: warning: narrowing conversion of ‘-(*(vtkLabelVolume->vtkMRMLScalarVolumeNode::<anonymous>.vtkMRMLVolumeNode::GetOrigin() + 8u))’ from ‘double’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:189:118: warning: narrowing conversion of ‘*(vtkLabelVolume->vtkMRMLScalarVolumeNode::<anonymous>.vtkMRMLVolumeNode::GetOrigin() + 16u)’ from ‘double’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
float origin2[3] = {-vtkLabelVolume->GetOrigin()[0], -vtkLabelVolume->GetOrigin()[1], vtkLabelVolume->GetOrigin()[2]};
^
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx: In member function ‘itk::Image<float, 3u>::Pointer vtkSlicerPETTumorSegmentationLogic::GetPETVolume(vtkMRMLPETTumorSegmentationParametersNode*)’:
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:1765:113: warning: narrowing conversion of ‘-(* vtkPetVolume->vtkMRMLScalarVolumeNode::<anonymous>.vtkMRMLVolumeNode::GetOrigin())’ from ‘double’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
float origin2[3] = {-vtkPetVolume->GetOrigin()[0], -vtkPetVolume->GetOrigin()[1], vtkPetVolume->GetOrigin()[2]};
^
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:1765:113: warning: narrowing conversion of ‘-(*(vtkPetVolume->vtkMRMLScalarVolumeNode::<anonymous>.vtkMRMLVolumeNode::GetOrigin() + 8u))’ from ‘double’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:1765:112: warning: narrowing conversion of ‘*(vtkPetVolume->vtkMRMLScalarVolumeNode::<anonymous>.vtkMRMLVolumeNode::GetOrigin() + 16u)’ from ‘double’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
float origin2[3] = {-vtkPetVolume->GetOrigin()[0], -vtkPetVolume->GetOrigin()[1], vtkPetVolume->GetOrigin()[2]};
^
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx: In instantiation of ‘typename ITKImageType::Pointer vtkSlicerPETTumorSegmentationLogic::convert2ITK(vtkSmartPointer<vtkImageData>) [with ITKImageType = itk::Image<short int, 3u>; typename ITKImageType::Pointer = itk::SmartPointer<itk::Image<short int, 3u> >]’:
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:187:85: required from here
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:1583:103: warning: narrowing conversion of ‘-(&(& itkVolume.itk::SmartPointer<TObjectType>::operator-><itk::Image<short int, 3u> >()->itk::Image<short int, 3u>::<anonymous>)->itk::ImageBase<VImageDimension>::GetOrigin<3u>())->itk::Point<double, 3u>::<anonymous>.itk::FixedArray<TValue, VLength>::operator[]<double, 3u>(0)’ from ‘itk::FixedArray<double, 3u>::ValueType {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
float origin[3] = {-itkVolume->GetOrigin()[0], -itkVolume->GetOrigin()[1], itkVolume->GetOrigin()[2]};
^
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:1583:103: warning: narrowing conversion of ‘-(&(& itkVolume.itk::SmartPointer<TObjectType>::operator-><itk::Image<short int, 3u> >()->itk::Image<short int, 3u>::<anonymous>)->itk::ImageBase<VImageDimension>::GetOrigin<3u>())->itk::Point<double, 3u>::<anonymous>.itk::FixedArray<TValue, VLength>::operator[]<double, 3u>(1)’ from ‘itk::FixedArray<double, 3u>::ValueType {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:1583:103: warning: narrowing conversion of ‘(itk::FixedArray<double, 3u>::ValueType)(&(& itkVolume.itk::SmartPointer<TObjectType>::operator-><itk::Image<short int, 3u> >()->itk::Image<short int, 3u>::<anonymous>)->itk::ImageBase<VImageDimension>::GetOrigin<3u>())->itk::Point<double, 3u>::<anonymous>.itk::FixedArray<TValue, VLength>::operator[]<double, 3u>(2)’ from ‘itk::FixedArray<double, 3u>::ValueType {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx: In instantiation of ‘typename ITKImageType::Pointer vtkSlicerPETTumorSegmentationLogic::convert2ITK(vtkSmartPointer<vtkImageData>) [with ITKImageType = itk::Image<float, 3u>; typename ITKImageType::Pointer = itk::SmartPointer<itk::Image<float, 3u> >]’:
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:1763:74: required from here
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:1583:103: warning: narrowing conversion of ‘-(&(& itkVolume.itk::SmartPointer<TObjectType>::operator-><itk::Image<float, 3u> >()->itk::Image<float, 3u>::<anonymous>)->itk::ImageBase<VImageDimension>::GetOrigin<3u>())->itk::Point<double, 3u>::<anonymous>.itk::FixedArray<TValue, VLength>::operator[]<double, 3u>(0)’ from ‘itk::FixedArray<double, 3u>::ValueType {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:1583:103: warning: narrowing conversion of ‘-(&(& itkVolume.itk::SmartPointer<TObjectType>::operator-><itk::Image<float, 3u> >()->itk::Image<float, 3u>::<anonymous>)->itk::ImageBase<VImageDimension>::GetOrigin<3u>())->itk::Point<double, 3u>::<anonymous>.itk::FixedArray<TValue, VLength>::operator[]<double, 3u>(1)’ from ‘itk::FixedArray<double, 3u>::ValueType {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/home/jcfr/Projects/PETTumorSegmentation/PETTumorSegmentation/Logic/vtkSlicerPETTumorSegmentationLogic.cxx:1583:103: warning: narrowing conversion of ‘(itk::FixedArray<double, 3u>::ValueType)(&(& itkVolume.itk::SmartPointer<TObjectType>::operator-><itk::Image<float, 3u> >()->itk::Image<float, 3u>::<anonymous>)->itk::ImageBase<VImageDimension>::GetOrigin<3u>())->itk::Point<double, 3u>::<anonymous>.itk::FixedArray<TValue, VLength>::operator[]<double, 3u>(2)’ from ‘itk::FixedArray<double, 3u>::ValueType {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
When I click in a tumour the extension is not creating segments
When this effect is used in the embedded EditorWidget of LongitudinalPETCT the undo/redo functionality is not working correctly.
One issue that the code accesses the Editor module widget which may not exist if the Editor module has not been entered, and in any case the variable would not be associated with the buttons in the embedded widget.
Since the effect tool is passed in the Editor's instance of the UndoRedo class it should be possible to implement the save and restore state functionality without accessing the widget.
Recently I read many Prof. Milan Sonka's papers and I am really interested in LOGISMOS.
But I did not find the source of LOGISMOS.
I wonder if I can reproduce LOGISMOS according to this code
My English is not very good, please forgive me if I speak stiffly
I can't find this plugin in 3dslicer 4.10.1 according to the tutorial in Wikipedia. Was it deleted?
There is no cursor visible after using this effect
There appear to be build errors on mac
To streamline the development, I suggest to create a branch based of 0e45ef9 and then update https://github.com/Slicer/ExtensionsIndex/blob/4.10/PETTumorSegmentation.s4ext to reference master-4.10
.
Doing so will allow to fix build issue associated with the transition to ITKv5 and avoid to manage complex #if/#else
.
http://slicer.cdash.org/buildSummary.php?buildid=1184598
make[5]: *** No rule to make target `/home/kitware/Dashboards/Nightly/Slicer-0-build/Slicer-build/lib/Slicer-4.9/qt-loadable-modules/libvtkSlicerSegmentationsModuleLogic.so',
needed by `lib/Slicer-4.9/qt-loadable-modules/libvtkSlicerPETTumorSegmentationModuleMRML.so'. Stop.
cc: @cpinter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.