Skip to content

How to overwrite spacing of ScalarImage ? #828

Answered by romainVala
Optimox asked this question in Q&A
Discussion options

You must be logged in to vote

Hi
not sure how to explicitely set the affine (that will define the spacing). may be @fepegar has an idea how to achieve it ... ?

In the mean time you can try to copy the affine from your image to you label with the transform CopyAffine
Thus you will have 2 coherent affine (and then spacing) but depending on the transform you used after this may not be enough (because having the correct affine is important, for instance for Resampling )

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Optimox
Comment options

Answer selected by fepegar
Comment options

You must be logged in to vote
1 reply
@fepegar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants