ANTsR icon indicating copy to clipboard operation
ANTsR copied to clipboard

plot.antsImage taking too long

Open muratmaga opened this issue 5 years ago • 1 comments

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])

muratmaga avatar Nov 26 '20 21:11 muratmaga

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.

stnava avatar Nov 26 '20 23:11 stnava