From: David Sarrut Date: Fri, 4 Nov 2011 09:25:29 +0000 (+0100) Subject: New ComputeOptimalThreshold X-Git-Tag: v1.3.0~174^2~8 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=1bfa0da6c453a072c0b04003e297dcf0073dc168;p=clitk.git New ComputeOptimalThreshold --- diff --git a/itk/clitkRelativePositionDataBaseAnalyzerFilter.txx b/itk/clitkRelativePositionDataBaseAnalyzerFilter.txx index 6aa5f3a..28f3bd0 100644 --- a/itk/clitkRelativePositionDataBaseAnalyzerFilter.txx +++ b/itk/clitkRelativePositionDataBaseAnalyzerFilter.txx @@ -61,16 +61,16 @@ Update() // DD(m_ListOfObjects[i]); // Set current index index.object = m_ListOfObjects[i]; - // Get the list of orientation - std::vector m_ListOfOrientations; - db.GetListOfOrientations(GetStationName(), index.object, m_ListOfOrientations); + // Get the list of direction + std::vector m_ListOfDirections; + db.GetListOfDirections(GetStationName(), index.object, m_ListOfDirections); - // Loop over orientation - for(int j=0; j & ListOfPatients = db.GetListOfPatients(index); // DD(ListOfPatients.size()); - // index.orientation.Println(); + // index.direction.Println(); - // For a given station, object, orientation + // For a given station, object, direction bool stop=false; int i=0; - if (index.orientation.notFlag) threshold = 0.0; + if (index.direction.notFlag) threshold = 0.0; else threshold = 1.0; while (!stop && (i