https://github.com/gaolinorange/SDMNET_stamp
Tip revision: 5208f1210b77e3251dde3bdafc120a48dc69e833 authored by wutong on 27 March 2021, 07:58:47 UTC
Update ReconstructFromCodeMixIntegerReadingObjinAdvance.m
Update ReconstructFromCodeMixIntegerReadingObjinAdvance.m
Tip revision: 5208f12
Optimize.m
% path = './test';
function Optimize(interpolation_dir, category, gap)
if strcmp(category, 'plane')
load('./libtomlab.dll', '-mat');
elseif strcmp(category, 'chair')
load('./libopenmp.dll', '-mat');
end
part_names = gelabel(category);
for i = 1:size(part_names)
part_dir = fullfile(interpolation_dir, part_names{i});
if ~exist(part_dir, 'dir')
disp('part_dir missing');
disp(part_dir);
end
end
category = 'test';
if ~exist(category, 'dir')
mkdir(category);
end
for i = 1:gap:200
writeOBJ(fullfile(category, [num2str(i), '.obj']), all_vfs{i, 1}, all_vfs{i, 2});
end
end