⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mexconv2preserveenergy.cpp

📁 显著区域检测。求的图像中感兴趣区域的位置
💻 CPP
字号:
/*! @file mexConv2PreserveEnergy.cpp \verbatim mexConv2PreserveEnergy - 2d convolution that avoids bleeding energy over the edge. 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.\endverbatim */// This file is part of the SaliencyToolbox - Copyright (C) 2006-2007// by Dirk B. Walther and the California Institute of Technology.// See the enclosed LICENSE.TXT document for the license agreement. // More information about this project is available at: // http://www.saliencytoolbox.net#include "mexLog.h"#include "Image.h"#include "Filters.h"#include "MexParams.h"/* the main program */void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]){  MexParams Params(0,1,nlhs,plhs,2,2,nrhs,prhs);  const Image img(Params.getInput(0));  const Image filt(Params.getInput(1));  Image result = conv2PreserveEnergy(img,filt);  Params.setOutput(0,result.getArray());}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -