diff --git "a/docs/03_TECH/TECH_01_\346\223\215\350\210\265\351\207\217\350\250\210\347\256\227\344\273\225\346\247\230.txt" "b/docs/03_TECH/TECH_01_\346\223\215\350\210\265\351\207\217\350\250\210\347\256\227\344\273\225\346\247\230.txt" index fdc1134..0b09d33 100644 --- "a/docs/03_TECH/TECH_01_\346\223\215\350\210\265\351\207\217\350\250\210\347\256\227\344\273\225\346\247\230.txt" +++ "b/docs/03_TECH/TECH_01_\346\223\215\350\210\265\351\207\217\350\250\210\347\256\227\344\273\225\346\247\230.txt" @@ -171,7 +171,7 @@ 6. パラメータ一覧 (Parameters) ------------------------------------------------------------------------ - ■ 画像処理パラメータ(GUI で調整可能) + ■ 二値化パラメータ(GUI で調整可能) GUI のコンボボックスで検出手法を切り替えられる. 手法ごとに使用するパラメータが異なり, diff --git "a/docs/03_TECH/TECH_02_\343\202\267\343\202\271\343\203\206\343\203\240\346\247\213\346\210\220\344\273\225\346\247\230.txt" "b/docs/03_TECH/TECH_02_\343\202\267\343\202\271\343\203\206\343\203\240\346\247\213\346\210\220\344\273\225\346\247\230.txt" index 93307ae..e00c748 100644 --- "a/docs/03_TECH/TECH_02_\343\202\267\343\202\271\343\203\206\343\203\240\346\247\213\346\210\220\344\273\225\346\247\230.txt" +++ "b/docs/03_TECH/TECH_02_\343\202\267\343\202\271\343\203\206\343\203\240\346\247\213\346\210\220\344\273\225\346\247\230.txt" @@ -108,7 +108,7 @@ ■ パラメータ調整 ・PD 制御パラメータ(Kp,Kh,Kd 等)をリアルタイムに変更できる UI を設ける. - ・画像処理パラメータ(二値化閾値,CLAHE 強度等)も + ・二値化パラメータ(二値化閾値,CLAHE 強度等)も リアルタイムに変更できる. ・変更したパラメータは即座に処理に反映される. diff --git a/src/pc/gui/main_window.py b/src/pc/gui/main_window.py index a822003..6525e9a 100644 --- a/src/pc/gui/main_window.py +++ b/src/pc/gui/main_window.py @@ -200,7 +200,7 @@ ) control_layout.addWidget(self._control_label) - # 画像処理パラメータパネル + # 二値化パラメータパネル self._image_panel = ImageParamPanel( self._pd_control.image_params, ) @@ -279,7 +279,7 @@ def _on_image_params_changed( self, ip: ImageParams, ) -> None: - """画像処理パラメータの変更を全制御クラスに反映する""" + """二値化パラメータの変更を全制御クラスに反映する""" self._pd_control.image_params = ip self._pursuit_control.image_params = ip self._ts_pd_control.image_params = ip diff --git a/src/pc/gui/panels/image_param_panel.py b/src/pc/gui/panels/image_param_panel.py index 61e4175..570daa3 100644 --- a/src/pc/gui/panels/image_param_panel.py +++ b/src/pc/gui/panels/image_param_panel.py @@ -1,6 +1,6 @@ """ image_param_panel -画像処理パラメータ調整 UI パネル +二値化パラメータ調整 UI パネル """ from PySide6.QtCore import Signal @@ -40,15 +40,15 @@ class ImageParamPanel(CollapsibleGroupBox): - """画像処理パラメータ調整 UI""" + """二値化パラメータ調整 UI""" - # 画像処理パラメータが変更されたときに emit する + # 二値化パラメータが変更されたときに emit する image_params_changed = Signal(object) # 検出手法が変更されたときに emit する(新手法キー) method_changed = Signal(str) def __init__(self, image_params: ImageParams) -> None: - super().__init__("画像処理パラメータ") + super().__init__("二値化パラメータ") self._image_params = image_params self._auto_save_enabled = False self._image_presets: list[ImagePreset] = [] @@ -61,7 +61,7 @@ self._auto_save_enabled = True def get_image_params(self) -> ImageParams: - """現在の画像処理パラメータを返す""" + """現在の二値化パラメータを返す""" return self._image_params def _setup_ui(self) -> None: @@ -383,7 +383,7 @@ methods: set[str], field: str, ) -> None: - """画像処理パラメータの行を追加する + """二値化パラメータの行を追加する Args: label: フォームラベル diff --git a/src/pc/steering/auto_params.py b/src/pc/steering/auto_params.py index 5ee974b..dc62da5 100644 --- a/src/pc/steering/auto_params.py +++ b/src/pc/steering/auto_params.py @@ -9,10 +9,10 @@ ├── pursuit.json パシュート制御パラメータ ├── ts_pd.json Theil-Sen PD 制御パラメータ ├── overlay.json オーバーレイ表示フラグ - ├── detect_current.json 現行手法の画像処理パラメータ - ├── detect_blackhat.json 案A の画像処理パラメータ - ├── detect_dual_norm.json 案B の画像処理パラメータ - └── detect_robust.json 案C の画像処理パラメータ + ├── detect_current.json 現行手法の二値化パラメータ + ├── detect_blackhat.json 案A の二値化パラメータ + ├── detect_dual_norm.json 案B の二値化パラメータ + └── detect_robust.json 案C の二値化パラメータ """ from dataclasses import asdict @@ -174,7 +174,7 @@ Args: method: 検出手法の識別子 - params: 画像処理パラメータ + params: 二値化パラメータ """ filename = _DETECT_FILES.get(method) if filename is None: @@ -191,7 +191,7 @@ method: 検出手法の識別子 Returns: - 画像処理パラメータ(ファイルがない場合はデフォルト) + 二値化パラメータ(ファイルがない場合はデフォルト) """ filename = _DETECT_FILES.get(method) if filename is None: diff --git a/src/pc/steering/param_store.py b/src/pc/steering/param_store.py index 8c88b98..503bf7c 100644 --- a/src/pc/steering/param_store.py +++ b/src/pc/steering/param_store.py @@ -110,12 +110,12 @@ @dataclass class ImagePreset: - """画像処理パラメータのプリセット + """二値化パラメータのプリセット Attributes: title: プリセットのタイトル memo: メモ - image_params: 画像処理パラメータ + image_params: 二値化パラメータ """ title: str diff --git a/src/pc/vision/line_detector.py b/src/pc/vision/line_detector.py index 09115bf..7155d16 100644 --- a/src/pc/vision/line_detector.py +++ b/src/pc/vision/line_detector.py @@ -36,7 +36,7 @@ @dataclass class ImageParams: - """画像処理パラメータ + """二値化パラメータ Attributes: method: 検出手法の識別子 @@ -165,7 +165,7 @@ Args: frame: グレースケールのカメラ画像 - params: 画像処理パラメータ(None でデフォルト) + params: 二値化パラメータ(None でデフォルト) Returns: 線検出の結果