mexgaussiansubsample.cpp

来自「显著区域检测。求的图像中感兴趣区域的位置」· C++ 代码 · 共 30 行

CPP
30
字号
/*! @file mexGaussianSubsample.cpp \verbatim mexGaussianSubsample - smooths and subsamples image. result = mexGaussianSubsample(image)    Convolves image with a 6x6 separable Gaussian kernel    and subsamples by a factor of two all in one    integrated operation.  See also makeDyadicPyramid, makeSqrt2Pyramid, makeGaussianPyramid.\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,1,1,nrhs,prhs);  const Image img(Params.getInput(0));  Image result = lowPass6yDecY(lowPass6xDecX(img));  Params.setOutput(0,result.getArray());}

⌨️ 快捷键说明

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