Skip to content
Snippets Groups Projects
Commit ffce9cef authored by Matthew Webster's avatar Matthew Webster
Browse files

Autocorrector uses new susan

parent f5ef1623
No related branches found
No related tags found
No related merge requests found
......@@ -401,13 +401,13 @@ namespace FILM {
Volume vol(acEst.getNumSeries(), xdata.getInfo(), xdata.getPreThresholdPositions());
int i = 2;
int factor = 10000;
cerr << "Spatially smoothing auto corr estimates" << endl;
for(; i <= lag; i++)
{
// setup susan input
vol = acEst.getVolume(i).AsColumn();
vol = acEst.getVolume(i).AsColumn()*factor;
vol.unthreshold();
susan_vol.insert_vec(vol);
......@@ -417,7 +417,7 @@ namespace FILM {
// insert output back into acEst
vol=susan_vol.vec();
vol.threshold();
acEst.setVolume(static_cast<RowVector>((vol).AsRow()), i);
acEst.setVolume(static_cast<RowVector>((vol/factor).AsRow()), i);
cerr << ".";
}
......
......@@ -5,7 +5,7 @@ PROJNAME = film
USRINCFLAGS = -I${INC_NEWMAT} -I${INC_PROB} -I${INC_ZLIB}
USRLDFLAGS = -L${LIB_NEWMAT} -L${LIB_PROB} -L${LIB_ZLIB}
LIBS = -lmiscmaths -lnewimage -lutils -lm -lnewmat -lfslio -lniftiio -lznz -lprob -lz
LIBS = -lnewimage -lmiscmaths -lutils -lm -lnewmat -lfslio -lniftiio -lznz -lprob -lz
XFILES = film_gls contrast_mgr ttoz ftoz ttologp
......
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