Kaynağa Gözat

Adde binary threshold method.

Daniel Kauth 11 yıl önce
ebeveyn
işleme
6ac37c845d
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  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();