public void resetting()
{
highgui.CvDestroyAllWindows();
openy = openx = closex = closey = 0;
if(dlgParam != null)
dlgParam.Hide();
if(dlgCanny != null)
dlgCanny.Hide();
if (thresholdToolStripMenuItem.Checked)
showThres = true;
if (edgeToolStripMenuItem.Checked)
showEdge = true;
if (hSVToolStripMenuItem.Checked)
showSkinHSV = true;
if (rGBToolStripMenuItem.Checked)
showSkinRGB = true;
textBox.Clear();
reset = false;
}