On Ubuntu 18.04 LTS I try to change the voxel spacing of a 3D image like in this example. The image is pretty large with around 500x500x300 voxels and uses around 100MB. When the line resampler.Execute() is reached the shell stops executing the python3 script. I think this is because of a lack of memory, but which memory? Harddisk? RAM? Does anyone know why this might happen and if there is any workaround?
Why does SimpleITK crash during ResampleImageFilter execution?
256 Views Asked by Anno At
1
There are 1 best solutions below
Related Questions in PYTHON-3.X
- Update a text file with ( new words+ \n ) after the words is appended into a list
- Kivy - Create new widget and set its position and size
- TypeError: encoding or errors without a string argument
- How to print varible name in python
- PyQt, Python 3: Lambda slot assigning signal argument to a variable?
- How to write data to stdin of the first process in a Python shell pipeline?
- pygame.draw.circle, still draws a square
- Duplicate Frames Created When Calling a Function in a Tkinter Application
- Python TypeError: can only concatenate tuple (not "int") to tuple
- recursively editing member variable: All instances have same value
- missing 1 required positional argument: 'key'
- How do I fix this sorting error?
- Dictionary values missing
- Why does opening a file in two different encodings work as expected?
- Binary bit flip generator in python
Related Questions in UBUNTU-18.04
- SSH Connection timed out on EC2 Ubuntu
- Error with OpenCV imshow in anaconda environment
- Can't import numpy module into python file, but it works with terminal
- CKAN Internal Server Error (500) on production / python errors in logs following ubuntu 16->18 update
- FMUException: Error loading the binary. Could not load the FMU binary
- Command 'vagrant' not found
- Why Docker can't detect WSL 2 distro in Windows 10 Home?
- how to install rstan in ubuntu 18.04
- R: source() cannot open the connection, status was 'Couldn't resolve host name'
- How do I fix this error when running a cron job for Moodle 3.9?
- MongoDB Docker container start and then exits itself with non Docker error codes
- Unable to change PHP version in Ubuntu 18.04 terminal
- CMake Error: CUDA_cublas_LIBRARY (ADVANCED)
- Prevent Raspberry Pi 4 for going to sleep/shutdown (Ubuntu Server 18.04)
- npm package getting installed but not working
Related Questions in SIMPLEITK
- Why is ConnectedThresholdImageFilter class not labeling pixels within threshold?
- How to change only array for Dicom file with Simple ITK in python
- How to interpret the following input to the execute method of the STAPLE filter object: Execute(const Image & image1)?
- SimpleItk - writing a DICOM image using 12 bits (BitsAllocated=16, BitsStored=12)
- Why does SimpleITK crash during ResampleImageFilter execution?
- Missing lib file, How to fix?
- How can I apply a custom filter function (some lambda) to a 2D image object using SimpleITK?
- Getting the intensities of a certain region of an MR image
- rotating an image after resampling to get the right slice direction
- Migrating SimpleITK 1.x to 2.x
- Visualize SimpleITK coordinates on Paraview
- SimpleITK not working with any data type, be it 3D or 2D
- simple itk is not behaving as expected while flip using affine transform
- Get Matrix and Translation from a SimpleITK transform
- Why doesn't SimpleITK display image with imageJ?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You're running out of RAM. You volume is 75 million voxels, but that resampling example code is using 32-bit floating point numbers. So that's 300 megabytes of memory. And then there's memory of the output volume. So who knows how much memory you're needing in total.
Try setting the output pixel type to something smaller, like a signed short or an unsigned char.