I am new in image processing and attempting to write a Scala program for edge detection in an image. I tried this sample in here: https://code.ros.org/trac/opencv/browser/trunk/opencv/samples/cpp/edge.cpp?rev=4079
but there are some problems with my code. This is my code :
def onTrackbar( a:Int) {
Imgproc.blur(dst, dst, Size(3,3))
Imgproc.Canny(dst, dst, 1, 1*3, 3)
}//onTrackbar for tracking should be translated from the C++ code sample
createTrackbar("Canny threshold", "Edge map", 1, 100, onTrackbar)
onTrackbar(0, 0)
First, I don't know if that's the right way to send int and void (Unit) variables.
Second, the compiler keep saying that it cannot recognize "createTrackbar" although I have imported the Imgproc library.
Third, compiler says : "overloaded method value Canny with alternatives" I have seen several samples and tried to follow them. but it's not working, I appreciate if anyone can help me.