image_buffer.h

来自「it runs for blob detection with opencv」· C头文件 代码 · 共 55 行

H
55
字号
/***  Source file for blobdetect. (c) 2004 Per-Erik Forssen****  This program is free software; you can redistribute it and/or modify**  it under the terms of the GNU General Public License as published by**  the Free Software Foundation; either version 2 of the License, or**  (at your option) any later version.**  **  See the file COPYING for details.***/#ifndef __IMAGEBUFFER#define __IMAGEBUFFER#define SQR(X) ((X)*(X))/*   Datatypes for image buffers    */ #ifdef DOUBLE_FLOATStypedef double fpnum;#elsetypedef float fpnum;#endif/* Double buffer */typedef struct buffer {  int rows;  int cols;  int ndim;  fpnum *data;} buffer;/* Integer buffer */typedef struct ibuffer {  int rows;  int cols;  int ndim;  int *data;} ibuffer;/*   Methods for image buffers   */buffer *buffer_new(int r,int c,int nd);buffer *buffer_new0(fpnum *darr,int r,int c,int nd);void    buffer_pdims(buffer *bf);void    buffer_free(buffer *bf);buffer *buffer_clone(buffer *bf);ibuffer *ibuffer_new(int r,int c,int nd);ibuffer *ibuffer_new0(int *darr,int r,int c,int nd);void     ibuffer_pdims(ibuffer *bf);void     ibuffer_free(ibuffer *bf);#endif /* __IMAGEBUFFER */

⌨️ 快捷键说明

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