Corrected c1 expressions.
authorilb@NIH.GOV <ilb@NIH.GOV@ba61647d-9d00-f842-95cd-605cb4296b96>
Wed, 21 Feb 2018 22:04:03 +0000 (22:04 +0000)
committerilb@NIH.GOV <ilb@NIH.GOV@ba61647d-9d00-f842-95cd-605cb4296b96>
Wed, 21 Feb 2018 22:04:03 +0000 (22:04 +0000)
git-svn-id: https://citdcbmipav.cit.nih.gov/repos-pub/mipav/trunk@15386 ba61647d-9d00-f842-95cd-605cb4296b96

mipav/src/gov/nih/mipav/model/algorithms/filters/AlgorithmCoherenceEnhancingDiffusion.java

index 2ebe810..4ed1722 100644 (file)
@@ -1012,7 +1012,7 @@ public class AlgorithmCoherenceEnhancingDiffusion extends AlgorithmBase {
                             exponent = ((lambdaOne - lambdaTwo) * (lambdaOne - lambdaTwo) / (float) k2);\r
 \r
                             if (exponent == 0.0f) {\r
-                               c1 = 0.0f;\r
+                               c1 = 0.01f;\r
                             }\r
                             else {\r
                                c1 = (float)(0.01 + (1 - 0.01)*Math.exp(-1.0/exponent));\r
@@ -1386,7 +1386,7 @@ public class AlgorithmCoherenceEnhancingDiffusion extends AlgorithmBase {
                             exponent = ((lambdaOne - lambdaTwo) * (lambdaOne - lambdaTwo) / (float) k2);\r
 \r
                             if (exponent == 0.0f) {\r
-                               c1 = 0.0f;\r
+                               c1 = 0.01f;\r
                             }\r
                             else {\r
                                c1 = (float)(0.01 + (1 - 0.01)*Math.exp(-1.0/exponent));\r
@@ -1773,7 +1773,7 @@ public class AlgorithmCoherenceEnhancingDiffusion extends AlgorithmBase {
                                          ((lambdaTwo - lambdaThree) * (lambdaTwo - lambdaThree))) / (float) k2);\r
 \r
                             if (exponent == 0.0f) {\r
-                               c1 = 0.0f;\r
+                               c1 = 0.01f;\r
                             }\r
                             else {\r
                                c1 = (float)(0.01 + (1 - 0.01)*Math.exp(-1.0/exponent));\r
@@ -2344,7 +2344,7 @@ public class AlgorithmCoherenceEnhancingDiffusion extends AlgorithmBase {
                                          ((lambdaTwo - lambdaThree) * (lambdaTwo - lambdaThree))) / (float) k2);\r
 \r
                             if (exponent == 0.0f) {\r
-                               c1 = 0.0f;\r
+                               c1 = 0.01f;\r
                             }\r
                             else {\r
                                c1 = (float)(0.01 + (1 - 0.01)*Math.exp(-1.0/exponent));\r