Explorar o código

Adde binary threshold method.

Daniel Kauth %!s(int64=11) %!d(string=hai) anos
pai
achega
6ac37c845d
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      bbiwarg/Images/DepthImage.cs

+ 5 - 0
bbiwarg/Images/DepthImage.cs

@@ -71,6 +71,11 @@ namespace bbiwarg.Images
             }
         }
 
+        public void thresholdBinary(Int16 thresholdDepth)
+        {
+            image = image.ThresholdBinary(new Gray(thresholdDepth), new Gray(Int16.MaxValue));
+        }
+
         public int[] getSmoothedHistogram()
         {
             Int16 minDepth = getMinDepth();