lines detection/recognisation
Is there a way to implement this in c# windows form?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Mar 3, 2010, 2:25 AM
theLizardPosted Mar 2, 2010, 4:31 PM
I have never used it, I came across it a while back while looking for some thing else so never really had a need to keep track of it but I am sure that through it or links on the pages there is code that does what you are after, I believe it is used to identify boundaries of objects and such.
This is about as much as I can help good luck Jason.
JasonPosted Mar 2, 2010, 5:43 AM
theLizardPosted Mar 2, 2010, 2:24 AM
The difference here is that I openly state that my example is crap and not to use it.
Why does it sound like a question about electronics, it could well have been a question about gas mains detection underground.
One other thing, a much much more talented programmer than I said on another forum C++ that something could not be done in response to a question asked, I responded with source code showing how to do what could not be done.
I did not do it to show up the talented programmer I did it because I refused to accept that some things cannot be done all you need to do is free your mind and think outside the square.
I hope you understand what I am saying...
Sam HobbsPosted Mar 2, 2010, 12:15 AM
theLizardPosted Mar 1, 2010, 7:15 PM
Yes there is always a way of doing things even if using a ?anable language.
Sometimes it is how you ask google the question, some people on this form simply respond because they want points.
this link explains some of the details you want http://www.mathtools.net/MATLAB/Image_Processing/
ask google this question "detecting rectangles c#"
It is NOT that difficult to read in pixel colors form an image file, what you need to do is store the values in an array then analyse the arrays values looking for the pattern you seek.
if(row[0] pixcell[0] == clBlack) is it start of a line?
maybe
if(row[0] pixel[1] == clBlack) could be a line
keep going
if(row[0] pixel[2] == clBlack) is this a pattern i detect!
could be
if(row[0] pixel[3] == clBlack) Hmmm looks like a pttern
Ok this is not conclusive
if(row[0] pixel[0] == clBlack && row[1] pixel[0] == clBlack)
if(row[0] pixel[1] == clBlack && row[2] pixel[0] == clblack) what is the angle
Now this is a pretty crappy way of doing things but it may work albeit a completely inefficient way.
I am sure MATLAB may help you in the right as I recall seeing example code some where that dealt with these issues
ps don't try to use the example code it will not work just there to help you visualize a solution.
Sam HobbsPosted Mar 1, 2010, 6:15 PM
Buildig contractors sometimes get blueprints and they need to analyze the blueprints in order to decide whether to bid on the project and how much to bid and such. That is often called a "take-off". Are you doing something such as that?
The requirements of such a software project are significant. It is not easy to do. You need to get a book that teaches graphics programming. You should look for a book that teaches about graphics recognition explicitely. There is probably software that has already been developed that will help, but you might have to pay for it.
JasonPosted Mar 1, 2010, 7:32 AM
Sam HobbsPosted Feb 25, 2010, 6:39 PM
The subject should be used just to give other people an indication of whether they are likely to help, or if the question will help them if they are looking for answers. The subject should not be for the question itself. You should create a subject that experts can use to decide whether to look at your question. The subject "lines detection/recognisation" sounds like a question about electronics so experienced developers are less likely to look at it.