REM @cur_dir:获取当前路径
@echo off
set cur_dir=%cd%
set plyname=(basketball_player_vox11_00000200^
boxer_viewdep_vox12^
dancer_vox11_00000001^
Egyptian_mask_vox12^
Facade_00009_vox12^
Facade_00015_vox14^
Facade_00064_vox11^
Frog_00067_vox12^
Head_00039_vox12^
House_without_roof_00057_vox12^
longdress_viewdep_vox12^
longdress_vox10_1300^
loot_viewdep_vox12^
loot_vox10_1200^
queen_0200^
redandblack_viewdep_vox12^
redandblack_vox10_1550^
Shiva_00035_vox12^
soldier_viewdep_vox12^
soldier_vox10_0690^
Thaidancer_viewdep_vox12^
ULB_Unicorn_vox13)
set allname=(basketball_player_vox11_00000200^
boxer_viewdep_vox12^
dancer_vox11_00000001^
Egyptian_mask_vox12^
Facade_00009_vox12^
Facade_00015_vox14^
Facade_00064_vox11^
Frog_00067_vox12^
Head_00039_vox12^
House_without_roof_00057_vox12^
longdress_viewdep_vox12^
longdress_vox10_1300^
loot_viewdep_vox12^
loot_vox10_1200^
queen_0200^
redandblack_viewdep_vox12^
redandblack_vox10_1550^
Shiva_00035_vox12^
soldier_viewdep_vox12^
soldier_vox10_0690^
Thaidancer_viewdep_vox12^
ULB_Unicorn_vox13)
set ply_dir=D:\Point_cloud\Test\TestModelDataset\Cat1_A
set normal_dir=D:\Point_cloud\Normal\cat1_A_normal
set cfg_path=%cur_dir%\cfg\octree-predlift\lossless-geom-lossy-attrs
set QP=(r01,r02,r03,r04,r05,r06)
set Peak_value=(2047,4095,2047,4095,4095,16383,2047,4095,4095,4095,4095,1023,4095,1023,1023,4095,1023,4095,4095,1023,4095,8191)
set bin_kind=(1)
setlocal enabledelayedexpansion
for %%B in %bin_kind% do (
for %%P in %plyname% do (
set /a num_all=0
set /a num_peak_value=0
set /a peak_value=0
set /a num_ply=0
for %%A in %allname% do (
if %%A==%%P (
set /a num_ply=num_all
)
set /a num_all=num_all+1
)
for %%f in %Peak_value% do (
if !num_peak_value!==!num_ply! (
set /a peak_value=%%f
)
set /a num_peak_value=!num_peak_value!+1
)
if !peak_value! NEQ 0 (
for %%Q in %QP% do (
%%B_tmc3.exe -c %cfg_path%\%%P\%%Q\encoder.cfg --uncompressedDataPath=%ply_dir%\%%P.ply --compressedStreamPath=compression.bin>>%%P_%%B_C1.txt
%%B_tmc3.exe -c %cfg_path%\%%P\%%Q\decoder.cfg --compressedStreamPath=compression.bin --reconstructedDataPath="reconstruction.ply">>%%P_%%B_C1.txt
pc_error -a %ply_dir%\%%P.ply -b reconstruction.ply -n %normal_dir%\%%P_n.ply --color=1 --resolution=!peak_value!>>%%P_%%B_C1.txt
)
)
)
)
endlocal
windows脚本语言
最新推荐文章于 2024-09-17 11:55:35 发布