diff options
author | leochanj105 <leochanj@live.unc.edu> | 2020-10-19 23:09:30 -0400 |
---|---|---|
committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-20 02:40:39 -0400 |
commit | f618466c25d43f3bae9e40920273bf77de1e1149 (patch) | |
tree | 460e739e2165b8a9c37a9c7ab1b60f5874903543 /SD-VBS/common/toolbox/toolbox_basic/io/convert422.m | |
parent | 47ced4e96bbb782b9e780e8f2cfc637b2c21ff44 (diff) |
initial sd-vbs
initial sd-vbs
add sd-vbs
sd-vbs
Diffstat (limited to 'SD-VBS/common/toolbox/toolbox_basic/io/convert422.m')
-rwxr-xr-x | SD-VBS/common/toolbox/toolbox_basic/io/convert422.m | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/SD-VBS/common/toolbox/toolbox_basic/io/convert422.m b/SD-VBS/common/toolbox/toolbox_basic/io/convert422.m new file mode 100755 index 0000000..919e82e --- /dev/null +++ b/SD-VBS/common/toolbox/toolbox_basic/io/convert422.m | |||
@@ -0,0 +1,27 @@ | |||
1 | image_current = '/hid/jshi'; | ||
2 | |||
3 | image_dir = 'vr05_5 '; | ||
4 | pg_path = '/hid/jshi/422toppm/422toppm'; | ||
5 | |||
6 | cm = sprintf('cd %s',image_dir); | ||
7 | disp(cm); | ||
8 | eval(cm); | ||
9 | |||
10 | d = dir('seq*'); | ||
11 | filename = char(sort({d.name})); | ||
12 | |||
13 | for j=1:size(filename), | ||
14 | cm = sprintf('!%s %s',pg_path,deblank(filename(j,:))); | ||
15 | disp(cm); | ||
16 | eval(cm); | ||
17 | end | ||
18 | |||
19 | |||
20 | %%% change back | ||
21 | cm = sprintf('cd %s',image_current); | ||
22 | disp(cm);eval(cm); | ||
23 | |||
24 | |||
25 | if 0, | ||
26 | deblank(filename(f,:)); | ||
27 | end | ||