• StefanBruens's avatar
    Merge pull request #14936 from StefanBruens:crosscorr_cleanup · 3e4a195b
    StefanBruens authored
    Crosscorr cleanup (#14936)
    
    * Simplify code for convolution destination type/size
    
    For the 2d filter code, destination size equals source size, and the
    crossCorr function even (re-)creates the output matrix with the given size.
    
    The number of channels also have to match. The destination type() is the
    one used to create the output matrix, so we can use its type() here.
    
    This is a preparatory patch.
    Signed-off-by: 's avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
    
    * Remove redundant destination size and type parameters from crossCorr
    
    All calling sites of crossCorr already use (...,
    mat, mat.size(), mat.type(), ...), so the parameters are redundant.
    Signed-off-by: 's avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
    3e4a195b
templmatch.cpp 39.6 KB