please, help
how to make the skeleton of letters?
pixel size: 1
handwriting and skeleton
-
- Posts: 5
- Joined: 2016-04-13T07:46:37-07:00
- Authentication code: 1151
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: handwriting and skeleton
Code: Select all
convert f3ca1fa924da.jpg -negate -morphology Thinning:-1 Skeleton -negate s.png
snibgo's IM pages: im.snibgo.com
-
- Posts: 5
- Joined: 2016-04-13T07:46:37-07:00
- Authentication code: 1151
Re: handwriting and skeleton
How to make that did not show the width of the letters?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: handwriting and skeleton
I don't understand the question. The output from my command is:mmmaks2004 wrote:How to make that did not show the width of the letters?
snibgo's IM pages: im.snibgo.com
-
- Posts: 5
- Joined: 2016-04-13T07:46:37-07:00
- Authentication code: 1151
Re: handwriting and skeleton
The output from your command is:
how to remove the line width:
best:
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: handwriting and skeleton
You want to remove some lines from the output. What rules determine which lines are to be removed?
snibgo's IM pages: im.snibgo.com
-
- Posts: 5
- Joined: 2016-04-13T07:46:37-07:00
- Authentication code: 1151
Re: handwriting and skeleton
maybe so,
Rules:
1. Find points that form a junction of 3 lines
3. Remove the shortest line (from 3 lines), if the length is less than 10 pixels
Is it possible to reduce the thickness of the lines of letters to 1 pixel?
Rules:
1. Find points that form a junction of 3 lines
3. Remove the shortest line (from 3 lines), if the length is less than 10 pixels
Is it possible to reduce the thickness of the lines of letters to 1 pixel?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: handwriting and skeleton
See the morphology page I linked to.
Each line has two or more line-ends (except for loops), and zero or more junctions. The lines can be broken at junctions into segments. We can forget about segments that don't have a line-end. "-connected-components" tells us the size of each segment, so we can remove all segments that are smaller than a certain size.
When we have found segments, I can't see how to easily identify which segments have a common junction.
Each line has two or more line-ends (except for loops), and zero or more junctions. The lines can be broken at junctions into segments. We can forget about segments that don't have a line-end. "-connected-components" tells us the size of each segment, so we can remove all segments that are smaller than a certain size.
When we have found segments, I can't see how to easily identify which segments have a common junction.
snibgo's IM pages: im.snibgo.com