diff --git a/.gitignore b/.gitignore index a49d10d..c2f7600 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,14 @@ # シミュ・評価結果(コミット対象外) output/ +# configs/ 配下の生成物(シーン YAML 本体と STL は追跡対象) +configs/*.png +configs/*.npz +configs/view_*.yaml + +# 個人ローカルの参考画像(実機写真・データシート等) +REFERENCE/ + # Python / uv .venv/ __pycache__/ diff --git a/configs/eval_baseline.yaml b/configs/eval_baseline.yaml new file mode 100644 index 0000000..4e904b9 --- /dev/null +++ b/configs/eval_baseline.yaml @@ -0,0 +1,14 @@ +roi: + type: image_pixel + x: 130 + y: 70 + width: 250 + height: 360 +zones: + enabled: true + boundaries: [0.33, 0.66] +metrics: + cov: true + std: true + max_min: true + radial_profile: true diff --git "a/configs/meshes/LED\345\237\272\346\235\277\343\202\253\343\203\220\343\203\274.stl" "b/configs/meshes/LED\345\237\272\346\235\277\343\202\253\343\203\220\343\203\274.stl" new file mode 100644 index 0000000..f0a7fde --- /dev/null +++ "b/configs/meshes/LED\345\237\272\346\235\277\343\202\253\343\203\220\343\203\274.stl" Binary files differ diff --git a/configs/meshes/SH-02M.stl b/configs/meshes/SH-02M.stl new file mode 100644 index 0000000..4a9546c --- /dev/null +++ b/configs/meshes/SH-02M.stl Binary files differ diff --git "a/configs/meshes/\343\202\271\343\203\236\343\203\233\343\203\233\343\203\253\343\203\200.stl" "b/configs/meshes/\343\202\271\343\203\236\343\203\233\343\203\233\343\203\253\343\203\200.stl" new file mode 100644 index 0000000..99bb0bb --- /dev/null +++ "b/configs/meshes/\343\202\271\343\203\236\343\203\233\343\203\233\343\203\253\343\203\200.stl" Binary files differ diff --git "a/configs/meshes/\345\211\215\345\201\264.stl" "b/configs/meshes/\345\211\215\345\201\264.stl" new file mode 100644 index 0000000..ed3f7cd --- /dev/null +++ "b/configs/meshes/\345\211\215\345\201\264.stl" Binary files differ diff --git "a/configs/meshes/\345\276\214\345\201\264.stl" "b/configs/meshes/\345\276\214\345\201\264.stl" new file mode 100644 index 0000000..38a065b --- /dev/null +++ "b/configs/meshes/\345\276\214\345\201\264.stl" Binary files differ diff --git "a/configs/meshes/\347\205\247\346\230\216\343\203\240\343\203\251\350\243\234\346\255\243\343\203\234\343\203\274\343\203\211.stl" "b/configs/meshes/\347\205\247\346\230\216\343\203\240\343\203\251\350\243\234\346\255\243\343\203\234\343\203\274\343\203\211.stl" new file mode 100644 index 0000000..871a0e5 --- /dev/null +++ "b/configs/meshes/\347\205\247\346\230\216\343\203\240\343\203\251\350\243\234\346\255\243\343\203\234\343\203\274\343\203\211.stl" Binary files differ diff --git a/configs/scene_baseline.yaml b/configs/scene_baseline.yaml new file mode 100644 index 0000000..60c97c3 --- /dev/null +++ b/configs/scene_baseline.yaml @@ -0,0 +1,410 @@ +name: baseline_minitias +description: 'MiniTIAS 基準設計の仮置きシーン(Step 8 - 基準設計のキャリブレーション). + + LED 配置・材料パラメータは現時点では仮置きで、実測値と突合しながら調整する. + + ' +geometry: + meshes: + - id: housing_front + path: meshes/前側.stl + unit: mm + material: housing_inner + - id: housing_back + path: meshes/後側.stl + unit: mm + material: housing_inner + - id: phone_holder + path: meshes/スマホホルダ.stl + unit: mm + material: holder_dark + - id: led_cover + path: meshes/LED基板カバー.stl + unit: mm + material: led_cover_white + - id: phone_body + path: meshes/SH-02M.stl + unit: mm + material: phone_body_dark + - id: evaluation_board + path: meshes/照明ムラ補正ボード.stl + unit: mm + material: white_lambert +materials: + housing_inner: + type: diffuse + reflectance: + - 0.85 + - 0.85 + - 0.85 + holder_dark: + type: diffuse + reflectance: + - 0.5 + - 0.5 + - 0.5 + led_cover_white: + # 薄膜誘電体(PMMA 屈折率 1.49).LED 直接光を Fresnel 透過 + 一部反射でディフューザーとして扱う. + # ※ Mitsuba の thindielectric は鏡面反射 + 透過のみで散乱はしないため,乳白色のディフューザー + # 本来の挙動とは異なる.より正確には blendbsdf 等で散乱を足す必要があるが Phase 8 では未対応. + type: thindielectric + int_ior: 1.49 + ext_ior: 1.0 + phone_body_dark: + type: diffuse + reflectance: + - 0.05 + - 0.05 + - 0.05 + white_lambert: + type: diffuse + reflectance: 0.95 +lights: +- id: led_bottom_0 + type: area + shape: rectangle + center: + - -21.67 + - -70.2 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 0.0 + - 1.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_bottom_1 + type: area + shape: rectangle + center: + - -13.0 + - -70.2 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 0.0 + - 1.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_bottom_2 + type: area + shape: rectangle + center: + - -4.33 + - -70.2 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 0.0 + - 1.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_bottom_3 + type: area + shape: rectangle + center: + - 4.33 + - -70.2 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 0.0 + - 1.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_bottom_4 + type: area + shape: rectangle + center: + - 13.0 + - -70.2 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 0.0 + - 1.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_bottom_5 + type: area + shape: rectangle + center: + - 21.67 + - -70.2 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 0.0 + - 1.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_right_0 + type: area + shape: rectangle + center: + - 70.2 + - -21.67 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - -1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_right_1 + type: area + shape: rectangle + center: + - 70.2 + - -13.0 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - -1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_right_2 + type: area + shape: rectangle + center: + - 70.2 + - -4.33 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - -1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_right_3 + type: area + shape: rectangle + center: + - 70.2 + - 4.33 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - -1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_right_4 + type: area + shape: rectangle + center: + - 70.2 + - 13.0 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - -1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_right_5 + type: area + shape: rectangle + center: + - 70.2 + - 21.67 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - -1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_left_0 + type: area + shape: rectangle + center: + - -70.2 + - -21.67 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_left_1 + type: area + shape: rectangle + center: + - -70.2 + - -13.0 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_left_2 + type: area + shape: rectangle + center: + - -70.2 + - -4.33 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_left_3 + type: area + shape: rectangle + center: + - -70.2 + - 4.33 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_left_4 + type: area + shape: rectangle + center: + - -70.2 + - 13.0 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +- id: led_left_5 + type: area + shape: rectangle + center: + - -70.2 + - 21.67 + - -65.3 + size: + - 2.8 + - 3.5 + direction: + - 1.0 + - 0.0 + - 0.0 + radiance: + - 1.0 + - 1.0 + - 1.0 +sensor: + type: perspective + position: + - 0.0 + - 0.0 + - 100.0 + target: + - 0.0 + - 0.0 + - 4.0 + up: + - 0.0 + - 1.0 + - 0.0 + fov_deg: 60.0 + film: + width: 512 + height: 512 + rfilter: gaussian +render: + variant: llvm_ad_rgb + integrator: path + max_depth: 8 + spp: 128