From 3462c42bd1c670e64f767f2a2fee7f274e4e35b2 Mon Sep 17 00:00:00 2001 From: James E McClure Date: Sun, 30 Aug 2015 14:35:44 -0400 Subject: [PATCH] Fixed bug in AssignComponentLabels (created during TestBlobAnalyze refactor) --- common/TwoPhase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/TwoPhase.cpp b/common/TwoPhase.cpp index 2874540b..a7866bd5 100644 --- a/common/TwoPhase.cpp +++ b/common/TwoPhase.cpp @@ -464,7 +464,7 @@ void TwoPhase::AssignComponentLabels() for (int j=0; j 0.0) PhaseID(i,j,k) = 1; + if (SDs(i,j,k) > 0.0) PhaseID(i,j,k) = 0; else if (Phase(i,j,k) > 0.0) PhaseID(i,j,k) = 1; else PhaseID(i,j,k) = 2; }