freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

opencv中文手冊-資料下載頁

2024-10-31 05:17本頁面

【導讀】數(shù)據(jù)保存和運行時類型信息樊臻韜。錯誤處理和系統(tǒng)函數(shù)。依字母順序函數(shù)列表。例子列表------------------------。/*構(gòu)造函數(shù):用val0初始化val[0],val[1]…

  

【正文】 點并設置為 0 就像其它獲取數(shù)組元素的函數(shù) (cvGet[Real]*D, cvSet[Real]*D)如果元素的下標超出了范圍就會產(chǎn)生錯誤 Get*D 返回特殊的數(shù)組元素 CvScalar cvGet1D( const CvArr* arr, int idx0 )。 CvScalar cvGet2D( const CvArr* arr, int idx0, int idx1 )。 CvScalar cvGet3D( const CvArr* arr, int idx0, int idx1, int idx2 )。 CvScalar cvGetND( const CvArr* arr, int* idx )。 arr 輸入數(shù)組 . idx0 元素下標第一個以 0 為基準的成員 idx1 元素下標第二個以 0 為基準的成員 idx2 元素下標第三個以 0 為基準的成員 idx 元素下標數(shù)組 函數(shù) cvGet*D 返回指定的數(shù)組元素。對于稀疏數(shù)組如果需要的節(jié)點不存在函數(shù)返回 0 (不會創(chuàng)建新的節(jié)點) GetReal*D 返回單通道數(shù)組的指定元素 double cvGetReal1D( const CvArr* arr, int idx0 )。 double cvGetReal2D( const CvArr* arr, int idx0, int idx1 )。 double cvGetReal3D( const CvArr* arr, int idx0, int idx1, int idx2 )。 double cvGetRealND( const CvArr* arr, int* idx )。 arr 輸入數(shù)組,必須是單通道 . idx0 元素下標的第一個成員,以 0 為基準 idx1 元素下標的第二個成員,以 0 為基準 idx2 元素下標的第三個成員,以 0 為基準 idx 元素下標數(shù)組 函數(shù) cvGetReal*D 返回單通道數(shù)組的指定元素,如果數(shù)組是多通道的,就會產(chǎn)生運行時錯誤,而 cvGet*D 函數(shù)可以安全的被用于單通道和多通道 數(shù)組,但他們運行時會有點慢 如果指定的點不存在對于稀疏數(shù)組點會返回 0(不會創(chuàng)建新的節(jié)點)。 mGet 返回單通道浮點矩陣指定元素 double cvmGet( const CvMat* mat, int row, int col )。 mat 輸入矩陣 . row 行下標,以 0 為基點 . col 列下標,以 0 為基點 函數(shù) cvmGet 是 cvGetReal2D 對于單通道浮點矩陣的快速替代函數(shù),函數(shù)運行比較快速因為它是內(nèi)連函數(shù) ,這個函數(shù)對于數(shù)組類型、數(shù)組元素類型的檢查作的很少,并且僅在調(diào)式模式下檢查數(shù)的行和列范圍。 Set*D 修改指定的數(shù)組 void cvSet1D( CvArr* arr, int idx0, CvScalar value )。 void cvSet2D( CvArr* arr, int idx0, int idx1, CvScalar value )。 void cvSet3D( CvArr* arr, int idx0, int idx1, int idx2, CvScalar value )。 void cvSetND( CvArr* arr, int* idx, CvScalar value )。 arr 輸入數(shù)組 idx0 元素下標的第 一個成員,以 0 為基點 idx1 元素下標的第二個成員,以 0 為基點 idx2 元素下標的第三個成員,以 0 為基點 idx 元素下標數(shù)組 value 指派的值 函數(shù) cvSet*D 指定新的值給指定的數(shù)組元素。對于稀疏矩陣如果指定節(jié)點不存在函數(shù)創(chuàng)建新的節(jié)點 SetReal*D 修改指 定數(shù)組元素值 void cvSetReal1D( CvArr* arr, int idx0, double value )。 void cvSetReal2D( CvArr* arr, int idx0, int idx1, double value )。 void cvSetReal3D( CvArr* arr, int idx0, int idx1, int idx2, double value )。 void cvSetRealND( CvArr* arr, int* idx, double value )。 arr 輸入數(shù)組 . idx0 元素下標的第一個成員,以 0 為基點 idx1 元素下標的第二個成員,以 0 為基點 idx2 元素下標的第三個成員,以 0 為基點 idx 元素下標數(shù)組 value 指派的值 函數(shù) cvSetReal*D 分配新的值給單通道數(shù)組的指定元素 ,如果數(shù)組是多通道就會產(chǎn)生運行時錯誤。然而 cvSet*D 可以安全的被用于多通道和單通道數(shù)組,只是稍微有點慢。 對于稀疏數(shù)組如果指定的節(jié)點不存在函數(shù)會創(chuàng)建該節(jié)點。 mSet 返回單通道浮點矩陣的指定元素 void cvmSet( CvMat* mat, int row, int col, double value )。 mat 矩陣 . row 行下標 ,以 0 為基點 . col 列下標 ,以 0 為基點 . value 矩陣元素的新值 函數(shù) cvmSet 是 cvSetReal2D 快速替代 ,對于單通道浮點矩陣因為這個函數(shù)是內(nèi)連的所以比較快 ,函數(shù)對于數(shù)組類型、數(shù)組元素類型的檢查作的很少,并且僅在調(diào)式模式下檢查數(shù)的行和列范圍。 Clear*D 清除指定數(shù)組元素 void cvClearND( CvArr* arr, int* idx )。 arr 輸入數(shù)組 . idx 數(shù)組元素下標 函數(shù) cvClearND 清除指定密集型數(shù)組的元素 (置 0)或刪除稀疏數(shù)組的元素 ,如果元素不存在函數(shù)不作任何事 拷貝和添加 Copy 拷貝一個數(shù)組給另一個數(shù)組 void cvCopy( const CvArr* src, CvArr* dst, const CvArr* mask=NULL )。 src 輸入數(shù)組 . dst 輸出數(shù)組 mask Operation mask, 8bit single channel array。 specifies elements of destination array to be changed. 函數(shù) cvCopy copies selected elements from input array to output array: dst(I)=src(I) if mask(I)!=0. If any of the passed arrays is of IplImage type, then its ROI and COI fields are used. Both arrays must have the same type, the same number of dimensions and the same size. 函數(shù) can also copy sparse arrays (mask is not supported in this case). Set Sets every element of array to given value void cvSet( CvArr* arr, CvScalar value, const CvArr* mask=NULL )。 arr The destination array. value Fill value. mask 操作覆蓋面 ,8 位單通道數(shù)組 。 輸出數(shù)組中的覆蓋面指定元素被除數(shù)修改 . 函數(shù) cvSet 拷貝數(shù)量值到輸出數(shù)組的每一個被除數(shù)選定的元素 : arr(I)=value if mask(I)!=0 如果數(shù)組 arr 是 IplImage 類型 , 那么就會使用 ROI,但 COI 不能設置 . SetZero 清空數(shù)組 void cvSetZero( CvArr* arr )。 define cvZero cvSetZero arr 要被清空數(shù)組 . 函數(shù) cvSetZero 清空數(shù)組 . 對于密集型號數(shù)組 (CvMat, CvMatND or IplImage) cvZero(array) 就相當于 cvSet(array,cvScalarAll(0),0), 對于稀疏數(shù)組所有的元素都將被刪除 . 變換和置換 Reshape 不拷貝數(shù)據(jù)修改矩陣 /圖像形狀 CvMat* cvReshape( const CvArr* arr, CvMat* header, int new_, int new_rows=0 )。 arr 輸入的數(shù)組 . header 被添充的矩陣頭 new_ 新的通道數(shù) .new_ = 0 意味著不修改通道數(shù) new_rows 新的行數(shù) . 如果 new_rows = 0 保持原行數(shù)不修改否則根據(jù) new_ 值修改輸出數(shù)組 函數(shù) cvReshape 初始化 CvMat 頭 header 以便于讓頭指向修改后的形狀(但數(shù)據(jù)保持原樣) 也就是說修改通道數(shù) ,修改行數(shù)或者兩者者改變 . 例如 , 接下來的代碼創(chuàng)建一個圖像緩存、兩個圖像頭,第一個是 320x240x3 圖像第二個是 960x240x1 圖像 : IplImage* color_img = cvCreateImage( cvSize(320,240), IPL_DEPTH_8U, 3 )。 CvMat gray_mat_hdr。 IplImage gray_img_hdr, *gray_img。 cvReshape( color_img, amp。gray_mat_hdr, 1 )。 gray_img = cvGetImage( amp。gray_mat_hdr, amp。gray_img_hdr )。 下一個例子轉(zhuǎn)換 3x3 矩陣成單向量 1x9 CvMat* mat = cvCreateMat( 3, 3, CV_32F )。 CvMat row_header, *row。 row = cvReshape( mat, amp。row_header, 0, 1 )。 ReshapeMatND 修改多維數(shù)組形狀,拷貝 /不拷貝數(shù)據(jù) CvArr* cvReshapeMatND( const CvArr* arr, int sizeof_header, CvArr* header, int new_, int new_dims, int* new_sizes )。 define cvReshapeND( arr, header, new_, new_dims, new_sizes ) \ cvReshapeMatND( (arr), sizeof(*(header)), (header), \ (new_), (new_dims), (new_sizes)) arr 輸入數(shù)組 sizeof_header 輸出頭的大小,對于 IplImage, CvMat 和 CvMatND 各種結(jié)構(gòu)輸出的頭巾是不同的 . header 被添充的輸出頭 . new_ 新的通道數(shù),如果 new_ = 0 則通道數(shù)保持原樣 new_dims 新的維數(shù) . 如果 new_dims = 0 則維數(shù)保持原樣。 new_sizes 新的維大小 .只有當 只有 new_dims1 值被使用,因為要保持數(shù)組的總數(shù)一致,因此如果 new_dims = 1, new_sizes 是不被使用的 函數(shù) cvReshapeMatND 是 cvReshape 的高級版本,它可以處理多維數(shù)組(能夠嗆處理通用的圖像和矩陣)并且修改維數(shù),下面的是使用cvReshapeMatND 重寫 cvReshape 的二個例子 : IplImage* color_img = cvCreateImage( cvSize(320,240), IPL_DEPTH_8U, 3 )。 IplImage gray_img_hdr, *gray_img。 gray_img = (IplImage*)cvReshapeND( color_img, amp。gray_img_hdr, 1, 0, 0 )。 ... /*second example is modified to convert 2x2x2 array to 8x1 vector */ int size[] = { 2, 2, 2 }。 CvMatND* mat = cvCreateMatND( 3,
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1