what does this code do?

2 Ansichten (letzte 30 Tage)
vani shree
vani shree am 4 Mai 2017
Kommentiert: Jan am 4 Mai 2017
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 Kommentare
Adam
Adam am 4 Mai 2017
I have no idea what ASIFT is.
Jan
Jan am 4 Mai 2017
Prefer:
num_CPUs = getenv('NUMBER_OF_PROCESSORS');

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by