Is there any algorithm for finding LINES by PIXEL COLORS on picture?
So I have Image like this
(source: de-viz.ru)I want to get something like this (I hevent drawn all lines I want but I hope you can get my idea)
(source: narod.ru)I need algorithm for finding all straight lines on it by just reading colors of pixels. No hard math, no Haar, no Hough. Some algorithm which would be based on points colors. I want to give to algorithm parameters like min line length and max line distortion. I want to get relati开发者_如何学Pythonve to picture pixel coords start and end points of lines.
So I need algorithm for finding straight lines of different colors on picture. Algorithm which would be based on idea of image of different colors and Lines of static colors. Yes - such algorithm will not work for images with lots of shadows and lights. But It willl probably be fast (I hope so).
Is there any such algorithm?
IPOL : LSD: a Line Segment Detector
Just do some post-processing. You get all edges from LSD, then you only keep the ones you want by computing their length.
You should use an edge detect filter.
精彩评论