summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-03-25 16:54:49 +0000
committerishmal <ishmal@users.sourceforge.net>2006-03-25 16:54:49 +0000
commit8a6da307e03e64be91a11c6ba53e0663d8495163 (patch)
treeefc48351fba0ea6e8272b5f957992f0a14ed851c /src
parentAdd PackedPixelMap to make pixbuf->pixel array conversion much cleaner. Also... (diff)
downloadinkscape-8a6da307e03e64be91a11c6ba53e0663d8495163.tar.gz
inkscape-8a6da307e03e64be91a11c6ba53e0663d8495163.zip
fixed const decls
(bzr r295)
Diffstat (limited to 'src')
-rw-r--r--src/trace/siox.cpp15
-rw-r--r--src/trace/siox.h10
2 files changed, 20 insertions, 5 deletions
diff --git a/src/trace/siox.cpp b/src/trace/siox.cpp
index 876e8eb7c..b210606b1 100644
--- a/src/trace/siox.cpp
+++ b/src/trace/siox.cpp
@@ -928,6 +928,21 @@ static std::vector<CLAB> createSignature(std::vector<CLAB> &input,
//### NOTE: Doxygen comments are in siox-segmentator.h
+/** Confidence corresponding to a certain foreground region (equals one). */
+const float SioxSegmentator::CERTAIN_FOREGROUND_CONFIDENCE=1.0f;
+
+/** Confidence for a region likely being foreground.*/
+const float SioxSegmentator::FOREGROUND_CONFIDENCE=0.8f;
+
+/** Confidence for foreground or background type being equally likely.*/
+const float SioxSegmentator::UNKNOWN_REGION_CONFIDENCE=0.5f;
+
+/** Confidence for a region likely being background.*/
+const float SioxSegmentator::BACKGROUND_CONFIDENCE=0.1f;
+
+/** Confidence corresponding to a certain background reagion (equals zero). */
+const float SioxSegmentator::CERTAIN_BACKGROUND_CONFIDENCE=0.0f;
+
SioxSegmentator::SioxSegmentator(int w, int h, float *limitsArg, int limitsSize)
{
diff --git a/src/trace/siox.h b/src/trace/siox.h
index bb955f28a..cfb7ea19c 100644
--- a/src/trace/siox.h
+++ b/src/trace/siox.h
@@ -156,19 +156,19 @@ class SioxSegmentator
public:
/** Confidence corresponding to a certain foreground region (equals one). */
- static const float CERTAIN_FOREGROUND_CONFIDENCE=1.0f;
+ static const float CERTAIN_FOREGROUND_CONFIDENCE; //=1.0f;
/** Confidence for a region likely being foreground.*/
- static const float FOREGROUND_CONFIDENCE=0.8f;
+ static const float FOREGROUND_CONFIDENCE; //=0.8f;
/** Confidence for foreground or background type being equally likely.*/
- static const float UNKNOWN_REGION_CONFIDENCE=0.5f;
+ static const float UNKNOWN_REGION_CONFIDENCE; //=0.5f;
/** Confidence for a region likely being background.*/
- static const float BACKGROUND_CONFIDENCE=0.1f;
+ static const float BACKGROUND_CONFIDENCE; //=0.1f;
/** Confidence corresponding to a certain background reagion (equals zero). */
- static const float CERTAIN_BACKGROUND_CONFIDENCE=0.0f;
+ static const float CERTAIN_BACKGROUND_CONFIDENCE; //=0.0f;
/**