91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

馬爾科夫隨機(jī)場的圖像分割法,分割圖像比較精確,運(yùn)行時間較短。

資源截圖

代碼片段和文件信息

function?GCO_BuildLib(Options)
%?GCO_BuildLib????Attempt?to?compile?and?link?the?GCO_MATLAB?library.
%????GCO_BuildLib?is?used?internally?by?all?other?GCO_MATLAB?commands?
%????to?recompile?the?wrapper?library?if?it?is?not?yet?built.?
%
%????YOU?DO?NOT?NEED?TO?EXPLICITLY?CALL?THIS?FUNCTION?unless?you?want?to
%????customise?the?build?settings?via?GCO_BuildLib(Options).
%????Default?options:
%??????Options.Debug=0????????%?optimised?detailed?checking?disabled
%??????Options.EnergyType32=0?%?64-bit?energy?counter?32-bit?energy?terms
%
%????Example:
%??????%?Enable?detailed?assertions?(e.g.?than?energy?does?not?go?up
%??????%?during?expansion)?and?use?32-bit?energy?counters?(slightly?faster)
%??????GCO_BuildLib(struct(‘Debug‘1‘EnergyType32‘1));
%

if?(nargin?????Options?=?struct();
end
if?(~isfield(Options‘Debug‘))?Options.Debug?=?0;?end
if?(~isfield(Options‘EnergyType32‘))?Options.EnergyType32?=?0;?end
if?(~isfield(Options‘Force‘))?Options.Force?=?1;?end

MEXFLAGS?=?‘‘;
if?(strcmp(computer()‘GLNXA64‘)?||?strcmp(computer()‘PCWIN64‘)?||?strcmp(computer()‘MACI64‘))
????MEXFLAGS?=?[MEXFLAGS?‘?-largeArrayDims?-DA64BITS‘];
end
if?(Options.Debug)
????MEXFLAGS?=?[MEXFLAGS?‘?-g‘];
end
if?(Options.EnergyType32)
????MEXFLAGS?=?[MEXFLAGS?‘?-DGCO_ENERGYTYPE32‘];
end
if?(strcmp(computer()‘PCWIN‘))?%?link?with?libut?for?user?interruptibility
????MEXFLAGS?=?[MEXFLAGS?‘?-D_WIN32?“‘?matlabroot()?‘\extern\lib\win32\microsoft\libut.lib“‘?];
elseif?(strcmp(computer()‘PCWIN64‘))
????MEXFLAGS?=?[MEXFLAGS?‘?-D_WIN64?“‘?matlabroot()?‘\extern\lib\win64\microsoft\libut.lib“‘?];
else
????MEXFLAGS?=?[MEXFLAGS?‘?-lut‘?];
end

LIB_NAME?=?‘gco_matlab‘;
GCOMATDIR?=?fileparts(mfilename(‘fullpath‘));
GCODIR?=?fileparts(GCOMATDIR);
OUTDIR?=?[?GCOMATDIR?filesep?‘bin‘?];
[status?msg?msgid]?=?mkdir(GCOMATDIR?‘bin‘);?%?Create?bin?directory
addpath(OUTDIR);??????????????????????????????%?and?add?it?to?search?path
if?(~Options.Force?&&?exist(‘gco_matlab‘)==3)
????return;
end
clear?gco_matlab;

mexcmd?=?[‘mex?‘?MEXFLAGS?‘?-outdir?‘‘‘?OUTDIR?‘‘‘?-output?‘?LIB_NAME?‘?‘?];

%?Append?all?source?file?names?to?the?MEX?command?string
SRCCPP?=?{?
????[GCOMATDIR?filesep?‘gco_matlab.cpp‘]
????[GCODIR?filesep?‘GCoptimization.cpp‘]
????[GCODIR?filesep?‘graph.cpp‘]
????[GCODIR?filesep?‘maxflow.cpp‘]
????[GCODIR?filesep?‘linkedBlockList.cpp‘]
????};
for?f=1:length(SRCCPP)
????mexcmd?=?[mexcmd?‘?‘‘‘?SRCCPP{f}?‘‘‘?‘];
end

eval(mexcmd);??%?compile?and?link?in?one?step

end

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-08-10?09:22??matlab\
?????文件????????2553??2012-11-15?17:28??matlab\GCO_BuildLib.m
?????文件?????????387??2012-11-15?17:28??matlab\GCO_ComputeEnergy.m
?????文件?????????526??2012-11-15?17:28??matlab\GCO_Create.m
?????文件?????????223??2012-11-15?17:28??matlab\GCO_Delete.m
?????文件?????????303??2012-11-15?17:28??matlab\GCO_ExpandOnAlpha.m
?????文件????????1091??2012-11-15?17:28??matlab\GCO_Expansion.m
?????文件?????????670??2012-11-15?17:28??matlab\GCO_GetLabeling.m
?????文件?????????370??2012-11-15?17:28??matlab\GCO_ListHandles.m
?????文件?????????507??2012-11-15?17:28??matlab\GCO_LoadLib.m
?????文件????????2068??2012-11-15?17:28??matlab\GCO_SetDataCost.m
?????文件????????1695??2012-11-15?17:28??matlab\GCO_SetLabelCost.m
?????文件?????????607??2012-11-15?17:28??matlab\GCO_SetLabelOrder.m
?????文件?????????787??2012-11-15?17:28??matlab\GCO_SetLabeling.m
?????文件????????1198??2012-11-15?17:28??matlab\GCO_SetNeighbors.m
?????文件????????1380??2012-11-15?17:28??matlab\GCO_SetSmoothCost.m
?????文件????????1155??2012-11-15?17:28??matlab\GCO_SetVerbosity.m
?????文件?????????702??2012-11-15?17:28??matlab\GCO_Swap.m
?????文件???????16858??2012-11-15?17:28??matlab\GCO_UnitTest.m
?????文件????????7154??2012-11-15?17:28??matlab\README.TXT
?????文件???????18497??2012-11-15?17:28??matlab\gco_matlab.cpp

評論

共有 條評論

相關(guān)資源