From f618466c25d43f3bae9e40920273bf77de1e1149 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Mon, 19 Oct 2020 23:09:30 -0400 Subject: initial sd-vbs initial sd-vbs add sd-vbs sd-vbs --- .../common/toolbox/toolbox_basic/io/convert422.m | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 SD-VBS/common/toolbox/toolbox_basic/io/convert422.m (limited to 'SD-VBS/common/toolbox/toolbox_basic/io/convert422.m') 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 @@ +image_current = '/hid/jshi'; + +image_dir = 'vr05_5 '; +pg_path = '/hid/jshi/422toppm/422toppm'; + +cm = sprintf('cd %s',image_dir); +disp(cm); +eval(cm); + +d = dir('seq*'); +filename = char(sort({d.name})); + +for j=1:size(filename), + cm = sprintf('!%s %s',pg_path,deblank(filename(j,:))); +disp(cm); +eval(cm); +end + + +%%% change back +cm = sprintf('cd %s',image_current); +disp(cm);eval(cm); + + +if 0, + deblank(filename(f,:)); +end -- cgit v1.2.2