public override XmlElement ToXML(XmlDocument xmldoc) { if (_actualArgs == null) { _actualArgs = new HistGetGradesArg(); } return(_actualArgs.ToXML(xmldoc)); }
public override RgbProcessorArg Clone() { HistGetGradesArg it = new HistGetGradesArg(); it.LhRL = _lhRL; it.LhGL = _lhGL; it.LhBL = _lhBL; it.LhRH = _lhRH; it.LhGH = _lhGH; it.LhBH = _lhBH; return(it); }
protected override unsafe void BeforeProcess() { _actualArgs = _arg as HistGetGradesArg; byte *ptr0 = (byte *)_pdata.Scan0; int w = _pdata.Width; int h = _pdata.Height; int bytesPerPixel = _bytesPerPixel; int pixelnum = w * h; int[][] grams = histGetGrades(ptr0, w, h, bytesPerPixel); float[][] transArg = new float[][] { new float [] { _actualArgs.LhRL *pixelnum, _actualArgs.LhRH *pixelnum }, new float [] { _actualArgs.LhGL *pixelnum, _actualArgs.LhGH *pixelnum }, new float [] { _actualArgs.LhBL *pixelnum, _actualArgs.LhBH *pixelnum } }; lh = histGetBounds(grams, transArg); }
private void Init() { _actualArg = _arg as HistGetGradesArg; }
public override void CreateDefaultArguments() { _arg = new HistGetGradesArg(); }