From 1bfa0da6c453a072c0b04003e297dcf0073dc168 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Fri, 4 Nov 2011 10:25:29 +0100 Subject: [PATCH] New ComputeOptimalThreshold --- ...RelativePositionDataBaseAnalyzerFilter.txx | 53 ++++++++++--------- 1 file changed, 28 insertions(+), 25 deletions(-) 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