Comments (8)
Dear Niels,
Thank you for taking the time.
I will report this to ITK.
Best regards,
Jérémie
from itkelastix.
Hi @Jeremie-BIC
Thank you for reporting this issue. Marius Staring (@mstaring) and I just looked at it, and it seems to us that it isn't a specific elastix/ITKElastix issue, but rather an ITK issue, or an itkwidgets issue. In that case, maybe you'd better report this to ITK (https://discourse.itk.org or https://github.com/InsightSoftwareConsortium/ITK/issues) or itkwidgets: https://github.com/InsightSoftwareConsortium/itkwidgets
Kind regards, Niels
from itkelastix.
This is most likely a limitation of the graphics subsystem (GPU does not have enough memory to fit the entire image in it) or VTK, the visualization library https://github.com/InsightSoftwareConsortium/itkwidgets uses. @floryst or @thewtex might have a better idea of where the problem comes from.
from itkelastix.
For itkwidgets, browser tabs usually have a ceiling on the memory allocation, though that usually results in a browser tab crash and not a blank image. If it's a TIF image, my guess would be that the underlying itk-wasm WebWorker is failing or crashing silently (possibly due to out-of-memory), leading to the display of a blank image...
from itkelastix.
Hi,
Thank you for help!
I understand that such a big file might be impossible to display in the Jupyter Notebook through the Itk Widget viewer.
However when I try to do a simpler operation, such as change the pixel spacing, I get an error. I think that the problem is happening when I open my image (using itk.imread).
I guess that, like Niels suggested, it is an ITK problem...
In case, I am putting the error I get. Any suggestion would be super appreciated.
Error is:
TypeError Traceback (most recent call last)
in
1 fixed_image.SetSpacing((25,25,25))
2 moving_image.SetSpacing((25,25,25))
----> 3 upscale_image.SetSpacing((2,2,4))
4
5 #fixed_image_resolution=fixed_image.GetSpacing() #prints spacing
TypeError: Expecting an itkVectorD2, an int, a float, a sequence of int or a sequence of float.
Additional information:
Wrong number or type of arguments for overloaded function 'itkImageBase2_SetSpacing'.
Possible C/C++ prototypes are:
itkImageBase2::SetSpacing(itkVectorD2 const &)
itkImageBase2::SetSpacing(double const *)
itkImageBase2::SetSpacing(float const *)
Thank you very much.
Best,
Jérémie
from itkelastix.
You might need something like:
spacing = itk.spacing((2,2,4)) # like this?
spacing = itk.spacing([2,2,4]) # or maybe like this?
upscale_image.SetSpacing(spacing)
from itkelastix.
Large scale registration support coming via https://github.com/InsightSoftwareConsortium/itk-dreg.
from itkelastix.
itk-widgets has support for large-scale images via NGFF. See: https://github.com/InsightSoftwareConsortium/itkwidgets/blob/main/examples/integrations/zarr/OME-NGFF-Brainstem-MRI.ipynb
from itkelastix.
Related Issues (20)
- Latest ITKElastix crashes HOT 6
- How to minimise non-rigid distortion when using groupwise registration HOT 3
- pip install itk-elastix does not work HOT 3
- register these two dicom file HOT 1
- Extraction deformation field after 3D registration.
- Error loading initial transform and applying mask
- Error when multiprocessing coregistration HOT 1
- Groupwise registration of 4D objects and registration with mask
- Applying series of registrations to moving image label map HOT 4
- Reset random seed for deterministic registration HOT 7
- Data format differs from the example HOT 1
- Data format differs from the example HOT 1
- itk.ParameterObject -> seg fault in fresh env HOT 5
- Issue with image format HOT 1
- Elastix Model Zoo site cannot be opened HOT 1
- Inverse transform HOT 11
- ErodeMask and dilating mask
- GroupwiseRegistration notebook: ERROR: the direction cosines matrix of the fixed image is invalid! HOT 5
- Transform coordinates from moving images space to fixed images space HOT 1
- Error of multi-metric and multi-channel image registration 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 itkelastix.