private void delete_roi_Click(object sender, EventArgs e) { Htemp_roi.Dispose(); Hdraw_roi.Dispose(); Hshow_xld1.Dispose(); Hshow_xld2.Dispose(); try { HOperatorSet.ClearWindow(Hwin); HOperatorSet.DispObj(image_show, Hwin); } catch { } }
public FindModel_form(UnitFindModel FM, HObject image) { HOperatorSet.GenEmptyObj(out image_show); HOperatorSet.GenEmptyObj(out m_hModelXLD); HOperatorSet.GenEmptyObj(out Htemp_roi); HOperatorSet.GenEmptyObj(out Hdraw_roi); HOperatorSet.GenEmptyObj(out Hshow_xld1); HOperatorSet.GenEmptyObj(out Hshow_xld2); Hdraw_roi.Dispose(); Hshow_xld2.Dispose(); image_show = image; FM_data = FM; HangleStart = -20; HangleExtent = 40; HscaleMin = 0.9; HscaleMax = 1.1; ContrastMin = 11; ContrastMax = 15; MinSize = 10; Hcontrast = new HTuple(); Hcontrast = Hcontrast.TupleConcat(ContrastMin); Hcontrast = Hcontrast.TupleConcat(ContrastMax); Hcontrast = Hcontrast.TupleConcat(MinSize); HminContrast = 9; H_NumLevels = 4; H_AngleStep = "auto"; H_ScaleStep = "auto"; H_Optimization = (new HTuple("none")).TupleConcat("no_pregeneration"); H_Metric = "use_polarity"; HminScore = 0.5; HmaxOverlap = 0.5; Hgreediness = 0.8; H_NumMatches = 1; H_SubPixel = "least_squares"; InitializeComponent(); }