?? cxcore reference manual.htm
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0099)http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm -->
<HTML><HEAD><TITLE>CXCORE Reference Manual</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="CXCORE Reference Manual.files/opencvref.css" type=text/css
charset=ISO-8859-1 rel=STYLESHEET>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<H1>CXCORE 參考手冊</H1>
<HR>
<P><A href="http://blog.csdn.net/hunnish">HUNNISH</A> 注:</P>
<P>本翻譯是直接根據 OpenCV Beta 4.0
版本的用戶手冊翻譯的,原文件是:<opencv_directory>/doc/ref/opencvref_cxcore.htm, 可以從
SOURCEFORG 上面的 OpenCV 項目下載,也可以直接從 <A href="http://www.assuredigit.com/">阿須數碼</A>
中下載:<A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cv.htm">http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cv.htm</A>。</P>
<P>翻譯中肯定有不少錯誤,另外也有些術語和原文語義理解不透導致翻譯不準確或者錯誤,也請有心人賜教。</P>
<P>翻譯由Y.Q.Zhang, J.H.Tan, X.C.Qin, M.Liu 和 Z.T.Fan 鼎力完成,全文由Hunnish做統一修改校正。</P>
<HR>
<P>
<UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_basic_structures">基礎結構</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays">數組操作</A>
<UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays_alloc_free">初始化</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays_get_set">獲取元素和數組子集</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays_copying">拷貝和填充</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays_permute">變換和置換</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays_arithm_logic">算術、邏輯和比較</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays_stat">統計</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays_matrix">線性代數</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays_math">數學函數</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays_rng">隨機數生成</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_arrays_dxt">離散變換</A>
</LI></UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_ds">動態結構</A>
<UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_ds_storages">內存存儲</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_ds_sequences">序列</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_ds_sets">集合</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_ds_graphs">圖</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_ds_trees">樹</A>
-----------------------</LI></UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_drawing">繪圖函數</A>
****************************************
<UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_drawing_shapes">典線和形狀</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_drawing_text">文本</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_drawing_seq">點集和輪廓</A>
</LI></UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_persistence">數據保存和運行時類型信息</A>
樊臻韜
<UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_persistence_ds">文件存儲</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_persistence_writing">寫數據</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_persistence_reading">讀數據</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_persistence_rtti">運行時類型信息和通用函數</A>
---------------</LI></UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_misc">其它混合函數</A>
*********************************************
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_system">錯誤處理和系統函數</A>
<UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_system_error">錯誤處理</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_system_sys">系統函數</A>
譚俊河</LI></UL>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_func_index">依字母順序函數列表</A>
<LI><A
href="http://www.assuredigit.com/incoming/sourcecode/opencv/chinese_docs/ref/opencvref_cxcore_chinese.htm#cxcore_sample_index">例子列表</A>
---------------------------</LI></UL><!-- *****************************************************************************************
*****************************************************************************************
***************************************************************************************** -->
<HR>
<H1><A name=cxcore_basic_structures>基礎結構</A></H1>
<HR>
<H3><A name=decl_CvPoint>CvPoint</A></H3>
<P class=Blurb>基于二維整形坐標軸的點</P><PRE> typedef struct CvPoint</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>{</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>int x; /* X<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">坐標</SPAN>, <SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">通常以</SPAN>0<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">為基點</SPAN> */</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>int y; /* y<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">坐標,通常以</SPAN>0<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">為基點</SPAN> */</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>}</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>CvPoint;</PRE><PRE> <SPAN style="mso-spacerun: yes"> </SPAN>/* <SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">構造函數</SPAN> */</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>inline CvPoint cvPoint( int x, int y );</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>/* <SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">從</SPAN> CvPoint2D32f<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">類型轉換得來</SPAN> */</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>inline CvPoint cvPointFrom32f( CvPoint2D32f point );</PRE>
<HR>
<H3><A name=decl_CvPoint2D32f>CvPoint2D32f</A></H3>
<P class=Blurb>二維浮點坐標上的點</P><PRE>typedef struct CvPoint2D32f</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>{</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>float x; /* X<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">坐標</SPAN>, <SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">通常以</SPAN>0<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">為基點</SPAN>*/</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>float y; /* Y<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">坐標</SPAN>, <SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">通常以</SPAN>0<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">為基點</SPAN>*/</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>}</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>CvPoint2D32f;</PRE><PRE> <SPAN style="mso-spacerun: yes"> </SPAN>/* <SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">構造函數</SPAN> */</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>inline CvPoint2D32f cvPoint2D32f( double x, double y );</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>/* <SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">從</SPAN>CvPoint<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">轉換來</SPAN> */</PRE><PRE><SPAN style="mso-spacerun: yes"> </SPAN>inline CvPoint2D32f cvPointTo32f( CvPoint point );</PRE>
<HR>
<H3><A name=decl_CvPoint3D32f>CvPoint3D32f</A></H3>
<P class=Blurb>三維浮點坐標上的點</P><PRE> typedef struct CvPoint3D32f
{
float x; /* x-坐標,通常基于0 */
float y; /* y-坐標, 通常基于0*/
float z; /* z-坐標,通常基于0 */
}
CvPoint3D32f;
/* 構造函數 */
inline CvPoint3D32f cvPoint3D32f( double x, double y, double z );
</PRE>
<HR>
<H3><A name=decl_CvSize>CvSize</A></H3>
<P class=Blurb>矩形框大小,以像素為精度</P><PRE> typedef struct CvSize
{
int width; /* 矩形寬 */
int height; /* 矩形高 */
}
CvSize;
/* 構造函數 */
inline CvSize cvSize( int width, int height );
</PRE>
<HR>
<H3><A name=decl_CvSize2D32f>CvSize2D32f</A></H3>
<P class=Blurb>以低像素精度標量矩形框大小</P><PRE> typedef struct CvSize2D32f
{
float width; /* 矩形寬 */
float height; /* 矩形高 */
}
CvSize2D32f;
/* 構造函數*/
inline CvSize2D32f cvSize2D32f( double width, double height );
</PRE>
<HR>
<H3><A name=decl_CvRect>CvRect</A></H3>
<P class=Blurb>矩形框的偏移和大小</P><PRE> typedef struct CvRect
{
int x; /* <SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">方形的最左角的</SPAN>x-<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">坐標</SPAN><SPAN style="mso-spacerun: yes"> </SPAN>*/</PRE><PRE> int y; /* <SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">方形的最上或者最下角的</SPAN>y-<SPAN style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">坐標</SPAN> */</PRE><PRE> int width; /* 寬 */
int height; /* 高 */
}
CvRect;
/* 構造函數*/
inline CvRect cvRect( int x, int y, int width, int height );
</PRE>
<HR>
<H3><A name=decl_CvScalar>CvScalar</A></H3>
<P class=Blurb>可存放在1-,2-,3-,4-TUPLE類型的捆綁數據的容器</P><PRE> typedef struct CvScalar
{
double val[4]
}
CvScalar;
<SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">/* </SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">構造函數:用</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">val0</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">初始化</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">val[0]</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">用</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">val1</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">初始化</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">val[1]</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">等等</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">*/</SPAN>
inline CvScalar cvScalar( double val0, double val1=0,
double val2=0, double val3=0 );
<SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">/* </SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">構造函數:用</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">val0123</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">初始化</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">val0123 */</SPAN>
inline CvScalar cvScalarAll( double val0123 );
<SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">/* </SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">構造函數:用</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">val0</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">初始化</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">val[0],val[1]…val[3]</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">用</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">0</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">初始化</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 宋體; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"> */</SPAN>
inline CvScalar cvRealScalar( double val0 );
</PRE>
<HR>
<H3><A name=decl_CvTermCriteria>CvTermCriteria</A></H3>
<P class=Blurb>迭代算法的終止標準</P><PRE>#define CV_TERMCRIT_ITER 1
#define CV_TERMCRIT_NUMBER CV_TERMCRIT_ITER
#define CV_TERMCRIT_EPS 2
typedef struct CvTermCriteria
{
int type; /* CV_TERMCRIT_ITER 和 CV_TERMCRIT_EPS的聯合 */
int max_iter; /* 迭代的最大數 */
double epsilon; /* 結果的精確性 */
}
CvTermCriteria;
/* 構造函數 */
inline CvTermCriteria cvTermCriteria( int type, int max_iter, double epsilon );
/* 檢查終止標準并且轉換使type=CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,并且滿足max_iter 和 epsilon 限制條件 */
CvTermCriteria cvCheckTermCriteria( CvTermCriteria criteria,
double default_eps,
int default_max_iters );
</PRE><!-- *****************************************************************************************
*****************************************************************************************
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -