what does this code do?

7 次查看(过去 30 天)
vani shree
vani shree 2017-5-4
评论: Jan 2017-5-4
if(ispc == 1)
[s, b] = dos('set NUMBER_OF_PROCESSORS');
num_CPUs = sscanf(b, '%*21c%d', [1, Inf]);
setenv('OMP_NUM_THREADS', num2str(num_CPUs));
% ASIFT command
command_ASIFT = 'demo_ASIFT';
command_ASIFT = [command_ASIFT ' ' file_img1_png ' ' file_img2_png ' ' ...
imgOutVert ' ' imgOutHori ' ' matchings ' ' keys1 ' ' keys2];
imshow('imgOutVert.jpg');
if (flag_resize == 0)
command_ASIFT = [command_ASIFT ' 0'];
end
command = command_ASIFT;
sir can u please explain this code? i couldn't able to understand what it does
  4 个评论
Adam
Adam 2017-5-4
I have no idea what ASIFT is.
Jan
Jan 2017-5-4
Prefer:
num_CPUs = getenv('NUMBER_OF_PROCESSORS');

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by