I am quite a noob when it comes to image processing. I choosed OpenCV to make my first steps. I was searching for a WYSIWYG editor to play around with the features OpenCV offers but I couldn't find.
My current problem is to detect the horizontal and vertical black lines in this picture going from most left to most right and from most top to most bottom:
I found out I can use HoughLinesP for this but the only parameter I am sure it is correct is the the minLineLength of the line. Actually it doesn't find any lines. I am reading the image as a grayscaled image but I am not sure if I need to make use of Canny before applying it to HoughLinesP.
Thanks for help.
Here is some C# code:
var image = CvInvoke.Imread(filePath, Emgu.CV.CvEnum.ImreadModes.Grayscale);
var lines = CvInvoke.HoughLinesP(image, 1, 1, 0, image.Height);
As @Micka mentioned I should invert the image and I tried further steps to make it even simpler I started with a simple cross picture:
var image = CvInvoke.Imread("cross.png", Emgu.CV.CvEnum.ImreadModes.Grayscale);
CvInvoke.BitwiseNot(image, image);
var lines = CvInvoke.HoughLinesP(image, rho: 1, theta: 1, 0, image.Height - 1);
But it detects only one line of length 8 but it should be 9 pixels long.