OpenCvSharp.Blob.LabelData.DebugShow C# (CSharp) Method

DebugShow() public method

public DebugShow ( ) : void
return void
        public void DebugShow()
        {
            using (Mat img = Mat.Zeros(Rows, Cols, MatType.CV_8UC1))
            {
                var indexer = img.GetGenericIndexer<byte>();
                for (int r = 0; r < Rows; r++)
                {
                    for (int c = 0; c < Cols; c++)
                    {
                        if (Values[r, c] != 0)
                            indexer[r, c] = 255;
                    }
                }
                Window.ShowImages(img);
            }
        }