Location:
Search - cxcore.h
Search list
Description: 在VC++6.0 已经openCV环境下的一维OTSU代码,实现图像二值化-// OTSU.h: interface for the COTSU class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_OTSU_H__33C2086A_C181_490B_946D_837B4C7FB914__INCLUDED_)
#define AFX_OTSU_H__33C2086A_C181_490B_946D_837B4C7FB914__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//---OpenCV Lib file-----------
#pragma comment (lib,"cv")
#pragma comment (lib,"highgui")
#pragma comment (lib, "cxcore")
//---gsl Lib file-----------
//#pragma comment (lib, "libgsl.a")
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
class COTSU
{
public:
IplImage* Binarize( IplImage* pImg, int nThreshold )
int Threshold()
void CalculateThresh( double* pHist, double dMean )
void GetThreshold( IplImage* pImg, CRect Rect )
COTSU()
virtual ~COTSU()
protected:
bool m_bDone
int m_nThreshold
}
#endif // !defined(AFX_OTSU_H__33C2086A_C181_490B_946D_837B4C7FB914__INCLUDED_)
Platform: |
Size: 2048 |
Author: shaohu |
Hits:
Description: OpenCV提供了一個通用矩陣乘法的函式,cvGEMM(),代表的是GEneralized Matrix Multiplication,cvGEMM()可以處理線性代數方面許多的乘法運算,cvmMul()矩陣乘法這個函式就是從這裡來的,cvmMul()在"cvcompat.h"及"cxcore.h"這兩個函式庫被定義-OpenCV provides a common matrix multiplication function, cvGEMM (), represents the GEneralized Matrix Multiplication, cvGEMM () can handle many aspects of linear algebra and multiplication, cvmMul () matrix multiplication of this function is from here, and cvmMul () in the " cvcompat.h" and the " cxcore.h" These two libraries are defined
Platform: |
Size: 1024 |
Author: nip |
Hits:
Description: ·· opencv ··· 基础程序中的模块匹配 -[code]#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include <stdio.h>
int main( int argc, char** argv ) {
IplImage*src,*templ,*ftmp[6] //ftmp will hold results
int i
if( argc == 3){
//Read in the source image to be searched:
if((src=cvLoadImage(argv[1], 1))== 0) {
printf("Error on reading src image s\n",argv[i])
return(-1)
}
Platform: |
Size: 3246080 |
Author: 燕子一舞 |
Hits:
Description: 视频读入,截取、灰度化显示!
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
IplImage* cvGetSubImage(IplImage *image, CvRect roi)
-Video read, interception, graying show!
Platform: |
Size: 1024 |
Author: mine |
Hits: