static void Main(String[] args) { Mat img = CvInvoke.Imread(); Mat d = new Mat(); Mat e = new Mat(); Mat element = CvInvoke.GetStructuringElement(ElementShape.Rectangle, , ),,-)); CvInvoke.Dilate(img, d, element, , -),,BorderType.Default,,,)); CvInvo…