Skip to content

Simple ways to reorient image #1492

Answered by ntustison
ptsii asked this question in Q&A
Jan 16, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Probably something like this:

        probabilityArray <- as.array( probabilityImage )
        probabilityArrayDimension <- dim( probabilityImage )
        probabilityArrayFlipped <- probabilityArray[probabilityArrayDimension[1]:1,,]
        probabilityImage <- as.antsImage( probabilityArrayFlipped, reference = probabilityImage )

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ptsii
Comment options

@ptsii
Comment options

Answer selected by ptsii
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants