No project description provided
Project description
Wavefront_package このツールはYanatori (2022) を修正したツールです install 方法 pip install wavefront_package 実行方法 python -m wavefront_package 主な機能 Vronoi図の生成 経路探査 依存関係 numpy matplotlib opencv-python ファイルの説明 circle.csv 生成源のデータ main.pyは 必要なモジュールをインストールしています. コマンドライン引数が2個未満の時,メインプログラム(wavefront_5_pac.py)が実行されます ファイルの入力 スタート点とゴール点の設定 出力画像の表示を行う 画像の大きさ Voronoi(縦,横) 指定 以下 主な変数の説明 vor.file_input('datefile') で入力ファイルの指定します diagram = vor.voronoi_tessellation() ボロノイ図の生成 path = vor.search_path(maze,s,g,8) sとgの座標を入力します ex. s:(200,180),g:(270,320) plt.imshow(maze, cmap=ListedColormap(['white','black','red','gray'])) ボロノイ図の色をつける この処理はなくてもいいが場合により見えずらくなる for y in range(maze.shape[0]): for x in range(maze.shape[1]): if maze[y,x] == 1: plt.scatter(x,y,color='black', s= 3) elif maze[y,x] == 4: plt.scatter(x,y,color='red',s=4) 線の色を変えたり大きさを変えている. この処理を加えることで実行時間は短くなるが,線は見えやすくなる ここではボロノイ境界線を通常の3倍の太さにスタート点から境界上の点までの線とゴール点から 境界上の点までの線を4倍の太さにしている wavefront_5_pac.py メインのプログラムです setup.py パッケージのメタデータを定義する
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wavefront_package-1.0.1-py3-none-any.whl.
File metadata
- Download URL: wavefront_package-1.0.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
172cb8f6ff12305c0aa6137433ab47690d7168b6172403a15462cca9c84fdc32
|
|
| MD5 |
7bb1ef8239b0afa69d3cae00a05cfd1d
|
|
| BLAKE2b-256 |
c2fe4a467097a6dc5fc05ea7a1f77055eebd9275765c90df1ae9828050f9d987
|