opencv - Detecting irregular lines/polyline in matlab -
opencv - Detecting irregular lines/polyline in matlab -
i quite new matlab , image processing
what trying accomplish observe irregular lines in image. example, in next image, there 4 polylines:
my goal set of pixel points representing these 4 irregular lines/poly line . this.
i have read through topics border detection (canny) , hough line detection. applied them not know how tune them purpose, , not sure whether going right direction. appreciate if can give me advices or point me useful resources/articles/algorithms/libraries. -------------------edit ------------------------------------
thank input, think gets me right direction. question simpler might think. not trying observe whether lines irregular or not, pixels of detected lines.
in matlab, followed routes:
rgb2gray -> 2bw -> bwmorgh(skeletonize) -> bwconncomp(get connected components)
the result looks me @ moment, thanks.
for scenario
after simple binary thresholding, skeletonize image, label line regions, create straight lines using end points (an end point of skeleton has 1 neighbour)
find max distance skeleton line, if higher threshold (say, line length/dmax < 20), skeleton irregular line
http://opencv-code.com/quick-tips/implementation-of-guo-hall-thinning-algorithm/
for paper map scenario
i guess want find specific roads or borders. @ to the lowest degree have different colors , width, may want smooth aggressively , apply color threshold after. still need work one thousand different maps find generic algorithm.
matlab opencv image-processing computer-vision image-recognition
Comments
Post a Comment