35 typedef typename imageT::Scalar floatT;
37 im.resize( varmap.rows(), varmap.cols() );
45#pragma omp parallel for
46 for(
int i = 0; i < im.rows(); ++i )
48 for(
int j = 0; j < im.cols(); ++j )
50 for(
int ii = 0; ii < im.rows(); ++ii )
52 psf_i = 0.5 * ( psf.rows() ) - ( ii - i );
54 if( psf_i < 0 || psf_i >= psf.rows() )
57 for(
int jj = 0; jj < im.cols(); ++jj )
59 psf_j = 0.5 * ( psf.cols() ) - ( jj - j );
61 if( psf_j >= 0 and psf_j < psf.cols() )
63 psfVal = psf( psf_i, psf_j ) / psfNorm;
64 im( i, j ) += varmap( ii, jj ) * psfVal;