logo资料库

opencv的库函数大全,很全,很清晰,自己看就知道.pdf

第1页 / 共377页
第2页 / 共377页
第3页 / 共377页
第4页 / 共377页
第5页 / 共377页
第6页 / 共377页
第7页 / 共377页
第8页 / 共377页
资料共377页,剩余部分请下载后查看
Open Source Computer Vision Library
Contents
Image Functions
Overview
Reference
cvCreateImageHeader
cvCreateImage
cvReleaseImageHeader
cvReleaseImage
cvCreateImageData
cvReleaseImageData
cvSetImageData
cvSetImageCOI
cvSetImageROI
cvGetImageRawData
cvInitImageHeader
cvCopyImage
Pixel Access Macros
Overview
CV_INIT_PIXEL_POS
CV_MOVE_TO
CV_MOVE
CV_MOVE_WRAP
CV_MOVE_PARAM
CV_MOVE_PARAM_WRAP
Dynamic Data Structures
Memory Storage
Overview
cvCreateMemStorage
cvCreateChildMemStorage
cvReleaseMemStorage
cvClearMemStorage
cvSaveMemStoragePos
cvRestoreMemStoragePos
Sequences
Overview
cvCreateSeq
cvSetSeqBlockSize
cvSeqPush
cvSeqPop
cvSeqPushFront
cvSeqPopFront
cvSeqPushMulti
cvSeqPopMulti
cvSeqInsert
cvSeqRemove
cvClearSeq
cvGetSeqElem
cvSeqElemIdx
cvCvtSeqToArray
cvMakeSeqHeaderForArray
Writing and Reading Sequences
Overview
Reference
cvStartAppendToSeq
cvStartWriteSeq
cvEndWriteSeq
cvFlushSeqWriter
cvStartReadSeq
cvGetSeqReaderPos
cvSetSeqReaderPos
Sets
Overview
Reference
cvCreateSet
cvSetAdd
cvSetRemove
cvGetSetElem
cvClearSet
Graphs
Overview
Reference
cvCreateGraph
cvGraphAddVtx
cvGraphRemoveVtx
cvGraphRemoveVtxByPtr
cvGraphAddEdge
cvGraphAddEdgeByPtr
cvGraphRemoveEdge
cvGraphRemoveEdgeByPtr
cvFindGraphEdge
cvFindGraphEdgeByPtr
cvGraphVtxDegree
cvGraphVtxDegreeByPtr
cvClearGraph
cvGetGraphVtx
cvGraphVtxIdx
cvGraphEdgeIdx
Contour Processing
Overview
Basic Definitions
Contour Representation
Contour Retrieving Algorithm
Polygonal Approximation
Douglas-Peucker Approximation
Contours Moments
Hierarchical Representation of Contours
Data Structures
Reference
cvFindContours
cvStartFindContours
cvFindNextContour
cvSubstituteContour
cvEndFindContours
cvApproxChains
cvStartReadChainPoints
cvReadChainPoint
cvApproxPoly
cvDrawContours
cvContoursMoments
cvContourArea
cvMatchContours
cvCreateContourTree
cvContourFromContourTree
cvMatchContourTrees
Geometry
Overview
Ellipse Fitting
Line Fitting
Convexity Defects
Reference
cvFitEllipse
cvFitLine2D
cvFitLine3D
cvProject3D
cvConvexHull
cvContourConvexHull
cvConvexHullApprox
cvContourConvexHullApprox
cvCheckContourConvexity
cvConvexityDefects
cvMinAreaRect
cvCalcPGH
cvMinEnclosingCircle
Features
Fixed Filters
Overview
Sobel Derivatives
Optimal Filter Kernels with Floating Point Coefficients
First Derivatives
Second Derivatives
Laplacian Approximation
Reference
cvLaplace
cvSobel
Feature Detection Functions
Overview
Corner Detection
Canny Edge Detector
Reference
cvCanny
cvPreCornerDetect
cvCornerEigenValsAndVecs
cvCornerMinEigenVal
cvFindCornerSubPix
cvGoodFeaturesToTrack
Hough Transform
Overview
Reference
cvHoughLines
cvHoughLinesSDiv
Discussion
cvHoughLinesP
Discussion
Image Statistics
Overview
Reference
cvCountNonZero
cvSumPixels
cvMean
cvMean_StdDev
cvMinMaxLoc
cvNorm
cvMoments
cvGetSpatialMoment
cvGetCentralMoment
cvGetNormalizedCentralMoment
cvGetHuMoments
Pyramids
Overview
Reference
cvPyrDown
cvPyrUp
cvPyrSegmentation
Morphology
Overview
Flat Structuring Elements for Gray Scale
Reference
cvCreateStructuringElementEx
cvReleaseStructuringElement
cvErode
cvDilate
cvMorphologyEx
Background Subtraction
Overview
Reference
cvAcc
cvSquareAcc
cvMultiplyAcc
cvRunningAvg
Distance Transform
Overview
Reference
cvDistTransform
Threshold Functions
Overview
Reference
cvAdaptiveThreshold
cvThreshold
Flood Fill
Overview
Reference
cvFloodFill
Camera Calibration
Overview
Camera Parameters
Homography
Pattern
Lens Distortion
Rotation Matrix and Rotation Vector
Reference
cvCalibrateCamera
cvCalibrateCamera_64d
cvFindExtrinsicCameraParams
cvFindExtrinsicCameraParams_64d
cvRodrigues
cvRodrigues_64d
cvUnDistortOnce
cvUnDistortInit
cvUnDistort
cvFindChessBoardCornerGuesses
View Morphing
Overview
Algorithm
Using Functions for View Morphing Algorithm
Reference
cvFindFundamentalMatrix
cvMakeScanlines
cvPreWarpImage
cvFindRuns
cvDynamicCorrespondMulti
cvMakeAlphaScanlines
cvMorphEpilinesMulti
cvPostWarpImage
cvDeleteMoire
Motion Templates
Overview
Motion Representation and Normal Optical Flow Method
Motion Representation
A) Updating MHI Images
B) Making Motion Gradient Image
C) Finding Regional Orientation or Normal Optical Flow
Motion Segmentation
Reference
cvUpdateMotionHistory
cvCalcMotionGradient
cvCalcGlobalOrientation
cvSegmentMotion
CamShift
Overview
Mass Center Calculation for 2D Probability Distribution
CamShift Algorithm
Calculation of 2D Orientation
Reference
cvCamShift
cvMeanShift
Active Contours
Overview
Reference
cvSnakeImage
Optical Flow
Overview
Lucas & Kanade Technique
Horn & Schunck Technique
Block Matching
Reference
cvCalcOpticalFlowHS
cvCalcOpticalFlowLK
cvCalcOpticalFlowBM
cvCalcOpticalFlowPyrLK
Estimators
Overview
Definitions and Motivation
Models
Estimators
Kalman Filtering
Reference
cvCreateKalman
cvReleaseKalman
cvKalmanUpdateByTime
cvKalmanUpdateByMeasurement
ConDensation Algorithm
Implementation of Nonlinear Models
Reference
cvCreateConDensation
cvReleaseConDensation
cvConDensInitSampleSet
cvConDensUpdatebyTime
POSIT
Overview
Background
Camera parameters
Geometric Image Formation
Pose Approximation Method
Algorithm
Reference
cvCreatePOSITObject
cvPOSIT
cvReleasePOSITObject
Histogram
Overview
Histograms and Signatures
Example Ground Distances
Lower Boundary for EMD
Reference
cvCreateHist
cvReleaseHist
cvMakeHistHeaderForArray
cvQueryHistValue_1D
cvQueryHistValue_2D
cvQueryHistValue_3D
cvQueryHistValue_nD
cvGetHistValue_1D
cvGetHistValue_2D
cvGetHistValue_3D
cvGetHistValue_nD
cvGetMinMaxHistValue
cvNormalizeHist
cvThreshHist
cvCompareHist
cvCopyHist
cvSetHistBinRanges
cvCalcHist
cvCalcBackProject
cvCalcBackProjectPatch
cvCalcEMD
Gesture Recognition
Overview
Reference
cvFindHandRegion
cvFindHandRegionA
cvCreateHandMask
cvCalcImageHomography
cvCalcProbDensity
cvMaxRect
Matrix Operations
Overview
Reference
cvmAlloc
cvmAllocArray
cvmFree
cvmFreeArray
cvmAdd
cvmSub
cvmScale
cvmDotProduct
cvmCrossProduct
cvmMul
cvmMulTransposed
cvmTranspose
cvmInvert
cvmTrace
cvmDet
cvmCopy
cvmSetZero_32f
cvmSetIdentity
cvmMahalonobis
cvmSVD
cvmEigenVV
cvmPerspectiveProject
Eigen Objects
Overview
Reference
cvCalcCovarMatrixEx
cvCalcEigenObjects
cvCalcDecompCoeff
cvEigenDecomposite
cvEigenProjection
Use of Functions
Embedded Hidden Markov Models
Overview
HMM Structures
Reference
cvCreate2DHMM
cvRelease2DHMM
cvCreateObsInfo
cvReleaseObsInfo
cvImgToObs_DCT
cvUniformImgSegm
cvInitMixSegm
cvEstimateHMMStateParams
cvEstimateTransProb
cvEstimateObsProb
cvEViterbi
cvMixSegmL2
Drawing Primitives
Overview
Reference
cvLine
cvLineAA
cvRectangle
cvCircle
cvEllipse
cvEllipseAA
cvFillPoly
cvFillConvexPoly
cvPolyLine
cvPolyLineAA
cvInitFont
cvPutText
cvGetTextSize
System Functions
Reference
cvLoadPrimitives
cvGetLibraryInfo
Utility
Reference
cvAbsDiff
cvAbsDiffS
cvMatchTemplate
cvCvtPixToPlane
cvCvtPlaneToPix
cvConvertScale
cvInitLineIterator
cvSampleLine
cvGetRectSubPix
cvbFastArctan
cvSqrt
cvbSqrt
cvInvSqrt
cvbInvSqrt
cvbReciprocal
cvbCartToPolar
cvbFastExp
cvbFastLog
cvRandInit
cvbRand
cvFillImage
cvRandSetRange
cvKMeans
Bibliography
Index
Open Source Computer Vision Library Reference Manual Copyright © 1999-2001 Intel Corporation All Rights Reserved Issued in U.S.A. Order Number: TBD World Wide Web: http://developer.intel.com
ii
Version -001 Version History Original Issue Date December 8, 2000 This Open Source Computer Vision Library Reference Manual as well as the software described in it is furnished under license and may only be used or copied in accordance with the terms of the license. The information in this manual is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Intel Corporation. Intel Corporation assumes no responsibility or liability for any errors or inaccuracies that may appear in this document or any software that may be provided in associa- tion with this document. Except as permitted by such license, no part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means without the express written consent of Intel Corporation. Information in this document is provided in connection with Intel products. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted by this document. Except as provided in Intel's Terms and Conditions of Sale for such products, Intel assumes no liability whatsoever, and Intel disclaims any express or implied warranty, relating to sale and/or use of Intel products including liability or warranties relating to fitness for a particular purpose, merchantability, or infringement of any patent, copyright or other intellec- tual property right. Intel products are not intended for use in medical, life saving, or life sustaining applications. Intel may make changes to specifications and product descriptions at any time, without notice. Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined." Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them. The Open Source Computer Vision Library may contain design defects or errors known as errata which may cause the product to deviate from published specifications. Current characterized errata are available on request. Copyright © Intel Corporation 1999-2001. *Third-party brands and names are the property of their respective owners.
Contents Contents Chapter 1 Image Functions Overview ................................................................................................ 1-1 Reference............................................................................................... 1-4 cvCreateImageHeader....................................................................... 1-4 cvCreateImage .................................................................................. 1-5 cvReleaseImageHeader .................................................................... 1-5 cvReleaseImage................................................................................ 1-6 cvCreateImageData........................................................................... 1-6 cvReleaseImageData ........................................................................ 1-7 cvSetImageData ................................................................................ 1-7 cvSetImageCOI ................................................................................. 1-8 cvSetImageROI ................................................................................. 1-8 cvGetImageRawData......................................................................... 1-9 cvInitImageHeader ............................................................................ 1-9 cvCopyImage................................................................................... 1-10 Pixel Access Macros ............................................................................ 1-10 Overview.......................................................................................... 1-10 CV_INIT_PIXEL_POS ..................................................................... 1-12 CV_MOVE_TO ................................................................................ 1-13 CV_MOVE ....................................................................................... 1-13 CV_MOVE_WRAP .......................................................................... 1-14 CV_MOVE_PARAM ......................................................................... 1-14 v
OpenCV Reference Manual Contents CV_MOVE_PARAM_WRAP ............................................................ 1-15 Chapter 2 Dynamic Data Structures Memory Storage ..................................................................................... 2-1 Overview ............................................................................................ 2-1 cvCreateMemStorage ........................................................................ 2-3 cvCreateChildMemStorage................................................................ 2-3 cvReleaseMemStorage...................................................................... 2-4 cvClearMemStorage .......................................................................... 2-4 cvSaveMemStoragePos..................................................................... 2-5 cvRestoreMemStoragePos ................................................................ 2-5 Sequences.............................................................................................. 2-7 Overview ............................................................................................ 2-7 cvCreateSeq .................................................................................... 2-10 cvSetSeqBlockSize.......................................................................... 2-11 cvSeqPush....................................................................................... 2-12 cvSeqPop......................................................................................... 2-13 cvSeqPushFront .............................................................................. 2-13 cvSeqPopFront ................................................................................ 2-13 cvSeqPushMulti ............................................................................... 2-14 cvSeqPopMulti ................................................................................. 2-14 cvSeqInsert...................................................................................... 2-15 cvSeqRemove.................................................................................. 2-16 cvClearSeq ...................................................................................... 2-16 cvGetSeqElem ................................................................................. 2-17 cvSeqElemIdx.................................................................................. 2-17 cvCvtSeqToArray ............................................................................. 2-18 cvMakeSeqHeaderForArray............................................................. 2-18 Writing and Reading Sequences .......................................................... 2-19 Overview .......................................................................................... 2-19 Reference ........................................................................................ 2-21 cvStartAppendToSeq ....................................................................... 2-21 vi
OpenCV Reference Manual Contents cvStartWriteSeq............................................................................... 2-21 cvEndWriteSeq ................................................................................ 2-22 cvFlushSeqWriter ............................................................................ 2-23 cvStartReadSeq............................................................................... 2-23 cvGetSeqReaderPos ....................................................................... 2-24 cvSetSeqReaderPos........................................................................ 2-25 .............................................................................................................. 2-25 Sets ...................................................................................................... 2-25 Overview .......................................................................................... 2-25 Reference ............................................................................................. 2-29 cvCreateSet ..................................................................................... 2-29 cvSetAdd ......................................................................................... 2-29 cvSetRemove................................................................................... 2-30 cvGetSetElem.................................................................................. 2-30 cvClearSet ....................................................................................... 2-31 Graphs.................................................................................................. 2-32 Overview .......................................................................................... 2-32 Reference ........................................................................................ 2-35 cvCreateGraph................................................................................. 2-35 cvGraphAddVtx................................................................................ 2-36 cvGraphRemoveVtx......................................................................... 2-36 cvGraphRemoveVtxByPtr ................................................................ 2-37 cvGraphAddEdge............................................................................. 2-37 cvGraphAddEdgeByPtr.................................................................... 2-38 cvGraphRemoveEdge...................................................................... 2-39 cvGraphRemoveEdgeByPtr ............................................................. 2-39 cvFindGraphEdge ............................................................................ 2-40 cvFindGraphEdgeByPtr ................................................................... 2-40 cvGraphVtxDegree .......................................................................... 2-41 cvGraphVtxDegreeByPtr.................................................................. 2-42 cvClearGraph................................................................................... 2-42 cvGetGraphVtx ................................................................................ 2-43 vii
OpenCV Reference Manual Contents cvGraphVtxIdx ................................................................................. 2-43 cvGraphEdgeIdx .............................................................................. 2-44 Chapter 3 Contour Processing Overview ............................................................................................ 3-1 Basic Definitions............................................................................ 3-1 Contour Representation ................................................................ 3-4 Contour Retrieving Algorithm ........................................................ 3-5 Polygonal Approximation............................................................... 3-6 Douglas-Peucker Approximation ................................................... 3-9 Contours Moments...................................................................... 3-10 Hierarchical Representation of Contours .................................... 3-13 Data Structures ........................................................................... 3-19 Reference ............................................................................................. 3-20 cvFindContours................................................................................ 3-20 cvStartFindContours ........................................................................ 3-21 cvFindNextContour .......................................................................... 3-22 cvSubstituteContour ........................................................................ 3-23 cvEndFindContours ......................................................................... 3-23 cvApproxChains............................................................................... 3-24 cvStartReadChainPoints.................................................................. 3-25 cvReadChainPoint ........................................................................... 3-25 cvApproxPoly ................................................................................... 3-26 cvDrawContours .............................................................................. 3-26 cvContoursMoments........................................................................ 3-27 cvContourArea................................................................................. 3-28 cvMatchContours............................................................................. 3-28 cvCreateContourTree....................................................................... 3-30 cvContourFromContourTree ............................................................ 3-30 cvMatchContourTrees ...................................................................... 3-31 Chapter 4 viii
分享到:
收藏