You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
1.3 KiB

//----------------------------------------------------------------------------
// Copyright (C) 2004-2022 by EMGU Corporation. All rights reserved.
//----------------------------------------------------------------------------
/*
using System;
using System.Windows.Forms;
using Microsoft.VisualStudio.DebuggerVisualizers;
using Emgu.CV;
using Emgu.CV.UI;
using System.Diagnostics;
[assembly: DebuggerVisualizer(
typeof(Emgu.CV.DebuggerVisualizers.DenseHistogramVisualizer),
Target = typeof(Emgu.CV.DenseHistogram))]
namespace Emgu.CV.DebuggerVisualizers
{
public sealed class DenseHistogramVisualizer : DialogDebuggerVisualizer
{
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
{
DenseHistogram hist = objectProvider.GetObject() as DenseHistogram;
if (hist.Cols > 1)
{
MessageBox.Show("Only 1-D histogram visualization is supported");
return;
}
if (hist != null)
{
using (HistogramViewer viewer = new HistogramViewer())
{
viewer.HistogramCtrl.AddHistogram("Histogram", System.Drawing.Color.Black, hist, 256, new float[] {0, 255});
viewer.HistogramCtrl.Refresh();
windowService.ShowDialog(viewer);
}
}
}
}
}*/