Common functions in OpenCV

Source: Internet
Author: User
Tags scalar

1. Cvloadimage: Load the image file into memory;

2, Cvnamedwindow: Create a window on the screen;

3, Cvshowimage: Display the image in a window that has been created;

4, Cvwaitkey: The program pauses, waiting for the user to trigger a key operation;

5, Cvreleaseimage: Release the memory allocated by the image file;

6, Cvdestroywindow: Destroy the window displaying image files;

7, Cvcreatefilecapture: Through the parameter setting determines the AVI file to be read into;

8, Cvqueryframe: Used to load the next frame video file into memory;

9, Cvreleasecapture: Release the cvcapture structure open memory space;

10, Cvcreatetrackbar: Create a scroll bar;

11, Cvsetcaptureproperty: Set the various properties of Cvcapture object;

12, Cvgetcaptureproperty: Query the various properties of Cvcapture objects;

13, Cvgetsize: The size of the current image structure;

14, Cvsmooth: smooth image processing;

15, Cvpyrdown: Image pyramid, reduced sampling, the image is reduced to the original One-fourth;

16, Cvcanny:canny edge detection;

17, Cvcreatecameracapture: Read the data from the camera equipment;

18. Cvcreatevideowriter: Create a write device to write the video stream to the video file by frame;

19, Cvwriteframe: The video stream is written to the file by frame;

20, Cvreleasevideowriter: Release the cvvideowriter structure open memory space;

21, Cv_mat_elem: Get an element from the matrix;

22. Cvabs: Calculates the absolute value of all the elements in the array;

23, Cvabsdiff: Calculates the absolute value of two array difference;

24, Cvabsdiffs: Calculates the absolute value of the array and the scalar difference;

25, Cvadd: Two array of element-level add operation;

26, Cvadds: An array and a scalar element level of the addition operation;

27, cvaddweighted: Two array of element-level weighted addition operation (Alpha operation);

28, Cvavg: Calculates the average of all the elements in the array;

29, CVAVGSDV: Calculates the absolute value and the standard deviation of all elements in the array;

30. Cvcalccovarmatrix: Calculates the covariance of a set of n-dimensional space vectors;

31, CVCMP: Apply the Set comparison operation to all the elements in two arrays;

32, Cvcmps: Logarithmic group and scalar use the comparison of the operation of the set;

33. Cvconvertscale: Convert array element type with optional scaling value;

34, Cvcopy: Copy the values in the array into another array;

35, Cvcountnonzero: Calculate the number of non-0 values in the array;

36, cvcrossproduct: Calculate the vector product of two three-dimensional vector (cross product);

37, Cvcvtcolor: The array of channels from one color space to convert another color space;

38, Cvdet: Calculate the determinant of the square matrix;

39, Cvdiv: With another array to an array of element-level division operations;

40, Cvdotproduct: Calculate the dot product of two vectors;

41, CVEIGENVV: Calculate the eigenvalues and eigenvectors of the square matrix;

42, Cvflip: Rotate around the selected axis;

43, Cvgemm: Matrix multiplication;

44, Cvgetcol: Copy elements from a column in an array;

45. Cvgetcols: Copy elements from adjacent multiple columns of the data;

46, Cvgetdiag: Copy all the elements on the diagonal of the array;

47, Cvgetdims: Returns the dimension of the array;

48, Cvgetdimsize: Returns the size of all dimensions of an array;

49, Cvgetrow: Copy the element value from the row of an array;

50, Cvgetrows: Copy the element value from multiple adjacent rows of an array;

51, Cvgetsize: To get the size of the two-dimensional array, to cvsize return;

52, Cvgetsubrect: Copy the element value from a sub-region of an array;

53, Cvinrange: Check whether the elements of an array are within the range of the values in the other two arrays;

54. Cvinranges: Check whether the value of an array's elements is within the range of the other two scalars;

55, Cvinvert: Seeking the inverse of the matrix;

56, Cvmahalonobis: Calculates the Markov distance between two vectors;

57, Cvmax: In two arrays to take the maximum value of the element-level operation;

58, Cvmaxs: In an array and a scalar to take the maximum value of the element-level operation;

59. Cvmerge: Combine several single-channel images into a multi-channel image;

60, Cvmin: In two arrays to take the minimum value of the element-level operation;

61, Cvmins: In an array and a scalar to take the minimum value of the element-level operation;

62, Cvminmaxloc: Look for the maximum minimum value in the array;

63, Cvmul: Calculates the product of the element level of two arrays (point multiplication);

64. Cvnot: Negation of each element in a bitwise array;

65. Cvnormalize: The elements in the array are normalized;

66. Cvor: Bitwise OR operation of two arrays;

67, Cvors: The array and the scalar between the bitwise OR operation;

68, Cvreduce: The two-dimensional array is simply vector by the given operator;

69, Cvrepeat: Array copying in a tiled manner;

70, Cvset: Initialize the array with the given value;

71, Cvsetzero: Initializes all elements of the array to 0;

72. Cvsetidentity: Set the element on the diagonal of the array to 1, the other 0;

73, Cvsolve: Find out the solution of the linear equation Group;

74, Cvsplit: The multi-channel array is divided into multiple single-channel arrays;

75, Cvsub: Two array element-level subtraction;

76, Cvsubs: The element-level subtracted from the array of scalars;

77. Cvsubrs: Subtract an array from a scalar at the element level;

78, Cvsum: Sum all the elements in the array;

79, CVSVD: Singular value decomposition of two-dimensional matrix;

80, CVSVBKSB: Singular value back-generation calculation;

81, Cvtrace: Calculate the matrix trace;

82, Cvtranspose: matrix of the transpose operation;

83. Cvxor: Bitwise XOR OR operation of two arrays;

84, Cvxors: In the array and scalar between the bitwise XOR or operation;

85. Cvzero: Set the elements in all arrays to 0;

86. Cvconvertscaleabs: Calculates the absolute value of an optional scale and then converts the type of the array element;

87, Cvnorm: Calculates the absolute norm of the array, the absolute difference norm or the relative difference norm;

88. Cvand: Bitwise AND operation of two arrays;

89, Cvands: The array and the scalar between the bitwise AND operation;

90, Cvscale: is a macro of cvconvertscale, can be used to re-adjust the contents of the array, and can be the parameters from a number

Conversion of the data type to another;

91, CvT: is the abbreviation of function cvtranspose;

92, Cvline: Draw straight line;

93, Cvrectangle: Draw rectangle;

94, Cvcircle: Draw a circle;

95, Cvellipse: Draw ellipse;

96, Cvellipsebox: Use the external rectangle to describe the ellipse;

97, Cvfillpoly, Cvfillconvexpoly, cvpolyline: Draw polygon;

98, Cvputtext: Output Some text on the image;

99, Cvinitfont: The use of a set of parameters to configure some of the basic screen output of a specific font;

100, Cvsave: Matrix preservation;

101, Cvload: Matrix read;

102, Cvopenfilestorage: Open the storage file for read/write;

103, Cvreleasefilestorage: Release the stored data;

104, Cvstartwritestruct: Start to write a new data structure;

105, Cvendwritestruct: End write data structure;

106, Cvwriteint: Write integer type;

107, Cvwritereal: Write floating-point type;

108, Cvwritestring: Write character type;

109, Cvwritecomment: Write an XML or Yaml annotation string;

110, Cvwrite: Write an object;

111, Cvwriterawdata: Write multiple values;

112, Cvwritefilenode: The file node is written to another file memory;

113, Cvgetrootfilenode: Get the top node of the memory;

114, Cvgetfilenodebyname: Find the corresponding node in the map or memory;

115. Cvgethashedkey: Returns a unique pointer for the name;

116, Cvgetfilenode: Find the node in the map or file memory;

117, Cvgetfilenodename: Returns the node name of the file;

118, Cvreadint: Read a non-named integer type;

119, Cvreadintbyname: Read a name of the integer type;

120, Cvreadreal: Read a non-named floating-point type;

121. Cvreadrealbyname: Reads a floating-point type with a name;

122. Cvreadstring: Looking for a string from the file node;

123. Cvreadstringbyname: Find a file node with a name and return it;

124. Cvread: Decodes the object and returns its pointer;

125, Cvreadbyname: Find the object and decode;

126, Cvreadrawdata: Read multiple values;

127, Cvstartreadrawdata: Initialization of the file node sequence reading;

128, Cvreadrawdataslice: Read the contents of the file node;

129, Cvgetmoduleinfo: Check the IPP library is installed properly and verify the operation is normal;

130, Cvresizewindow: Used to adjust the size of the window;

131, Cvsaveimage: Save the image;

132. Cvmovewindow: Move the window to the position of X, y in its upper-left corner;

133, Cvdestroyallwindow: Used to close all windows and free up the window related memory space;

134, Cvgettrackbarpos: Read the value of the slider bar;

135, Cvsettrackbarpos: Set the value of the slider bar;

136, Cvgrabframe: For fast video frame read into memory;

137, Cvretrieveframe: to read into the frame to do all the necessary processing;

138, Cvconvertimage: Used to convert between the different image formats commonly used;

139, Cverode: morphology corrosion;

140, Cvdilate: morphological expansion;

141, Cvmorphologyex: more general morphological function;

142, Cvfloodfill: Diffuse water filling algorithm, used to further control which areas will be filled with color;

143, Cvresize: enlarge or reduce the image;

144, Cvpyrup: Image pyramid, the existing image in each dimension is magnified twice times;

145, Cvpyrsegmentation: Using the pyramid to achieve image segmentation;

146, Cvthreshold: Image thresholding;

147, CVACC: The 8-bit integer type image can be accumulated as a floating point image;

148, Cvadaptivethreshold: Image adaptive threshold value;

149, cvfilter2d: Image convolution;

150, Cvcopymakeborder: The specific image is slightly larger, and then automatically fill the image boundary in various ways;

151, Cvsobel: Image edge detection, Sobel operator;

152, Cvlaplace: Laplace transform, image edge detection;

153, CvHoughLines2: Hough linear transformation;

154, Cvhoughcircles: Hough circle Transformation;

155, Cvremap: Image re-mapping, calibration image correction, image interpolation;

156, Cvwarpaffine: dense affine transformation;

157, Cvgetquadranglesubpix: affine transformation;

158. Cvgetaffinetransform: The calculation of affine mapping matrix;

159, Cvcloneimage: The entire iplimage structure is copied into the new Iplimage;

160. Cv2drotationmatrix: The calculation of affine mapping matrix;

161, Cvtransform: sparse affine transformation;

162, Cvwarpperspective: Intensive Perspective Transformation (single-sex);

163, Cvgetperspectivetransform: Calculate Perspective mapping matrix;

164, Cvperspectivetransform: sparse perspective transformation;

165, Cvcarttopolar: The value from the Cartesian space to polar coordinates (polar space) mapping;

166, Cvpolartocart: The value from the polar space to the Cartesian space mapping;

167, Cvlogpolar: logarithmic polar coordinate transformation;

168, Cvdft: discrete Fourier transform;

169, Cvmulspectrums: Spectrum multiplication;

170, CVDCT: discrete cosine transform;

171, Cvintegral: Calculate the integral image;

172, Cvdisttransform: The distance transformation of the image;

173, Cvequalizehist: histogram equalization;

174, Cvcreatehist: Create a new histogram;

175, Cvmakehistheaderforarray: Based on the data given to create a histogram;

176, Cvnormalizehist: Normalized histogram;

177, Cvthreshhist: histogram threshold function;

178, Cvcalchist: Automatically calculate the histogram from the image;

179, Cvcomparehist: Used to compare the similarity of two histogram;

180, CvCalcEMD2: Land Moving Distance (EMD) algorithm;

181, Cvcalcbackproject: Reverse projection;

182, Cvcalcbackprojectpatch: The direction of the projection of the tile;

183, Cvmatchtemplate: template matching;

184, Cvcreatememstorage: for creating a memory storage;

185, Cvcreateseq: Create sequence;

186, Cvseqinvert: The sequence to reverse the operation;

187. Cvcvtseqtoarray: Copies all or part of a sequence into a contiguous array of memory;

188, Cvfindcontours: Look for the contour from the two value image;

189, cvdrawcontours: Draw contour;

190, Cvapproxpoly: Using polygonal approximation to a contour;

191, Cvcontourperimeter: contour length;

192, cvcontoursmoments: Calculate the contour moment;

193, cvmoments: Calculate Hu invariant moment;

194, Cvmatchshapes: Use moment to match;

195. Cvinitlineiterator: Sampling the pixels on any line;

196, Cvsampleline: the Straight line sampling;

197, Cvabsdiff: Frame difference;

198, cvwatershed: watershed algorithm;

199, Cvinpaint: Repair image;

200, Cvgoodfeaturestotrack: Looking for corner point;

201, Cvfindcornersubpix: For the detection of sub-pixel precision corner position;

202, Cvcalcopticalflowlk: The realization of non-pyramid lucas-kanade dense optical flow algorithm;

203, cvmeanshift:mean-shift tracking algorithm;

204, cvcamshift:camshift tracking algorithm;

205, Cvcreatekalman: Create the Kalman filter;

206, Cvcreatecondensation: Create condensation filter;

207, Cvconvertpointshomogenious: The alignment of the sub-coordinates to convert;

208, Cvfindchessboardcorners: Positioning the board corner point;

209, Cvfindhomography: The calculation of single-response matrix;

210, CvRodrigues2: Rodriguez transformation;

211, Cvfitline: Straight line fitting method;

212, Cvcalccovarmatrix: calculate covariance matrix;

213. Cvinvert: Calculates the inverse matrix of the covariance matrix;

214, Cvmahalanobis: Calculate Mahalanobis distance;

215, cvkmeans2:k mean value;

216, Cvclonemat: Create a new matrix based on an existing matrix;

217, Cvprecornerdetect: Calculate the feature map used for corner detection;

218, Cvgetimage:cvmat image Data format converted into Iplimage image Data format;

219, Cvmatmul: two matrices multiply;

(go) common functions in OpenCV

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.