Comments (4)
from antspy.
Hi @stnava,
I am getting the same error while trying to register a 2D tif image.
ants.registration(fixed=fixed, moving=moving, type_of_transform='SyNOnly')
Following is a sample image header information,
ants size: {'pixelclass': 'rgb', 'pixeltype': 'unsigned char', 'nDimensions': 2, 'nComponents': 3, 'dimensions': (2400.0, 864.0), 'spacing': (1.0, 1.0), 'origin': (0.0, 0.0), 'direction': array([[1., 0.], [0., 1.]])}
ANTsImage is read from file,
fixed = ants.image_read(fixed_tif, dimension = 3)
I could see the following details by printing the ANTsImage,
ANTsImage (RAI)
Pixel Type : float (float32)
Components : 3 (RGB)
Dimensions : (1200, 864, 1)
Spacing : (1.0, 1.0, 1.0)
Origin : (0.0, 0.0, 0.0)
Direction : [1. 0. 0. 0. 1. 0. 0. 0. 1.]
Should not this work since the image dimension is 1200x864x1? Appreciate any help on this. Thanks in advance.
from antspy.
Please don't post under a closed issue. Rather, open a new issue to ask about your problem.
from antspy.
Please don't post under a closed issue. Rather, open a new issue to ask about your problem.
Reported issue #354.
from antspy.
Related Issues (20)
- How to output and save deformation fields HOT 6
- compose_ants_transforms change HOT 3
- broken b-spline fitting HOT 2
- B-spline curve fitting failures HOT 1
- Ubuntu Python 3.9 installation error (sha256 mismatch) HOT 3
- potential bug: reference leak when torch is loaded and a function errors HOT 1
- ants.iMath_histogram_equalization HOT 2
- 有没有GPU加速版本的..... HOT 1
- File errors in `ants` folder under home directory crashes ANTsPyx HOT 4
- Encountering the error "RuntimeError: Registration failed with error code 1", when MRA images and T1-weighted images are co-registered with "SyN" HOT 11
- ANTsPy crashes Python when registering two images HOT 4
- Circular import error HOT 2
- Support for HDF5/NWB HOT 1
- Difference between `ants.apply_transforms` and `transform.apply_to_image` with multiple transforms HOT 3
- An question about the return results of ants.registration HOT 6
- ants_transform.apply_to_image broken for displacement field transforms HOT 2
- 'ANTsImage' object has no attribute 'endswith' HOT 9
- to_nibabel and from_nibabel missing from version 0.5.3 api HOT 10
- ValueError: Image Size Too Large When Plotting ANTsImage Using `ants.plot()` HOT 1
- The inverse transform about ants.apply_transforms HOT 2
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 antspy.