mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge pull request #12246 from sturkmen72:move_enums
* Update core.hpp * Update imgproc.hpp * Update ImgprocTest.java * Update CameraCalibrator.java * Update OnCameraFrameRender.java * Update FindContoursDemo.java * Update IntroductionToSVMDemo.java * Update NonLinearSVMsDemo.java * Update IntroductionToPCADemo.java * Update Smoothing.java * Update MainActivity.java * Update CalcBackProjectDemo1.java * Update CornerSubPixDemo.java * Update CornerDetectorDemo.java * Update GoodFeaturesToTrackDemo.java
This commit is contained in:
committed by
Alexander Alekhin
parent
6356403964
commit
d8cd1d8fcc
@@ -788,6 +788,46 @@ enum RectanglesIntersectTypes {
|
||||
INTERSECT_FULL = 2 //!< One of the rectangle is fully enclosed in the other
|
||||
};
|
||||
|
||||
|
||||
/** types of line
|
||||
@ingroup imgproc_draw
|
||||
*/
|
||||
enum LineTypes {
|
||||
FILLED = -1,
|
||||
LINE_4 = 4, //!< 4-connected line
|
||||
LINE_8 = 8, //!< 8-connected line
|
||||
LINE_AA = 16 //!< antialiased line
|
||||
};
|
||||
|
||||
/** Only a subset of Hershey fonts <https://en.wikipedia.org/wiki/Hershey_fonts> are supported
|
||||
@ingroup imgproc_draw
|
||||
*/
|
||||
enum HersheyFonts {
|
||||
FONT_HERSHEY_SIMPLEX = 0, //!< normal size sans-serif font
|
||||
FONT_HERSHEY_PLAIN = 1, //!< small size sans-serif font
|
||||
FONT_HERSHEY_DUPLEX = 2, //!< normal size sans-serif font (more complex than FONT_HERSHEY_SIMPLEX)
|
||||
FONT_HERSHEY_COMPLEX = 3, //!< normal size serif font
|
||||
FONT_HERSHEY_TRIPLEX = 4, //!< normal size serif font (more complex than FONT_HERSHEY_COMPLEX)
|
||||
FONT_HERSHEY_COMPLEX_SMALL = 5, //!< smaller version of FONT_HERSHEY_COMPLEX
|
||||
FONT_HERSHEY_SCRIPT_SIMPLEX = 6, //!< hand-writing style font
|
||||
FONT_HERSHEY_SCRIPT_COMPLEX = 7, //!< more complex variant of FONT_HERSHEY_SCRIPT_SIMPLEX
|
||||
FONT_ITALIC = 16 //!< flag for italic font
|
||||
};
|
||||
|
||||
/** Possible set of marker types used for the cv::drawMarker function
|
||||
@ingroup imgproc_draw
|
||||
*/
|
||||
enum MarkerTypes
|
||||
{
|
||||
MARKER_CROSS = 0, //!< A crosshair marker shape
|
||||
MARKER_TILTED_CROSS = 1, //!< A 45 degree tilted crosshair marker shape
|
||||
MARKER_STAR = 2, //!< A star marker shape, combination of cross and tilted cross
|
||||
MARKER_DIAMOND = 3, //!< A diamond marker shape
|
||||
MARKER_SQUARE = 4, //!< A square marker shape
|
||||
MARKER_TRIANGLE_UP = 5, //!< An upwards pointing triangle marker shape
|
||||
MARKER_TRIANGLE_DOWN = 6 //!< A downwards pointing triangle marker shape
|
||||
};
|
||||
|
||||
//! finds arbitrary template in the grayscale image using Generalized Hough Transform
|
||||
class CV_EXPORTS GeneralizedHough : public Algorithm
|
||||
{
|
||||
@@ -4430,18 +4470,6 @@ CV_EXPORTS_W void ellipse(InputOutputArray img, const RotatedRect& box, const Sc
|
||||
/* ADDING A SET OF PREDEFINED MARKERS WHICH COULD BE USED TO HIGHLIGHT POSITIONS IN AN IMAGE */
|
||||
/* ----------------------------------------------------------------------------------------- */
|
||||
|
||||
//! Possible set of marker types used for the cv::drawMarker function
|
||||
enum MarkerTypes
|
||||
{
|
||||
MARKER_CROSS = 0, //!< A crosshair marker shape
|
||||
MARKER_TILTED_CROSS = 1, //!< A 45 degree tilted crosshair marker shape
|
||||
MARKER_STAR = 2, //!< A star marker shape, combination of cross and tilted cross
|
||||
MARKER_DIAMOND = 3, //!< A diamond marker shape
|
||||
MARKER_SQUARE = 4, //!< A square marker shape
|
||||
MARKER_TRIANGLE_UP = 5, //!< An upwards pointing triangle marker shape
|
||||
MARKER_TRIANGLE_DOWN = 6 //!< A downwards pointing triangle marker shape
|
||||
};
|
||||
|
||||
/** @brief Draws a marker on a predefined position in an image.
|
||||
|
||||
The function cv::drawMarker draws a marker on a given position in the image. For the moment several
|
||||
|
||||
Reference in New Issue
Block a user