推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
hxse
V2EX  ›  Python

如何用 Python 计算一个图形的分形维度数

  •  
  •   hxse · Aug 13, 2020 · 3388 views
    This topic created in 2126 days ago, the information mentioned may be changed or developed.

    https://www.bilibili.com/video/BV1wx411C7WT/?spm_id_from=333.788.videocard.7

    今天看到了这个视频中用方格计算图形维度数的方法

    假设我有一张英国海岸线的图形文件, 那么我该如何用 python 计算出这个图形的维度数呢, 就像视频里的一样(最好可视化)

    想来想去, 想不到什么好办法, 求教大伙, 有没有什么好思路

    6 replies    2020-08-18 15:29:01 +08:00
    tikazyq
        1
    tikazyq  
       Aug 13, 2020 via iPhone
    啥叫分形维度数?
    elfive
        2
    elfive  
       Aug 13, 2020 via iPhone
    @tikazyq #1 李永乐老师有一期视频说到了分型和小数维度数,包括楼主的这个问题,在这个视频里都可以找到答案,只不过视频里面只有计算思路。
    hxse
        3
    hxse  
    OP
       Aug 13, 2020
    @elfive #2 我需要编程思路, 头大了
    TimePPT
        4
    TimePPT  
    PRO
       Aug 13, 2020   ❤️ 1
    随便搜搜看到这篇,有提到海岸线部分
    http://micro.ustc.edu.cn/CompPhy/lecturenote/comp_sun_2.pdf
    no1xsyzy
        5
    no1xsyzy  
       Aug 13, 2020
    SVG 的话倒是简单(
    necomancer
        6
    necomancer  
       Aug 18, 2020
    一般是 bin count 法吧,粗略但是飞快啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3692 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 10:36 · PVG 18:36 · LAX 03:36 · JFK 06:36
    ♥ Do have faith in what you're doing.