windows脚本语言

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值