Comments (10)
Are we intending to replace it in all the other files where it's mentioned?
./documentation/STIR-developers-overview.tex
./documentation/release_2001_01_12.htm
./src/recon_buildblock/BackProjectorByBinUsingProjMatrixByBin.cxx
./src/recon_buildblock/BackProjectorByBinUsingInterpolation.cxx
./src/recon_buildblock/DataSymmetriesForBins.cxx
./src/recon_buildblock/ForwardProjectorByBinUsingProjMatrixByBin.cxx
./src/recon_buildblock/TrivialDataSymmetriesForBins.cxx
./src/recon_buildblock/ProjMatrixElemsForOneBin.cxx
./src/recon_buildblock/ProjMatrixElemsForOneDensel.cxx
./src/recon_buildblock/DataSymmetriesForDensels.cxx
./src/swig/stir.i
./src/recon_test/test_PoissonLogLikelihoodWithLinearModelForMeanAndProjData.cxx
./src/test/test_OutputFileFormat.cxx
./src/include/stir/ProjDataInMemory.h
./src/include/stir/doxygen_doc_for_boost.h
./src/include/stir/recon_buildblock/DataSymmetriesForBins.h
./src/include/stir/recon_buildblock/DataSymmetriesForBins_PET_CartesianGrid.inl
./src/include/stir/recon_buildblock/DataSymmetriesForBins_PET_CartesianGrid.h
./src/include/stir/recon_buildblock/ProjMatrixByBin.inl
./src/include/stir/recon_buildblock/DataSymmetriesForDensels.h
./src/include/stir/recon_buildblock/TrivialDataSymmetriesForBins.h
./src/include/stir/common.h
./src/include/stir/IO/ECAT962ListmodeInputFileFormat.h
./src/include/stir/IO/ECAT8_32bitListmodeInputFileFormat.h
./src/include/stir/IO/ECAT6ImageInputFileFormat.h
./src/include/stir/IO/ECAT7DynamicDiscretisedDensityInputFileFormat.h
./src/include/stir/IO/ITKImageInputFileFormat.h
./src/include/stir/IO/ECAT7ImageInputFileFormat.h
./src/include/stir/IO/InterfileImageInputFileFormat.h
./src/include/stir/IO/InputFileFormat.h
./src/include/stir/IO/ECAT966ListmodeInputFileFormat.h
./src/include/stir/IO/ROOTListmodeInputFileFormat.h
./src/include/stir/IO/read_from_file.h
./src/include/stir/is_null_ptr.h
./src/include/local/stir/recon_buildblock/DataSymmetriesForDensels_PET_CartesianGrid.inl
./src/include/local/stir/recon_buildblock/ProjMatrixByDensel.inl
./src/include/local/stir/recon_buildblock/DataSymmetriesForDensels_PET_CartesianGrid.h
./src/utilities/list_image_info.cxx
./src/utilities/stir_math.cxx
./src/iterative/OSMAPOSL/OSMAPOSLReconstruction.cxx
./src/iterative/OSSPS/OSSPSReconstruction.cxx
./src/IO/stir_ecat7.cxx
./src/IO/ECAT7DynamicDiscretisedDensityInputFileFormat.cxx
./src/IO/ITKImageInputFileFormat.cxx
./src/buildblock/ChainedDataProcessor.cxx
I haven't really looked into the code but unique_ptr
sounds good to me. If files support multi-read and are not writable we may want a shared_ptr
instead.
from stir.
sure. we'd replace all of them. many occurences are just "local" (to make an pointer-object destruct). Replacing those is harmless of course. It's the ones in the class interface that will break backwards compatibility.
from stir.
I've made now 2 attempts to get this to work (see 9dbc5fe) but still fail on OSX.
The issue is that OSX supplies a broken unique_ptr (even with C++-11!). See http://stackoverflow.com/questions/31655462/no-type-named-unique-ptr-in-namespace-std-when-compiling-under-llvm-clang.
I'm trying to replace it with a boost solution, see
https://github.com/UCL/STIR/blob/9dbc5fed3039d42731478ffdb6cb2357b0b70a86/src/include/stir/unique_ptr.h
This should have worked on Travis as its boost version is 1.61 while I require 1.57. However, it looks like it is still using the "desperate" fall-back of using a define (which I knew would fail). Can someone with a Mac investigate what's wrong with my preprocessor-ifs?
from stir.
Anyone knows how to pass a flag to a specific compiler in Travis? We need to pass -stdlib=libc++ to clang on Apple for C++-11 (http://stackoverflow.com/questions/11853822/clang-3-1-cant-see-unique-ptr) but it won't work for Linux/gcc (presumably), and we don't want that flag when testing non-C++-11. @dvolgyes?
from stir.
from stir.
from stir.
from stir.
Thanks David. I think the option to detect OSX in Cmake is best, unless anyone knows if this would create trouble on OSX in certain situations?
By the way, I don't understand why Evgueni's last update occurs in your PR #64. I was already surprised I had to do an explicit merge of the CMakeExport branch on my side (should have been a fast-forward as far as I could tell). Did I create some trouble in git?
from stir.
from stir.
from stir.
Related Issues (20)
- problems with passing calibration info to exam_info of image
- scatter estimation problem in recon_test_pack
- ProjDataInfo::get_tof_bin out-of-range handling
- TOF loop missing for Hessian computation HOT 1
- MPI code likely still needs TOF changes
- ProjDataInfoGeneric et al need TOF changes
- TOF bin naming: timing_pos, timing_pos_num, TOF_bin?
- TOF support for GE is currently broken HOT 1
- TOF: CListEvent::delta_time should probably be removed
- tof mashing capability should probably be removed from ROOT
- TOF: sensitivity is currently calculated as non-TOF only for listmode recon
- make proj-data template optional for LmToProjData
- extra SWIG warnings on DetectionPosition*
- Need to add Germanium-68 to our radio-nuclide database HOT 1
- branching_ratio not taken into account in normalisation
- Feature suggestions for ProjData Visualization HOT 2
- Add get_non_tof_ProjData to ProjData
- TOF: compare_projdata doesn't loop over TOF
- Reading Siemens normalisation HOT 1
- reading Siemens interfile doesn't read "isotope name" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stir.