Skip to content

Commit ffa3538

Browse files
authored
Merge pull request #15 from maple60/codex/rename-app-and-repository-to-leafcontourefd
Rename/rebrand project and artifacts to LeafContourEFD
2 parents f5796b5 + 1c7b96b commit ffa3538

20 files changed

Lines changed: 115 additions & 115 deletions

.github/workflows/release-standalone.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
include:
2020
- name: windows-x64
2121
os: windows-latest
22-
archive_name: LeafShapeTool-windows-x64.zip
22+
archive_name: LeafContourEFD-windows-x64.zip
2323
- name: macos-arm64
2424
os: macos-15
25-
archive_name: LeafShapeTool-macos-arm64.tar.gz
25+
archive_name: LeafContourEFD-macos-arm64.tar.gz
2626
- name: macos-x64
2727
os: macos-15-intel
28-
archive_name: LeafShapeTool-macos-x64.tar.gz
28+
archive_name: LeafContourEFD-macos-x64.tar.gz
2929
- name: ubuntu-x64
3030
os: ubuntu-latest
31-
archive_name: LeafShapeTool-ubuntu-x64.tar.gz
31+
archive_name: LeafContourEFD-ubuntu-x64.tar.gz
3232

3333
steps:
3434
- name: Checkout
@@ -58,17 +58,17 @@ jobs:
5858
if: startsWith(matrix.os, 'windows')
5959
shell: pwsh
6060
run: |
61-
Compress-Archive -Path dist/LeafShapeTool/* -DestinationPath ${{ matrix.archive_name }}
61+
Compress-Archive -Path dist/LeafContourEFD/* -DestinationPath ${{ matrix.archive_name }}
6262
6363
- name: Archive build output (macOS/Linux)
6464
if: ${{ !startsWith(matrix.os, 'windows') }}
6565
run: |
66-
tar -C dist -czf "${{ matrix.archive_name }}" LeafShapeTool
66+
tar -C dist -czf "${{ matrix.archive_name }}" LeafContourEFD
6767
6868
- name: Upload build artifact
6969
uses: actions/upload-artifact@v4
7070
with:
71-
name: LeafShapeTool-${{ matrix.name }}
71+
name: LeafContourEFD-${{ matrix.name }}
7272
path: ${{ matrix.archive_name }}
7373

7474
release:
@@ -92,7 +92,7 @@ jobs:
9292
mkdir -p release-assets
9393
9494
shopt -s globstar nullglob
95-
for file in artifacts/**/LeafShapeTool-*.zip artifacts/**/LeafShapeTool-*.tar.gz; do
95+
for file in artifacts/**/LeafContourEFD-*.zip artifacts/**/LeafContourEFD-*.tar.gz; do
9696
[ -f "$file" ] || continue
9797
base="$(basename "$file")"
9898
size_bytes="$(stat -c%s "$file")"
@@ -124,7 +124,7 @@ jobs:
124124
} > "$notes_file"
125125
126126
shopt -s nullglob
127-
for asset in release-assets/LeafShapeTool-*.zip release-assets/LeafShapeTool-*.tar.gz; do
127+
for asset in release-assets/LeafContourEFD-*.zip release-assets/LeafContourEFD-*.tar.gz; do
128128
[ -f "$asset" ] || continue
129129
base="$(basename "$asset")"
130130
@@ -134,10 +134,10 @@ jobs:
134134
135135
if [[ "$asset" == *.zip ]]; then
136136
unzip -q "$asset" -d "$workdir"
137-
exe_path="$(find "$workdir" -type f -name 'LeafShapeTool.exe' | head -n 1 || true)"
137+
exe_path="$(find "$workdir" -type f -name 'LeafContourEFD.exe' | head -n 1 || true)"
138138
else
139139
tar -xzf "$asset" -C "$workdir"
140-
exe_path="$(find "$workdir" -type f -name 'LeafShapeTool' | head -n 1 || true)"
140+
exe_path="$(find "$workdir" -type f -name 'LeafContourEFD' | head -n 1 || true)"
141141
fi
142142
143143
if [ -n "$exe_path" ] && [ -f "$exe_path" ]; then

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Leaf Shape Analysis Tool
1+
# LeafContourEFD
22

33
[**日本語のREADMEはこちら (Japanese README is here)**](README_ja.md)
44

5-
**Full documentation:** [https://maple60.github.io/morphometrics-tool/](https://maple60.github.io/morphometrics-tool/)
5+
**Full documentation:** [https://maple60.github.io/leaf-contour-efd/](https://maple60.github.io/leaf-contour-efd/)
66

77
A **[**napari**](https://napari.org/stable/)-based graphical user interface (GUI)** for fully reproducible extraction, orientation, and morphometric analysis of leaf outlines.
88
This tool allows researchers to perform every processing step interactively — from setting image scale to exporting normalized Elliptic Fourier Descriptors (EFDs) — all within a single, unified environment.
@@ -29,7 +29,7 @@ This tool allows researchers to perform every processing step interactively —
2929

3030
## Installation
3131

32-
There are three ways to install and run the Leaf Shape Analysis Tool.
32+
There are three ways to install and run the LeafContourEFD.
3333
Choose the method that best fits your environment.
3434

3535
| Method | Description | Recommended for |
@@ -40,12 +40,12 @@ Choose the method that best fits your environment.
4040

4141
### 1. Standalone App (Recommended)
4242

43-
Download the latest release from the [Releases page](https://github.com/maple60/morphometrics-tool/releases)
43+
Download the latest release from the [Releases page](https://github.com/maple60/leaf-contour-efd/releases)
4444
No Python installation is required.
4545

46-
- On **Windows**: run `LeafShapeTool.exe`
46+
- On **Windows**: run `LeafContourEFD.exe`
4747
- On **macOS**: run the app bundle or binary from the downloaded archive
48-
- On **Linux**: extract the release archive and run `LeafShapeTool` from the `LeafShapeTool/` folder
48+
- On **Linux**: extract the release archive and run `LeafContourEFD` from the `LeafContourEFD/` folder
4949

5050
::: {.callout-warning}
5151
## If the app does not open on macOS
@@ -55,10 +55,10 @@ On macOS, a warning dialog may appear the first time you launch the app, and the
5555
If this happens, run the following command in Terminal:
5656

5757
```bash
58-
/usr/bin/xattr -dr com.apple.quarantine ~/path/to/LeafShapeTool
58+
/usr/bin/xattr -dr com.apple.quarantine ~/path/to/LeafContourEFD
5959
```
6060

61-
Replace `~/path/to/LeafShapeTool` with the path to the downloaded app.
61+
Replace `~/path/to/LeafContourEFD` with the path to the downloaded app.
6262

6363
After running the command, try launching the app again.
6464
:::
@@ -68,8 +68,8 @@ After running the command, try launching the app again.
6868
Clone the repository and launch the tool using the provided script.
6969

7070
```bash
71-
git clone https://github.com/maple60/morphometrics-tool.git
72-
cd morphometrics-tool
71+
git clone https://github.com/maple60/leaf-contour-efd.git
72+
cd leaf-contour-efd
7373
```
7474
- Windows
7575

@@ -113,11 +113,11 @@ For details about each model, refer to the following page:
113113
After installation, launch the tool with:
114114

115115
```bash
116-
leaf-shape-tool
116+
leaf-contour-efd
117117
```
118118

119119
> [!NOTE]
120-
> For full setup instructions (including uv, git, and checkpoint downloads), see the [Installation Guide](https://maple60.github.io/morphometrics-tool/installation.html).
120+
> For full setup instructions (including uv, git, and checkpoint downloads), see the [Installation Guide](https://maple60.github.io/leaf-contour-efd/installation.html).
121121
122122
## Workflow & Usage
123123

@@ -150,7 +150,7 @@ flowchart LR
150150
Each processing step corresponds to a dedicated GUI widget,
151151
and all results (images, contours, metadata, EFDs) are automatically exported to the `output/` directory.
152152

153-
For a detailed step-by-step guide, please refer to the [Usage page](https://maple60.github.io/morphometrics-tool/usage.html).
153+
For a detailed step-by-step guide, please refer to the [Usage page](https://maple60.github.io/leaf-contour-efd/usage.html).
154154

155155
## Citation
156156

@@ -170,14 +170,14 @@ The design and implementation of this tool were inspired by the methodology and
170170

171171
We also acknowledge the contributions of many other open-source tools and studies
172172
that have advanced automated leaf image analysis.
173-
A summary of related software can be found on the [Related Tools page](https://maple60.github.io/morphometrics-tool/related_tools.html).
173+
A summary of related software can be found on the [Related Tools page](https://maple60.github.io/leaf-contour-efd/related_tools.html).
174174

175175
We express our sincere gratitude to the open-source community and all contributors
176176
whose work made this tool possible.
177177

178178
## License
179179

180-
Distributed under the BSD 3-Clause License. See [LICENSE](https://github.com/maple60/morphometrics-tool/blob/main/LICENSE) for more information.
180+
Distributed under the BSD 3-Clause License. See [LICENSE](https://github.com/maple60/leaf-contour-efd/blob/main/LICENSE) for more information.
181181

182182
## AI Assistant
183183

README_ja.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Leaf Shape Analysis Tool
1+
# LeafContourEFD
22

3-
[English README is here (README.md)](https://github.com/maple60/morphometrics-tool/tree/main)
3+
[English README is here (README.md)](https://github.com/maple60/leaf-contour-efd/tree/main)
44

5-
**ドキュメントサイト:** [https://maple60.github.io/morphometrics-tool/](https://maple60.github.io/morphometrics-tool/)
5+
**ドキュメントサイト:** [https://maple60.github.io/leaf-contour-efd/](https://maple60.github.io/leaf-contour-efd/)
66

77
[**napari**](https://napari.org/stable/) を基盤としたグラフィカルユーザーインターフェース(GUI)で、葉の輪郭抽出・方向補正・楕円フーリエ記述子(elliptic Fourier descriptor) の算出を再現可能な形で実行できます。
88

@@ -40,12 +40,12 @@
4040

4141
### 1. スタンドアロンアプリ(推奨)
4242

43-
最新のリリースは [Releasesページ](https://github.com/maple60/morphometrics-tool/releases) からダウンロードいただけます。
43+
最新のリリースは [Releasesページ](https://github.com/maple60/leaf-contour-efd/releases) からダウンロードいただけます。
4444
Python のインストールは不要です。
4545

46-
- **Windows**`LeafShapeTool.exe` を実行
46+
- **Windows**`LeafContourEFD.exe` を実行
4747
- **macOS**:ダウンロードしたアーカイブ内のアプリバンドルまたは実行ファイルを起動
48-
- **Linux**: リリースアーカイブを展開し、`LeafShapeTool/` フォルダ内の `LeafShapeTool` を起動
48+
- **Linux**: リリースアーカイブを展開し、`LeafContourEFD/` フォルダ内の `LeafContourEFD` を起動
4949

5050
::: {.callout-warning}
5151
## macOSでアプリが開けない場合
@@ -54,10 +54,10 @@ macOSでは、アプリの初回起動時に警告ダイアログが表示され
5454
その場合は、ターミナルで以下のコマンドを実行してください。
5555

5656
```bash
57-
/usr/bin/xattr -dr com.apple.quarantine ~/path/to/LeafShapeTool
57+
/usr/bin/xattr -dr com.apple.quarantine ~/path/to/LeafContourEFD
5858
```
5959

60-
`~/path/to/LeafShapeTool`は、ダウンロードしたアプリのパスに置き換えてください。
60+
`~/path/to/LeafContourEFD`は、ダウンロードしたアプリのパスに置き換えてください。
6161
コマンド実行後、再度アプリを起動してください。
6262
:::
6363

@@ -66,8 +66,8 @@ macOSでは、アプリの初回起動時に警告ダイアログが表示され
6666
リポジトリをクローンし、提供されているスクリプトでツールを起動します。
6767

6868
```bash
69-
git clone https://github.com/maple60/morphometrics-tool.git
70-
cd morphometrics-tool
69+
git clone https://github.com/maple60/leaf-contour-efd.git
70+
cd leaf-contour-efd
7171
```
7272

7373
- Windows
@@ -111,11 +111,11 @@ SAM2 を利用する場合は、チェックポイントを sam2/checkpoints/
111111
インストールが完了したら、以下の方法で起動します:
112112

113113
```bash
114-
leaf-shape-tool
114+
leaf-contour-efd
115115
```
116116

117117
> [!NOTE]
118-
> `uv``git`・チェックポイントのダウンロードなど、より詳細な手順は [Installation ページ](https://maple60.github.io/morphometrics-tool/installation.html) を参照してください。
118+
> `uv``git`・チェックポイントのダウンロードなど、より詳細な手順は [Installation ページ](https://maple60.github.io/leaf-contour-efd/installation.html) を参照してください。
119119
120120
### ワークフローと使い方
121121

@@ -148,7 +148,7 @@ flowchart LR
148148
各処理ステップは専用のGUIウィジェットに対応しており、
149149
解析結果(画像・輪郭・メタデータ・EFD)は自動的に `output/` ディレクトリに保存されます。
150150

151-
詳しい操作手順については、[Usage ページ](https://maple60.github.io/morphometrics-tool/usage.html) を参照してください。
151+
詳しい操作手順については、[Usage ページ](https://maple60.github.io/leaf-contour-efd/usage.html) を参照してください。
152152

153153
## 引用情報(Citation)
154154

@@ -169,12 +169,12 @@ flowchart LR
169169
さらに、本研究を支える数多くのオープンソースプロジェクトの開発者・貢献者の皆様に深く感謝申し上げます。
170170

171171
また、葉画像解析の自動化分野を発展させてきた多くのオープンソースツールや研究に感謝いたします。
172-
関連するソフトウェアの概要は、[Related Tools ページ](https://maple60.github.io/morphometrics-tool/related_tools.html) にまとめています。
172+
関連するソフトウェアの概要は、[Related Tools ページ](https://maple60.github.io/leaf-contour-efd/related_tools.html) にまとめています。
173173

174174
## ライセンス
175175

176176
本ソフトウェアは **BSD 3-Clause License** の下で配布されています。
177-
詳細は [LICENSE](https://github.com/maple60/morphometrics-tool/blob/main/LICENSE) をご覧ください。
177+
詳細は [LICENSE](https://github.com/maple60/leaf-contour-efd/blob/main/LICENSE) をご覧ください。
178178

179179
## AI利用について
180180

build.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ exe = EXE(
129129
a.scripts,
130130
[],
131131
exclude_binaries=True,
132-
name="LeafShapeTool",
132+
name="LeafContourEFD",
133133
debug=False,
134134
bootloader_ignore_signals=False,
135135
strip=False,
@@ -144,5 +144,5 @@ coll = COLLECT(
144144
a.datas,
145145
strip=False,
146146
upx=True,
147-
name="LeafShapeTool",
147+
name="LeafContourEFD",
148148
)

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "leaf-shape-tool"
2+
name = "leaf-contour-efd"
33
version = "1.0.0"
44

55
requires-python = ">=3.11, <3.13"
@@ -30,7 +30,7 @@ dependencies = [
3030
]
3131

3232
[project.scripts]
33-
leaf-shape-tool = "leaf_shape_tool.main:main"
33+
leaf-contour-efd = "leaf_shape_tool.main:main"
3434

3535
[tool.setuptools.packages.find]
3636
where = ["src"]
@@ -54,4 +54,4 @@ members = [
5454
]
5555

5656
[tool.uv.sources]
57-
leaf-shape-tool = { workspace = true }
57+
leaf-contour-efd = { workspace = true }

setup/setup_unix.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ else
4747
echo "[Info] sam2/checkpoints directory not found."
4848
fi
4949

50-
# === Step 6: Run the Leaf Shape Tool ===
51-
echo "Launching Leaf Shape Tool..."
52-
leaf-shape-tool
50+
# === Step 6: Run the LeafContourEFD ===
51+
echo "Launching LeafContourEFD..."
52+
leaf-contour-efd
5353

5454
# =========================
5555
# Functions

setup/setup_windows.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ if exist "sam2\checkpoints" (
4242
echo [Info] sam2\checkpoints directory not found. Skipping checkpoint download.
4343
)
4444

45-
REM === Step 6: Run the Leaf Shape Tool ===
46-
echo Launching Leaf Shape Tool...
47-
leaf-shape-tool
45+
REM === Step 6: Run the LeafContourEFD ===
46+
echo Launching LeafContourEFD...
47+
leaf-contour-efd
4848

4949
pause
5050
exit /b 0

src/leaf_shape_tool/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# src/leaf_shape_tool/__main__.py
22

33
"""
4-
Command-line entry point for the Leaf Shape Analysis Tool.
4+
Command-line entry point for the LeafContourEFD.
55
"""
66

77
from leaf_shape_tool.main import main

src/leaf_shape_tool/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ def _add_roi_shortcut(v):
181181
# Run Napari viewer
182182
# ---------------------------------------------------------------------
183183
def main():
184-
"""Launch the Leaf Shape Analysis Tool GUI."""
185-
viewer.title = "Leaf Shape Analysis Tool — powered by napari" # Set window title
184+
"""Launch the LeafContourEFD GUI."""
185+
viewer.title = "LeafContourEFD — powered by napari" # Set window title
186186
napari.run() # Run the viewer
187187

188188

src/leaf_shape_tool/widgets/binarize_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
binarize_image.py
33
-----------------
44
A napari widget for image binarization using Otsu thresholding or SAM2 segmentation.
5-
This module is part of the Leaf Shape Analysis Tool.
5+
This module is part of the LeafContourEFD.
66
"""
77

88
# --- Fix PyTorch DLL loading in PyInstaller ---

0 commit comments

Comments
 (0)