mexConv2PreserveEnergy - 2d convolution that avoids bleeding energy over the edge (mex file). result = mexConv2PreserveEnergy(data,filter) Convolves data with the 2d (non-separable) filter. At the boundary, the value of missing pixels is assumed to be equal to the mean over the present pixels to avoid border artefacts. See also sepConv2PreserveEnergy.
0001 function result = mexConv2PreserveEnergy(data,filter) 0002 % mexConv2PreserveEnergy - 2d convolution that avoids bleeding energy over the edge (mex file). 0003 % 0004 % result = mexConv2PreserveEnergy(data,filter) 0005 % Convolves data with the 2d (non-separable) filter. 0006 % At the boundary, the value of missing pixels is assumed 0007 % to be equal to the mean over the present pixels 0008 % to avoid border artefacts. 0009 % 0010 % See also sepConv2PreserveEnergy. 0011 0012 % This file is part of the SaliencyToolbox - Copyright (C) 2006-2008 0013 % by Dirk B. Walther and the California Institute of Technology. 0014 % See the enclosed LICENSE.TXT document for the license agreement. 0015 % More information about this project is available at: 0016 % http://www.saliencytoolbox.net 0017 0018 mexFileLost;