Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot.antsImage taking too long #334

Open
muratmaga opened this issue Nov 26, 2020 · 1 comment
Open

plot.antsImage taking too long #334

muratmaga opened this issue Nov 26, 2020 · 1 comment

Comments

@muratmaga
Copy link

Describe the bug
I have a series of volumes and a label maps that I want to create cross-sections. Each plot is taking about a minute to produce with the command below. While volumes are largish (400x451x678), I still this a bit too slow. Is there anything I can do increase the speed?

plot(img, label, nslices=21, ncolumns=7, alpha = .8, outname = outs[i])

@stnava
Copy link
Member

stnava commented Nov 26, 2020

the quality parameter will have an impact on speed. I don't recall if higher => slower or faster but some quick experiments should help figure that out.

other than that, plotting directly to png is generally faster but I believe that's what you are doing anyway.

overall, ants.plot needs an overhaul, for sure. it was written in the early days of ANTsR ( 2012 or 2013 ) so it's probably sub-optimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants