Question

So I have Image like this

 CG generated bathroom
(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)

 Black & White CG generated bathroom with some red lines  between tiles
(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 relative 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?

Was it helpful?

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top