gusucode.com > vision工具箱matlab源码程序 > vision/+vision/+internal/+detector/roundAndCastToInt32.m

    function out = roundAndCastToInt32(ROI)
% Round and cast ROI so that it is integer valued.

%#codegen
if isfloat(ROI)    
    out = int32(round(ROI));
else
    out = int32(ROI);
end