资源简介
mser-0.5 matlab实现mser算法,用于最大稳定区域检测
代码片段和文件信息
/* file: erfill.mex.c
** description: Extremal Regions filling
** author: Andrea Vedaldi
**/
/* AUTORIGHTS
Copyright (C) 2006 Regents of the University of California
All rights reserved
Written by Andrea Vedaldi (UCLA VisionLab).
Redistribution and use in source and binary forms with or without
modification are permitted provided that the following conditions are met
* Redistributions of source code must retain the above copyright
notice this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the University of California Berkeley nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ‘‘AS IS‘‘ AND ANY
EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES
(INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/** @file
** @brief Maximally Stable Extremal Regions - MEX implementation
**/
#include“mexutils.c“
#include
#include
#include
#include
#include
#define MIN(xy) (((x)<(y))?(x):(y))
#define MAX(xy) (((x)>(y))?(x):(y))
typedef char unsigned val_t ;
typedef int unsigned idx_t ;
typedef long long int unsigned acc_t ;
/* advance N-dimensional subscript */
void
adv(int const* dims int ndims int* subs_pt)
{
int d = 0 ;
while(d < ndims) {
if( ++subs_pt[d] < dims[d] ) return ;
subs_pt[d++] = 0 ;
}
}
/* driver */
void
mexFunction(int nout mxArray *out[]
int nin const mxArray *in[])
{
enum {IN_I=0 IN_ER} ;
enum {OUT_MEMBERS} ;
idx_t i ;
int k nel ndims ;
int const * dims ;
val_t const * I_pt ;
int last = 0 ;
int last_expanded = 0 ;
val_t value = 0 ;
double const * er_pt ;
int* subs_pt ; /* N-dimensional subscript */
int* nsubs_pt ; /* diff-subscript to point to neigh. */
idx_t* strides_pt ; /* strides to move in image array */
val_t* visited_pt ; /* flag */
idx_t* members_pt ; /* region members */
/** ---------------------------------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 141560 2011-04-16 10:05 mser-0.5\mser-0.5\mser\data\car1.jpg
文件 49358 2011-04-16 10:03 mser-0.5\mser-0.5\mser\data\google02.jpg
文件 82 2007-02-08 03:01 mser-0.5\mser-0.5\mser\doc\._mser.bib
文件 82 2007-02-08 03:03 mser-0.5\mser-0.5\mser\doc\._mser.tex
文件 82 2006-12-20 08:47 mser-0.5\mser-0.5\mser\doc\._visionlab.sty
文件 454 2007-02-07 05:54 mser-0.5\mser-0.5\mser\doc\figures\Makefile
文件 1589 2007-02-07 06:06 mser-0.5\mser-0.5\mser\doc\figures\pm.fig
文件 1355 2007-02-07 07:07 mser-0.5\mser-0.5\mser\doc\figures\pm2.fig
文件 199617 2007-01-24 10:42 mser-0.5\mser-0.5\mser\doc\figures\region-111.png
文件 198938 2007-01-24 10:45 mser-0.5\mser-0.5\mser\doc\figures\region-121.png
文件 204032 2007-01-24 10:42 mser-0.5\mser-0.5\mser\doc\figures\region-148.png
文件 208198 2007-01-24 10:41 mser-0.5\mser-0.5\mser\doc\figures\region-171.png
文件 202247 2007-01-24 10:43 mser-0.5\mser-0.5\mser\doc\figures\region-211.png
文件 214547 2007-01-24 10:42 mser-0.5\mser-0.5\mser\doc\figures\region-612.png
文件 795 2007-02-08 03:01 mser-0.5\mser-0.5\mser\doc\mser.bib
文件 1290695 2007-02-08 03:03 mser-0.5\mser-0.5\mser\doc\mser.pdf
文件 16194 2007-02-08 03:03 mser-0.5\mser-0.5\mser\doc\mser.tex
文件 6403 2006-12-20 08:47 mser-0.5\mser-0.5\mser\doc\visionlab.sty
文件 6939 2009-07-06 15:38 mser-0.5\mser-0.5\mser\erfill.c
文件 8192 2009-07-06 16:16 mser-0.5\mser-0.5\mser\erfill.dll
文件 374 2007-02-07 10:16 mser-0.5\mser-0.5\mser\erfill.m
文件 2359 2008-05-11 01:55 mser-0.5\mser-0.5\mser\imreadbw.m
文件 3111 2007-08-04 23:17 mser-0.5\mser-0.5\mser\Makefile
文件 2399 2009-07-06 15:42 mser-0.5\mser-0.5\mser\mexutils.c
文件 4758 2009-07-06 15:40 mser-0.5\mser-0.5\mser\mexutils.dll
文件 25833 2009-07-06 16:10 mser-0.5\mser-0.5\mser\mser.c
文件 14336 2009-07-06 16:16 mser-0.5\mser-0.5\mser\mser.dll
文件 1253 2007-02-07 10:16 mser-0.5\mser-0.5\mser\mser.m
文件 196 2009-07-06 15:44 mser-0.5\mser-0.5\mser\mser_compile.asv
文件 202 2009-07-06 16:13 mser-0.5\mser-0.5\mser\mser_compile.m
............此处省略19个文件信息
评论
共有 条评论