}
public void findSobelEdges(int dx, int dy){
Mat sobeled = new Mat(getCurrentMat().height(), getCurrentMat().width(), CvType.CV_32F);
Imgproc.Sobel(getCurrentMat(), sobeled, CvType.CV_32F, dx, dy);
sobeled.convertTo(getCurrentMat(), getCurrentMat().type());
}
public void findScharrEdges(int direction){
if(direction == HORIZONTAL){
Imgproc.Scharr(getCurrentMat(), getCurrentMat(), -1, 1, 0 );