Skip to content
Snippets Groups Projects
Commit f5b330a9 authored by Stephen Smith's avatar Stephen Smith
Browse files

changed volumeseries to read/write a volume at a time

parent ac516d9b
No related branches found
No related tags found
No related merge requests found
......@@ -47,13 +47,12 @@ int main(int argc, char *argv[])
int sizeTS = x.getNumVolumes();
// if needed for SUSAN spatial smoothing, output the 12th volume for use later
// if needed for SUSAN spatial smoothing, output the halfway volume for use later
Volume epivol;
if(globalopts.smoothACEst)
{
epivol = x.getVolume(int(sizeTS/2)).AsColumn();
epivol.setInfo(x.getInfo());
epivol.writeAsInt(logger.getDir() + "/" + globalopts.epifname);
}
......@@ -197,6 +196,12 @@ int main(int argc, char *argv[])
cerr << "Saving results... " << endl;
// write residuals
//residuals.unthresholdSeries(x.getInfo(),x.getPreThresholdPositions());
//residuals.writeAsFloat(logger.getDir() + "/res4d");
residuals.writeThresholdedSeriesAsFloat(x.getInfo(),x.getPreThresholdPositions(),logger.getDir() + "/res4d");
residuals.CleanUp();
if(globalopts.verbose)
{
// output whitened x
......@@ -220,11 +225,6 @@ int main(int argc, char *argv[])
threshac.thresholdSeries();
threshac.CleanUp();
// write residuals
residuals.unthresholdSeries(x.getInfo(),x.getPreThresholdPositions());
residuals.writeAsFloat(logger.getDir() + "/res4d");
residuals.CleanUp();
// save gls results:
glimGls.Save(x.getInfo(), x.getPreThresholdPositions());
glimGls.CleanUp();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment