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

📄 opencvref_cxcore.htm

📁 Simple ellipse fitting example on C++Builder6 + OpenCV1.0.
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html><head>
<link rel="STYLESHEET" href="opencvref.css" charset="ISO-8859-1" type="text/css">
<title>CXCORE Reference Manual</title>
</head><body>

<h1>CXCORE Reference Manual</h1>

<hr><p><ul>
<li><a href="#cxcore_basic_structures">Basic Structures</a>
<li><a href="#cxcore_arrays">Operations on Arrays</a>
<ul>
<li><a href="#cxcore_arrays_alloc_free">Initialization</a>
<li><a href="#cxcore_arrays_get_set">Accessing Elements and sub-Arrays</a>
<li><a href="#cxcore_arrays_copying">Copying and Filling</a>
<li><a href="#cxcore_arrays_permute">Transforms and Permutations</a>
<li><a href="#cxcore_arrays_arithm_logic">Arithmetic, Logic and Comparison</a>
<li><a href="#cxcore_arrays_stat">Statistics</a>
<li><a href="#cxcore_arrays_matrix">Linear Algebra</a>
<li><a href="#cxcore_arrays_math">Math Functions</a>
<li><a href="#cxcore_arrays_rng">Random Number Generation</a>
<li><a href="#cxcore_arrays_dxt">Discrete Transforms</a>
</ul>
<li><a href="#cxcore_ds">Dynamic Structures</a>
<ul>
<li><a href="#cxcore_ds_storages">Memory Storages</a>
<li><a href="#cxcore_ds_sequences">Sequences</a>
<li><a href="#cxcore_ds_sets">Sets</a>
<li><a href="#cxcore_ds_graphs">Graphs</a>
<li><a href="#cxcore_ds_trees">Trees</a>
</ul>
<li><a href="#cxcore_drawing">Drawing Functions</a>
<ul>
<li><a href="#cxcore_drawing_shapes">Curves and Shapes</a>
<li><a href="#cxcore_drawing_text">Text</a>
<li><a href="#cxcore_drawing_seq">Point Sets and Contours</a>
</ul>
<li><a href="#cxcore_persistence">Data Persistence and RTTI</a>
<ul>
<li><a href="#cxcore_persistence_ds">File Storage</a>
<li><a href="#cxcore_persistence_writing">Writing Data</a>
<li><a href="#cxcore_persistence_reading">Reading Data</a>
<li><a href="#cxcore_persistence_rtti">RTTI and Generic Functions</a>
</ul>
<li><a href="#cxcore_misc">Miscellaneous Functions</a>
<li><a href="#cxcore_system">Error Handling and System Functions</a>
<ul>
<li><a href="#cxcore_system_error">Error Handling</a>
<li><a href="#cxcore_system_sys">System Functions</a>
</ul>
<li><a href="#cxcore_func_index">Alphabetical List of Functions</a>
<li><a href="#cxcore_sample_index">List of Examples</a>
</ul></p>


<!-- *****************************************************************************************
     *****************************************************************************************
     ***************************************************************************************** -->

<hr><h1><a name="cxcore_basic_structures">Basic Structures</a></h1>

<hr><h3><a name="decl_CvPoint">CvPoint</a></h3>
<p class="Blurb">2D point with integer coordinates</p>
<pre>
    typedef struct CvPoint
    {
        int x; /* x-coordinate, usually zero-based */
        int y; /* y-coordinate, usually zero-based */
    }
    CvPoint;

    /* the constructor function */
    inline CvPoint cvPoint( int x, int y );

    /* conversion from CvPoint2D32f */
    inline CvPoint cvPointFrom32f( CvPoint2D32f point );
</pre>

<hr><h3><a name="decl_CvPoint2D32f">CvPoint2D32f</a></h3>
<p class="Blurb">2D point with floating-point coordinates</p>
<pre>
    typedef struct CvPoint2D32f
    {
        float x; /* x-coordinate, usually zero-based */
        float y; /* y-coordinate, usually zero-based */
    }
    CvPoint2D32f;

    /* the constructor function */
    inline CvPoint2D32f cvPoint2D32f( double x, double y );

    /* conversion from CvPoint */
    inline CvPoint2D32f cvPointTo32f( CvPoint point );
</pre>


<hr><h3><a name="decl_CvPoint3D32f">CvPoint3D32f</a></h3>
<p class="Blurb">3D point with floating-point coordinates</p>
<pre>
    typedef struct CvPoint3D32f
    {
        float x; /* x-coordinate, usually zero-based */
        float y; /* y-coordinate, usually zero-based */
        float z; /* z-coordinate, usually zero-based */
    }
    CvPoint3D32f;

    /* the constructor function */
    inline CvPoint3D32f cvPoint3D32f( double x, double y, double z );
</pre>


<hr><h3><a name="decl_CvPoint2D64f">CvPoint2D64f</a></h3>
<p class="Blurb">2D point with double precision floating-point coordinates</p>
<pre>
    typedef struct CvPoint2D64f
    {
        double x; /* x-coordinate, usually zero-based */
        double y; /* y-coordinate, usually zero-based */
    }
    CvPoint2D64f;

    /* the constructor function */
    inline CvPoint2D64f cvPoint2D64f( double x, double y );

    /* conversion from CvPoint */
    inline CvPoint2D64f cvPointTo64f( CvPoint point );
</pre>


<hr><h3><a name="decl_CvPoint3D64f">CvPoint3D64f</a></h3>
<p class="Blurb">3D point with double precision floating-point coordinates</p>
<pre>
    typedef struct CvPoint3D64f
    {
        double x; /* x-coordinate, usually zero-based */
        double y; /* y-coordinate, usually zero-based */
        double z; /* z-coordinate, usually zero-based */
    }
    CvPoint3D64f;

    /* the constructor function */
    inline CvPoint3D64f cvPoint3D64f( double x, double y, double z );
</pre>


<hr><h3><a name="decl_CvSize">CvSize</a></h3>
<p class="Blurb">pixel-accurate size of a rectangle</p>
<pre>
    typedef struct CvSize
    {
        int width; /* width of the rectangle */
        int height; /* height of the rectangle */
    }
    CvSize;

    /* the constructor function */
    inline CvSize cvSize( int width, int height );
</pre>


<hr><h3><a name="decl_CvSize2D32f">CvSize2D32f</a></h3>
<p class="Blurb">sub-pixel accurate size of a rectangle</p>
<pre>
    typedef struct CvSize2D32f
    {
        float width; /* width of the box */
        float height; /* height of the box */
    }
    CvSize2D32f;

    /* the constructor function */
    inline CvSize2D32f cvSize2D32f( double width, double height );
</pre>


<hr><h3><a name="decl_CvRect">CvRect</a></h3>
<p class="Blurb">offset and size of a rectangle</p>
<pre>
    typedef struct CvRect
    {
        int x; /* x-coordinate of the left-most rectangle corner[s] */
        int y; /* y-coordinate of the top-most or bottom-most
                  rectangle corner[s] */
        int width; /* width of the rectangle */
        int height; /* height of the rectangle */
    }
    CvRect;

    /* the constructor function */
    inline CvRect cvRect( int x, int y, int width, int height );
</pre>


<hr><h3><a name="decl_CvScalar">CvScalar</a></h3>
<p class="Blurb">A container for 1-,2-,3- or 4-tuples of numbers</p>
<pre>
    typedef struct CvScalar
    {
        double val[4];
    }
    CvScalar;

    /* the constructor function: initializes val[0] with val0, val[1] with val1 etc. */
    inline CvScalar cvScalar( double val0, double val1=0,
                              double val2=0, double val3=0 );
    /* the constructor function: initializes val[0]...val[3] with val0123 */
    inline CvScalar cvScalarAll( double val0123 );

    /* the constructor function: initializes val[0] with val0, val[1]...val[3] with zeros */
    inline CvScalar cvRealScalar( double val0 );
</pre>


<hr><h3><a name="decl_CvTermCriteria">CvTermCriteria</a></h3>
<p class="Blurb">Termination criteria for iterative algorithms</p>
<pre>
#define CV_TERMCRIT_ITER    1
#define CV_TERMCRIT_NUMBER  CV_TERMCRIT_ITER
#define CV_TERMCRIT_EPS     2

typedef struct CvTermCriteria
{
    int    type;  /* a combination of CV_TERMCRIT_ITER and CV_TERMCRIT_EPS */
    int    max_iter; /* maximum number of iterations */
    double epsilon; /* accuracy to achieve */
}
CvTermCriteria;

/* the constructor function */
inline  CvTermCriteria  cvTermCriteria( int type, int max_iter, double epsilon );

/* check termination criteria and transform it so that type=CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,
   and both max_iter and epsilon are valid */
CvTermCriteria cvCheckTermCriteria( CvTermCriteria criteria,
                                    double default_eps,
                                    int default_max_iters );
</pre>


<!-- *****************************************************************************************
     *****************************************************************************************
     ***************************************************************************************** -->

<!-- <hr><h2><a name="ch1_array_structs">Array structures</a></h2> -->

<hr><h3><a name="decl_CvMat">CvMat</a></h3>
<p class="Blurb">Multi-channel matrix</p>
<pre>
    typedef struct CvMat
    {
        int type; /* CvMat signature (CV_MAT_MAGIC_VAL), element type and flags */
        int step; /* full row length in bytes */

        int* refcount; /* underlying data reference counter */

        union
        {
            uchar* ptr;
            short* s;
            int* i;
            float* fl;
            double* db;
        } data; /* data pointers */

    #ifdef __cplusplus
        union
        {
            int rows;
            int height;
        };

        union
        {
            int cols;
            int width;
        };
    #else
        int rows; /* number of rows */
        int cols; /* number of columns */
    #endif

    } CvMat;
</pre>


<hr><h3><a name="decl_CvMatND">CvMatND</a></h3>
<p class="Blurb">Multi-dimensional dense multi-channel array</p>
<pre>
    typedef struct CvMatND
    {
        int type; /* CvMatND signature (CV_MATND_MAGIC_VAL), element type and flags */
        int dims; /* number of array dimensions */

        int* refcount; /* underlying data reference counter */

        union
        {
            uchar* ptr;
            short* s;
            int* i;
            float* fl;
            double* db;
        } data; /* data pointers */

        /* pairs (number of elements, distance between elements in bytes) for
           every dimension */
        struct
        {
            int size;
            int step;
        }
        dim[CV_MAX_DIM];

    } CvMatND;
</pre>


<hr><h3><a name="decl_CvSparseMat">CvSparseMat</a></h3>

⌨️ 快捷键说明

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