00001 00010 // This file is part of the SaliencyToolbox - Copyright (C) 2006-2007 00011 // by Dirk B. Walther and the California Institute of Technology. 00012 // See the enclosed LICENSE.TXT document for the license agreement. 00013 // More information about this project is available at: 00014 // http://www.saliencytoolbox.net 00015 00016 #include "mexLog.h" 00017 #include "Image.h" 00018 #include "Filters.h" 00019 #include "MexParams.h" 00020 00021 /* the main program */ 00022 void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) 00023 { 00024 MexParams Params(0,1,nlhs,plhs,2,2,nrhs,prhs); 00025 const Image img(Params.getInput(0)); 00026 const Image filt(Params.getInput(1)); 00027 Image result = conv2PreserveEnergy(img,filt); 00028 Params.setOutput(0,result.getArray()); 00029 }