Forgot password?
 Create new account
View 239|Reply 4

位图转矢量图

[Copy link]

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2022-3-8 11:19:21 |Read mode
For auto-tracing programs, try AutoTrace, potrace, or VectorMagic.

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2022-8-13 02:16:47
Inkscape 也可以.
You can use this feature to turn a raster image to paths that you can use and edit in your design. This process is called ‘Tracing’ or ‘Vectorization’. If you expect a 100% faithful representation of your picture, though, only in vector format, you will be disappointed.

zh.m.wikipedia.org/zh/剪影
剪影(法語:silhouette)是一種將人事物用單色描繪(通常以黑色為主),凸顯輪廓的藝術圖像,或指剪影藝術本身,可屬一種視覺藝術,剪影被運用在各種方面。
Inkscape Tutorial: Create Vector Silhouettes from Any Image (教程:從位圖製作矢量剪影)

17

Threads

126

Posts

1822

Credits

Credits
1822

Show all posts

uk702 Posted at 2022-8-13 08:33:13
试了一下 potrace 将 Geogebra 生成的几何图形转成 svg,不添加参数(默认),发现两个问题:
1. 丢颜色
2. 部分丢字符(用于标识点的的标签)
3. 生成图形质量一般

评价:不可用与凑合之间

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2022-8-13 09:18:57
uk702 发表于 2022-8-13 01:33
不添加参数(默认)

可以手动调整颜色数, edge detect的threshold以及path的smooth程度等参数,根据需求找到效果最好的值。
“部分丢字符”可能是因为带有不同的颜色,可以先binarize image。
另外Geogebra本身可以导出svg

Comment

是的,Geogebra 本身可以转 svg,只是大小太大了,我通常要用 svgo 再优化一遍。  Posted at 2022-8-13 17:22

手机版Mobile version|Leisure Math Forum

2025-4-20 22:08 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list