运行matlab代码时出现语法错误

时间:2017-04-22 21:44:45

标签: matlab

我下载了一些matlab代码,在尝试运行测试文件时,它结束时发现语法错误,这个在这里:

parse error near line 151 of file /media/34GB/escola/efficientLBP/pixelwiseLBP.m
syntax error
>>>>            [minLBP, ~]=sortNeighbours( binaryWord, weigthVec,...
           ^

代码是:

    else % if iChan==1 || isChanWiseRot
                [minLBP, ~]=sortNeighbours( binaryWord, weigthVec,...
                    iCircShiftMinLBP(iRow, iCol) );

这里有什么问题?谢谢你的时间。

P.S:已编辑

以下是要求的额外代码:

for iRow=( filtDimsR(1)+1 ):( padImgSize(1)-filtDimsR(1) )
    for iCol=( filtDimsR(2)+1 ):( padImgSize(2)-filtDimsR(2) )
        subImg=chanImgPad(iRow+( -filtDimsR(1):filtDimsR(1) ),...
            iCol+( -filtDimsR(2):filtDimsR(2) ));
        % find differences between current pixel, and it's neighours
        diffVec=sum(sum( filtR.*repmat(subImg,[1, 1, nNeigh]) ));
        diffVec=roundnS(diffVec, nEps);
        binaryWord=( diffVec(:)>=0 );
        if isRotInv
            if iChan==1 || isChanWiseRot % go through all posible binary
                % word combination, finding minimal LBP
                [minLBP, iCircShiftMinLBP(iRow, iCol)]=...
                    sortNeighbours(binaryWord, weigthVec);
            else % if iChan==1 || isChanWiseRot
                [minLBP, ~]=sortNeighbours( binaryWord, weigthVec,...
                    iCircShiftMinLBP(iRow, iCol) );
            end % if iChan==1 || isChanWiseRot
        else
            minLBP=weigthVec*binaryWord;
        end % if isRotInv
        currChanLBP(iRow, iCol)=cast( minLBP,  outClass);   % convert to decimal.
    end % for iCol=(1+filtDimsR(2)):(imgSize(2)-filtDimsR(2))

    % Present waitbar- a bar with progress, time passed and time remaining
    waitbarTimeRemaining(hWaitbar, hTicPixelwiseLBP,...
        (( iRow-filtDimsR(1) )+nRows*(iChan-1))/(nClrChans*nRows));
end % for iRow=(1+filtDimsR(1)):(imgSize(1)-filtDimsR(1))

0 个答案:

没有答案