Example #1
0
 public void Draw(PaintEventArgs e)
 {
     if (_cbxShowAcceptedWindows.Checked)
     {
         if (_classifier.AcceptedPatches != null)
         {
             IBoundingBox[] allWindows = _classifier.ScanningWindowGenerator.ScanningWindows;
             foreach (int windowIndex in _classifier.AcceptedPatches)
             {
                 IBoundingBox window = allWindows[windowIndex];
                 DrawingService.DrawBoundingBox(e, window, DetectorDrawingInfo.VarianceClassifierPen);
             }
         }
     }
 }