added new edge detection code, can apply any defined kernel to depth image