Comments (5)
Hmm. I usually compile this with Clang/LLVM (OS X), GCC (Linux) or GCC+cygwin (Windows). I did update the code so it would compile with Visual Studio, but I did not test it. I do not currently have a system with Visual Studio installed. My first question is whether you need the 64-bit version. If you do work out the root cause I would be happy to know, but at the moment it is not high on my priority list to fix as it does not seem like it will influence most users.
from dcm2niix.
I temporarily solved the problem by increasing the HEAP and STACK sizes within Visual Studio . I personally think the problem is we have too many variables and static array within data structures, therefore require larger size with struct
alignment for WIN64. And http://www.codeguru.com/cpp/v-s/debug/article.php/c19241/Adventures-with-chkstk.htm
have a good explanation.
from dcm2niix.
That makes perfect sense. Can you try the new version I uploaded to see if this fixes the problem without having to change the Visual Studio defaults? I changed the lines below - the intention is to allow the software to convert all the data in a single pass, so I assume a huge number of images.
#if UINTPTR_MAX == 0xffffffff
nameList.maxItems = 68000; // 32-bit larger requires more memory, smaller more passes
#elif UINTPTR_MAX == 0xffffffffffffffff
nameList.maxItems = 34000; // 64-bit larger requires more memory, smaller more passes
#endif
from dcm2niix.
Hello-
Please try the latest (2June2015) release. This dramatically reduces memory usage. The challenge is supporting simultaneously (1) thousands of simple 2D DICOMs [e.g. Siemens DTI] and (2) very complicated 4D DICOMs [e.g. Philips DTI]. The new version only batches the 2D images and immediately converts a 4D image, so it never needs to store 4D information long term.
from dcm2niix.
Thanks to you contribution, the improvement definitely solved my
problem with visual studio under WIN64, and it is more efficient.
from dcm2niix.
Related Issues (20)
- our mp2rage is sending an additional T1 reconstruction that is causing problems HOT 2
- XA30 EchoNumber HOT 1
- Ability to control split by acquisition number HOT 1
- dcm2niix as static lib (now failing) ? HOT 1
- inconsistent SliceTiming conversion of GE epiRT forward/reverse-PE sequences HOT 7
- images appear to be a single slice - WARNING as well HOT 2
- Any willingness to add Siemens ImaRelTablePosition (0019,1014) to json sidecar? HOT 6
- List DICOM issues to channel to manufacturers HOT 1
- Localizer not ignored with option -i HOT 2
- Consider excluding additional DICOM fields in JSON sidecar with anonymization flag (BIDS format) HOT 4
- Question: sample of public DICOMs with incomplete acquisition HOT 5
- Unable to determine slice times for early GE HyperBand,the output folder doesn't generate any files HOT 3
- Empty values? HOT 2
- GE non-HFS DTI HOT 2
- future-proof BidsGuess HOT 2
- Siemens XA partial volumes in 4D datasets HOT 2
- Philips B1 map (using Dual TR) to nifti conversion error HOT 6
- Unsupported transfer syntax '1_2_840_10008_1_2_1' and '1.2.840.10008.1.2.4.70' HOT 3
- US convertion error HOT 3
- Siemens XA20 3D PCASL HOT 3
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 dcm2niix.