dkazanc / TomoPhantom

Software to generate 2D/3D/4D analytical phantoms and their Radon transforms (parallel beam) for image processing
https://dkazanc.github.io/TomoPhantom/
Apache License 2.0
116 stars 53 forks source link

Fails on allocation of large 3D volumes #7

Closed dkazanc closed 6 years ago

dkazanc commented 6 years ago

Looks like a bug. I can do 3D phantoms as large as 1250^3 voxels but then on 1500^3 it crashes. Any visible issues with the code? https://github.com/dkazanc/TomoPhantom/blob/eb2ada361f2b270b33821ab280cf8ec4f46e64db/functions/buildPhantom3D_core.c#L106

dkazanc commented 6 years ago

going to add malloc checks in order to say exactly when it fails...

paskino commented 6 years ago

yes, that was my question.

dkazanc commented 6 years ago

the issue is still not fixed, work in progress to find a bug... <1300^3 voxels seems to be the limit for now.

paskino commented 6 years ago

for large volumes, the size of the array and the index must be long.

dkazanc commented 6 years ago

Amazing, fixing it asap. Thanks Edo.

dkazanc commented 6 years ago

closed with #19