Esempio n. 1
0
 public DispInfo(Mat mat, bool drawHist, bool labelHsv, string text, Action <ImageDrawing> drawing, ImageBoxOption opt, bool is3dMat, Action <ImageGraphics> graphics)
 {
     this.mat      = mat;
     this.drawHist = drawHist;
     this.labelHsv = labelHsv;
     this.text     = text;
     this.drawing  = drawing;
     this.opt      = opt;
     this.is3dMat  = is3dMat;
     this.graphics = graphics;
 }
Esempio n. 2
0
 public static void DrawMatAndHist(Mat mat, string text = null, bool labelHsv = false, Action<ImageDrawing> drawing = null, bool drawHist = false, ImageBoxOption opt = null, bool is3dMat = false, Action<ImageGraphics> graphics = null) {
     Glb.form.matDispList.Add(new DispInfo(mat, drawHist, labelHsv, text ?? mat?.Info() ?? string.Empty, drawing, opt, is3dMat, graphics));
 }