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?
259 views Asked by Anno At
1
There are 1 answers
Related Questions in PYTHON-3.X
- SQLAlchemy 2 Can't add additional column when specifying __table__
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Platform Generation for a Sky Hop clone
- What's the best way to breakup a large test in pytest
- chess endgame engine in Python doesn't work perfectly
- Function to create matrix of zeros and ones, with a certain density of ones
- how to create a polars dataframe giving the colum-names from a list
- Django socketio process
- How to decode audio stream using tornado websocket?
- Getting website metadata (Excel VBA/Python)
- How to get text and other elements to display over the Video in Tkinter?
- Tkinter App - My Toplevel window is not appearing. App is stuck in mainloop
- Can I use local resources for mp4 playback?
- How to pass the value of a function of one class to a function of another with the @property decorator
- Python ModuleNotFoundError for command line tools built with setup.py
Related Questions in UBUNTU-18.04
- Ubuntu OS update from 18.04 to 22.04 issue
- Unable to pull docker image from ghcr.io on AWS Lightsail instance running Ubuntu 18.04
- Python Backtrader Optstrategy results in BrokenPipeError: [Errno 32] Broken pipe
- Git commands fatal errors even with .git present
- Launch server program alongside client and exit server when client exits
- create anaconda virtual env from exported yaml file or clone
- No module named 'PyQt5.QtTextToSpeech'
- Can't install php 8.0 bcmath
- Installing Torchaudio for PyTorch 1.10.0 with CUDA 11.0
- C++ Eigen::inverse function renders totally wrong array with ffast-math option
- What is best way to install PHP 7.4 FPM on Ubuntu 18.04
- PHP Apache Docker container: No releases available for package "pecl.php.net/xdebug" in some networks in Ubuntu 18
- Issue building firmware with SDK
- confusion on which chrome driver to use for latest google-chrome
- How can I restart a rails application on a digital oceans without a reboot
Related Questions in SIMPLEITK
- How to Improve rigid registration for 2D images
- How to load 3D MRI images into deep learning images?
- How to decide the value of the sigma value to use for the SimpleITK Filter: SmoothingRecursiveGaussianImageFilter depending on the voxel size?
- Simple ITK slicing on coronal direction ends up with an upside down image?
- SimpleITK ImportError with fresh conda env
- The execution of SimpleITK's STAPLE algorithm gets stuck in certain cases
- Change Direction of an image to match a reference, and obtain Origin, without changing the original voxel spacing
- SimpleITK copy headers/metadata to align segmentation with image
- Images sizes not matched when downsampling then upsampling images
- Where do i get SimpleITK JNI Lib?
- no SimpleITKJava in java.library.path with intellij
- what is the dependency of simpleitk for maven?
- changing spacing of a dicom image using resample function of simpleITK
- SimpleITK Filtering with sitk.ConnectedThresholdImageFilter() wrong output
- SimpleITK WriteImage Error, DICOM does not support this component type
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?
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)
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.