HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

Determining width of paths

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
widthdeterminingpaths

Problem

I have an image, like the one below that has different paths. I want to be able to detect the thin parts of these paths and highlight them. What is the best way to go about this?

Solution

Just an idea that might work. Let original image be $I_0$. Erode just enough to remove the thin lines, then dilate back to obtain $I_1$. Afterwards, obtain the difference of the $I_0$ and $I_1$.

Context

StackExchange Computer Science Q#33080, answer score: 6

Revisions (0)

No revisions yet.