Added the open and close functionality in the GUI.

Open and close : Different sequences of doing the dilate and erode operations. [Refer](http://docs.opencv.org/trunk/doc/py_tutorials/py_imgproc/py_morphological_ops/py_morphological_ops.html#opening) here.