Merge pull request #2898 from PhilLab:2.4
This commit is contained in:
commit
39020fc9cf
@ -1588,7 +1588,7 @@ The distorted point coordinates are [x'; y'] where
|
|||||||
x' = (\theta_d / r) x \\
|
x' = (\theta_d / r) x \\
|
||||||
y' = (\theta_d / r) y
|
y' = (\theta_d / r) y
|
||||||
|
|
||||||
Finally, convertion into pixel coordinates: The final pixel coordinates vector [u; v] where:
|
Finally, conversion into pixel coordinates: The final pixel coordinates vector [u; v] where:
|
||||||
|
|
||||||
.. class:: center
|
.. class:: center
|
||||||
.. math::
|
.. math::
|
||||||
|
@ -495,7 +495,7 @@ public:
|
|||||||
//! dot product computed in double-precision arithmetics
|
//! dot product computed in double-precision arithmetics
|
||||||
double ddot(const Matx<_Tp, m, n>& v) const;
|
double ddot(const Matx<_Tp, m, n>& v) const;
|
||||||
|
|
||||||
//! convertion to another data type
|
//! conversion to another data type
|
||||||
template<typename T2> operator Matx<T2, m, n>() const;
|
template<typename T2> operator Matx<T2, m, n>() const;
|
||||||
|
|
||||||
//! change the matrix shape
|
//! change the matrix shape
|
||||||
@ -636,7 +636,7 @@ public:
|
|||||||
For other dimensionalities the exception is raised
|
For other dimensionalities the exception is raised
|
||||||
*/
|
*/
|
||||||
Vec cross(const Vec& v) const;
|
Vec cross(const Vec& v) const;
|
||||||
//! convertion to another data type
|
//! conversion to another data type
|
||||||
template<typename T2> operator Vec<T2, cn>() const;
|
template<typename T2> operator Vec<T2, cn>() const;
|
||||||
//! conversion to 4-element CvScalar.
|
//! conversion to 4-element CvScalar.
|
||||||
operator CvScalar() const;
|
operator CvScalar() const;
|
||||||
|
@ -64,7 +64,7 @@ Computes the descriptors for a set of keypoints detected in an image (first vari
|
|||||||
|
|
||||||
:param images: Image set.
|
:param images: Image set.
|
||||||
|
|
||||||
:param keypoints: Input collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: ``SIFT`` duplicates keypoint with several dominant orientations (for each orientation).
|
:param keypoints: Input collection of keypoints. Keypoints for which a descriptor cannot be computed are removed and the remaining ones may be reordered. Sometimes new keypoints can be added, for example: ``SIFT`` duplicates a keypoint with several dominant orientations (for each orientation).
|
||||||
|
|
||||||
:param descriptors: Computed descriptors. In the second variant of the method ``descriptors[i]`` are descriptors computed for a ``keypoints[i]``. Row ``j`` is the ``keypoints`` (or ``keypoints[i]``) is the descriptor for keypoint ``j``-th keypoint.
|
:param descriptors: Computed descriptors. In the second variant of the method ``descriptors[i]`` are descriptors computed for a ``keypoints[i]``. Row ``j`` is the ``keypoints`` (or ``keypoints[i]``) is the descriptor for keypoint ``j``-th keypoint.
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ I modified the following:
|
|||||||
autosetup_capture_mode_v4l2 -> autodetect capture modes for v4l2
|
autosetup_capture_mode_v4l2 -> autodetect capture modes for v4l2
|
||||||
- Modifications are according with Video4Linux old codes
|
- Modifications are according with Video4Linux old codes
|
||||||
- Video4Linux handling is automatically if it does not recognize a Video4Linux2 device
|
- Video4Linux handling is automatically if it does not recognize a Video4Linux2 device
|
||||||
- Tested succesful with Logitech Quickcam Express (V4L), Creative Vista (V4L) and Genius VideoCam Notebook (V4L2)
|
- Tested successfully with Logitech Quickcam Express (V4L), Creative Vista (V4L) and Genius VideoCam Notebook (V4L2)
|
||||||
- Correct source lines with compiler warning messages
|
- Correct source lines with compiler warning messages
|
||||||
- Information message from v4l/v4l2 detection
|
- Information message from v4l/v4l2 detection
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ I modified the following:
|
|||||||
- SN9C10x chip based webcams support
|
- SN9C10x chip based webcams support
|
||||||
- New methods are internal:
|
- New methods are internal:
|
||||||
bayer2rgb24, sonix_decompress -> decoder routines for SN9C10x decoding from Takafumi Mizuno <taka-qce@ls-a.jp> with his pleasure :)
|
bayer2rgb24, sonix_decompress -> decoder routines for SN9C10x decoding from Takafumi Mizuno <taka-qce@ls-a.jp> with his pleasure :)
|
||||||
- Tested succesful with Genius VideoCam Notebook (V4L2)
|
- Tested successfully with Genius VideoCam Notebook (V4L2)
|
||||||
|
|
||||||
Sixth Patch: Sept 10, 2005 Csaba Kertesz sign@freemail.hu
|
Sixth Patch: Sept 10, 2005 Csaba Kertesz sign@freemail.hu
|
||||||
For Release: OpenCV-Linux Beta5 OpenCV-0.9.7
|
For Release: OpenCV-Linux Beta5 OpenCV-0.9.7
|
||||||
@ -123,7 +123,7 @@ I added the following:
|
|||||||
- Get and change V4L capture controls (hue, saturation, brightness, contrast)
|
- Get and change V4L capture controls (hue, saturation, brightness, contrast)
|
||||||
- New method is internal:
|
- New method is internal:
|
||||||
icvSetControl -> set capture controls
|
icvSetControl -> set capture controls
|
||||||
- Tested succesful with Creative Vista (V4L)
|
- Tested successfully with Creative Vista (V4L)
|
||||||
|
|
||||||
Seventh Patch: Sept 10, 2005 Csaba Kertesz sign@freemail.hu
|
Seventh Patch: Sept 10, 2005 Csaba Kertesz sign@freemail.hu
|
||||||
For Release: OpenCV-Linux Beta5 OpenCV-0.9.7
|
For Release: OpenCV-Linux Beta5 OpenCV-0.9.7
|
||||||
@ -132,7 +132,7 @@ I added the following:
|
|||||||
- Detect, get and change V4L2 capture controls (hue, saturation, brightness, contrast, gain)
|
- Detect, get and change V4L2 capture controls (hue, saturation, brightness, contrast, gain)
|
||||||
- New methods are internal:
|
- New methods are internal:
|
||||||
v4l2_scan_controls_enumerate_menu, v4l2_scan_controls -> detect capture control intervals
|
v4l2_scan_controls_enumerate_menu, v4l2_scan_controls -> detect capture control intervals
|
||||||
- Tested succesful with Genius VideoCam Notebook (V4L2)
|
- Tested successfully with Genius VideoCam Notebook (V4L2)
|
||||||
|
|
||||||
8th patch: Jan 5, 2006, Olivier.Bornet@idiap.ch
|
8th patch: Jan 5, 2006, Olivier.Bornet@idiap.ch
|
||||||
Add support of V4L2_PIX_FMT_YUYV and V4L2_PIX_FMT_MJPEG.
|
Add support of V4L2_PIX_FMT_YUYV and V4L2_PIX_FMT_MJPEG.
|
||||||
|
@ -102,7 +102,7 @@ I modified the following:
|
|||||||
autosetup_capture_mode_v4l2 -> autodetect capture modes for v4l2
|
autosetup_capture_mode_v4l2 -> autodetect capture modes for v4l2
|
||||||
- Modifications are according with Video4Linux old codes
|
- Modifications are according with Video4Linux old codes
|
||||||
- Video4Linux handling is automatically if it does not recognize a Video4Linux2 device
|
- Video4Linux handling is automatically if it does not recognize a Video4Linux2 device
|
||||||
- Tested succesful with Logitech Quickcam Express (V4L), Creative Vista (V4L) and Genius VideoCam Notebook (V4L2)
|
- Tested successfully with Logitech Quickcam Express (V4L), Creative Vista (V4L) and Genius VideoCam Notebook (V4L2)
|
||||||
- Correct source lines with compiler warning messages
|
- Correct source lines with compiler warning messages
|
||||||
- Information message from v4l/v4l2 detection
|
- Information message from v4l/v4l2 detection
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ I modified the following:
|
|||||||
- SN9C10x chip based webcams support
|
- SN9C10x chip based webcams support
|
||||||
- New methods are internal:
|
- New methods are internal:
|
||||||
bayer2rgb24, sonix_decompress -> decoder routines for SN9C10x decoding from Takafumi Mizuno <taka-qce@ls-a.jp> with his pleasure :)
|
bayer2rgb24, sonix_decompress -> decoder routines for SN9C10x decoding from Takafumi Mizuno <taka-qce@ls-a.jp> with his pleasure :)
|
||||||
- Tested succesful with Genius VideoCam Notebook (V4L2)
|
- Tested successfully with Genius VideoCam Notebook (V4L2)
|
||||||
|
|
||||||
Sixth Patch: Sept 10, 2005 Csaba Kertesz sign@freemail.hu
|
Sixth Patch: Sept 10, 2005 Csaba Kertesz sign@freemail.hu
|
||||||
For Release: OpenCV-Linux Beta5 OpenCV-0.9.7
|
For Release: OpenCV-Linux Beta5 OpenCV-0.9.7
|
||||||
@ -123,7 +123,7 @@ I added the following:
|
|||||||
- Get and change V4L capture controls (hue, saturation, brightness, contrast)
|
- Get and change V4L capture controls (hue, saturation, brightness, contrast)
|
||||||
- New method is internal:
|
- New method is internal:
|
||||||
icvSetControl -> set capture controls
|
icvSetControl -> set capture controls
|
||||||
- Tested succesful with Creative Vista (V4L)
|
- Tested successfully with Creative Vista (V4L)
|
||||||
|
|
||||||
Seventh Patch: Sept 10, 2005 Csaba Kertesz sign@freemail.hu
|
Seventh Patch: Sept 10, 2005 Csaba Kertesz sign@freemail.hu
|
||||||
For Release: OpenCV-Linux Beta5 OpenCV-0.9.7
|
For Release: OpenCV-Linux Beta5 OpenCV-0.9.7
|
||||||
@ -132,7 +132,7 @@ I added the following:
|
|||||||
- Detect, get and change V4L2 capture controls (hue, saturation, brightness, contrast, gain)
|
- Detect, get and change V4L2 capture controls (hue, saturation, brightness, contrast, gain)
|
||||||
- New methods are internal:
|
- New methods are internal:
|
||||||
v4l2_scan_controls_enumerate_menu, v4l2_scan_controls -> detect capture control intervals
|
v4l2_scan_controls_enumerate_menu, v4l2_scan_controls -> detect capture control intervals
|
||||||
- Tested succesful with Genius VideoCam Notebook (V4L2)
|
- Tested successfully with Genius VideoCam Notebook (V4L2)
|
||||||
|
|
||||||
8th patch: Jan 5, 2006, Olivier.Bornet@idiap.ch
|
8th patch: Jan 5, 2006, Olivier.Bornet@idiap.ch
|
||||||
Add support of V4L2_PIX_FMT_YUYV and V4L2_PIX_FMT_MJPEG.
|
Add support of V4L2_PIX_FMT_YUYV and V4L2_PIX_FMT_MJPEG.
|
||||||
|
@ -84,7 +84,7 @@ public:
|
|||||||
BaseRowFilter();
|
BaseRowFilter();
|
||||||
//! the destructor
|
//! the destructor
|
||||||
virtual ~BaseRowFilter();
|
virtual ~BaseRowFilter();
|
||||||
//! the filtering operator. Must be overrided in the derived classes. The horizontal border interpolation is done outside of the class.
|
//! the filtering operator. Must be overridden in the derived classes. The horizontal border interpolation is done outside of the class.
|
||||||
virtual void operator()(const uchar* src, uchar* dst,
|
virtual void operator()(const uchar* src, uchar* dst,
|
||||||
int width, int cn) = 0;
|
int width, int cn) = 0;
|
||||||
int ksize, anchor;
|
int ksize, anchor;
|
||||||
@ -111,7 +111,7 @@ public:
|
|||||||
BaseColumnFilter();
|
BaseColumnFilter();
|
||||||
//! the destructor
|
//! the destructor
|
||||||
virtual ~BaseColumnFilter();
|
virtual ~BaseColumnFilter();
|
||||||
//! the filtering operator. Must be overrided in the derived classes. The vertical border interpolation is done outside of the class.
|
//! the filtering operator. Must be overridden in the derived classes. The vertical border interpolation is done outside of the class.
|
||||||
virtual void operator()(const uchar** src, uchar* dst, int dststep,
|
virtual void operator()(const uchar** src, uchar* dst, int dststep,
|
||||||
int dstcount, int width) = 0;
|
int dstcount, int width) = 0;
|
||||||
//! resets the internal buffers, if any
|
//! resets the internal buffers, if any
|
||||||
|
@ -125,7 +125,7 @@ _CvContourInfo;
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Structure that is used for sequental retrieving contours from the image.
|
Structure that is used for sequential retrieving contours from the image.
|
||||||
It supports both hierarchical and plane variants of Suzuki algorithm.
|
It supports both hierarchical and plane variants of Suzuki algorithm.
|
||||||
*/
|
*/
|
||||||
typedef struct _CvContourScanner
|
typedef struct _CvContourScanner
|
||||||
@ -314,7 +314,7 @@ cvStartFindContours( void* _img, CvMemStorage* storage,
|
|||||||
tree. The retrieved contour itself is removed from the storage.
|
tree. The retrieved contour itself is removed from the storage.
|
||||||
Here two cases are possible:
|
Here two cases are possible:
|
||||||
2a. If one deals with plane variant of algorithm
|
2a. If one deals with plane variant of algorithm
|
||||||
(hierarchical strucutre is not reconstructed),
|
(hierarchical structure is not reconstructed),
|
||||||
the contour is removed completely.
|
the contour is removed completely.
|
||||||
2b. In hierarchical case, the header of the contour is not removed.
|
2b. In hierarchical case, the header of the contour is not removed.
|
||||||
It's marked as "link to contour" and h_next pointer of it is set to
|
It's marked as "link to contour" and h_next pointer of it is set to
|
||||||
@ -326,8 +326,8 @@ cvStartFindContours( void* _img, CvMemStorage* storage,
|
|||||||
leaves header if hierarchical (but doesn't mark header as "link").
|
leaves header if hierarchical (but doesn't mark header as "link").
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
The 1st variant can be used to retrieve and store all the contours from the image
|
The 1st variant can be used to retrieve and store all the contours from the image
|
||||||
(with optional convertion from chains to contours using some approximation from
|
(with optional conversion from chains to contours using some approximation from
|
||||||
restriced set of methods). Some characteristics of contour can be computed in the
|
restricted set of methods). Some characteristics of contour can be computed in the
|
||||||
same pass.
|
same pass.
|
||||||
|
|
||||||
The usage scheme can look like:
|
The usage scheme can look like:
|
||||||
|
@ -377,7 +377,7 @@ int icvComCoeffForLine( CvPoint2D64d point1,
|
|||||||
camMatr2,
|
camMatr2,
|
||||||
&directS4);
|
&directS4);
|
||||||
|
|
||||||
/* Create convertion for camera 2: two direction and camera point */
|
/* Create conversion for camera 2: two direction and camera point */
|
||||||
|
|
||||||
double convRotMatr[9];
|
double convRotMatr[9];
|
||||||
double convTransVect[3];
|
double convTransVect[3];
|
||||||
@ -1928,7 +1928,7 @@ void icvGetCutPiece( CvVect64d areaLineCoef1,CvVect64d areaLineCoef2,
|
|||||||
if( numPoints < 2 )
|
if( numPoints < 2 )
|
||||||
{
|
{
|
||||||
*result = 0;
|
*result = 0;
|
||||||
return;/* Error. Not enought points */
|
return;/* Error. Not enough points */
|
||||||
}
|
}
|
||||||
/* Project all points to middle line and get max and min */
|
/* Project all points to middle line and get max and min */
|
||||||
|
|
||||||
|
@ -100,8 +100,8 @@ typedef struct CvLCMData
|
|||||||
// Context:
|
// Context:
|
||||||
// Parameters:
|
// Parameters:
|
||||||
// LCM : in&out.
|
// LCM : in&out.
|
||||||
// Returns: 1, if hybrid model was succesfully constructed
|
// Returns: 1, if hybrid model was successfully constructed
|
||||||
// 0, if some error occures
|
// 0, if some error occurs
|
||||||
//F*/
|
//F*/
|
||||||
CV_IMPL
|
CV_IMPL
|
||||||
int _cvConstructLCM(CvLCM* LCM);
|
int _cvConstructLCM(CvLCM* LCM);
|
||||||
|
@ -182,8 +182,8 @@ typedef CvDirection* pCvDirection;
|
|||||||
// attempt_number: in, number of unsuccessful attemts made by program to compute
|
// attempt_number: in, number of unsuccessful attemts made by program to compute
|
||||||
// the Voronoi Diagram befor return the error
|
// the Voronoi Diagram befor return the error
|
||||||
//
|
//
|
||||||
// Returns: 1, if Voronoi Diagram was succesfully computed
|
// Returns: 1, if Voronoi Diagram was successfully computed
|
||||||
// 0, if some error occures
|
// 0, if some error occurs
|
||||||
//F*/
|
//F*/
|
||||||
static int _cvLee(CvSeq* ContourSeq,
|
static int _cvLee(CvSeq* ContourSeq,
|
||||||
CvVoronoiDiagramInt* pVoronoiDiagramInt,
|
CvVoronoiDiagramInt* pVoronoiDiagramInt,
|
||||||
@ -207,8 +207,8 @@ static int _cvLee(CvSeq* ContourSeq,
|
|||||||
// contour_orientation: in, orientation of polygons.
|
// contour_orientation: in, orientation of polygons.
|
||||||
// = 1, if contour is left - oriented in left coordinat system
|
// = 1, if contour is left - oriented in left coordinat system
|
||||||
// =-1, if contour is left - oriented in right coordinat system
|
// =-1, if contour is left - oriented in right coordinat system
|
||||||
// Return: 1, if sites were succesfully constructed
|
// Return: 1, if sites were successfully constructed
|
||||||
// 0, if some error occures
|
// 0, if some error occurs
|
||||||
//F*/
|
//F*/
|
||||||
static int _cvConstuctSites(CvSeq* ContourSeq,
|
static int _cvConstuctSites(CvSeq* ContourSeq,
|
||||||
CvVoronoiDiagramInt* pVoronoiDiagram,
|
CvVoronoiDiagramInt* pVoronoiDiagram,
|
||||||
@ -223,8 +223,8 @@ static int _cvConstuctSites(CvSeq* ContourSeq,
|
|||||||
// Parameters:
|
// Parameters:
|
||||||
// pVoronoiDiagram : in, pointer to struct, which contains the
|
// pVoronoiDiagram : in, pointer to struct, which contains the
|
||||||
// description of Voronoi Diagram
|
// description of Voronoi Diagram
|
||||||
// Return: 1, if chains were succesfully constructed
|
// Return: 1, if chains were successfully constructed
|
||||||
// 0, if some error occures
|
// 0, if some error occurs
|
||||||
//F*/
|
//F*/
|
||||||
static int _cvConstructChains(CvVoronoiDiagramInt* pVoronoiDiagram);
|
static int _cvConstructChains(CvVoronoiDiagramInt* pVoronoiDiagram);
|
||||||
|
|
||||||
@ -236,8 +236,8 @@ static int _cvConstructChains(CvVoronoiDiagramInt* pVoronoiDiagram);
|
|||||||
// Parameters:
|
// Parameters:
|
||||||
// VoronoiDiagram : in, pointer to struct, which contains the
|
// VoronoiDiagram : in, pointer to struct, which contains the
|
||||||
// description of Voronoi Diagram.
|
// description of Voronoi Diagram.
|
||||||
// Returns: 1, if skeleton was succesfully computed
|
// Returns: 1, if skeleton was successfully computed
|
||||||
// 0, if some error occures
|
// 0, if some error occurs
|
||||||
//F*/
|
//F*/
|
||||||
static int _cvConstructSkeleton(CvVoronoiDiagramInt* pVoronoiDiagram);
|
static int _cvConstructSkeleton(CvVoronoiDiagramInt* pVoronoiDiagram);
|
||||||
|
|
||||||
@ -280,11 +280,11 @@ static void _cvReleaseVoronoiStorage(CvVoronoiStorageInt* pVoronoiStorage, int g
|
|||||||
// Parameters:
|
// Parameters:
|
||||||
// VoronoiDiagram: in
|
// VoronoiDiagram: in
|
||||||
// VoronoiStorage: in
|
// VoronoiStorage: in
|
||||||
// change_orientation: in, if = -1 then the convertion is accompanied with change
|
// change_orientation: in, if = -1 then the conversion is accompanied with change
|
||||||
// of orientation
|
// of orientation
|
||||||
//
|
//
|
||||||
// Return: 1, if convertion was succesfully completed
|
// Return: 1, if conversion was successfully completed
|
||||||
// 0, if some error occures
|
// 0, if some error occurs
|
||||||
//F*/
|
//F*/
|
||||||
/*
|
/*
|
||||||
static int _cvConvert(CvVoronoiDiagram2D* VoronoiDiagram,
|
static int _cvConvert(CvVoronoiDiagram2D* VoronoiDiagram,
|
||||||
@ -311,8 +311,8 @@ static int _cvConvert(CvVoronoiDiagram2D* VoronoiDiagram,
|
|||||||
// VoronoiDiagram: in
|
// VoronoiDiagram: in
|
||||||
// VoronoiStorage: in
|
// VoronoiStorage: in
|
||||||
/
|
/
|
||||||
// Return: 1, if convertion was succesfully completed
|
// Return: 1, if conversion was successfully completed
|
||||||
// 0, if some error occures
|
// 0, if some error occurs
|
||||||
//F*/
|
//F*/
|
||||||
/*
|
/*
|
||||||
static int _cvConvertSameOrientation(CvVoronoiDiagram2D* VoronoiDiagram,
|
static int _cvConvertSameOrientation(CvVoronoiDiagram2D* VoronoiDiagram,
|
||||||
@ -337,8 +337,8 @@ static int _cvConvertSameOrientation(CvVoronoiDiagram2D* VoronoiDiagram,
|
|||||||
// VoronoiDiagram: in
|
// VoronoiDiagram: in
|
||||||
// VoronoiStorage: in
|
// VoronoiStorage: in
|
||||||
/
|
/
|
||||||
// Return: 1, if convertion was succesfully completed
|
// Return: 1, if conversion was successfully completed
|
||||||
// 0, if some error occures
|
// 0, if some error occurs
|
||||||
//F*/
|
//F*/
|
||||||
/*
|
/*
|
||||||
static int _cvConvertChangeOrientation(CvVoronoiDiagram2D* VoronoiDiagram,
|
static int _cvConvertChangeOrientation(CvVoronoiDiagram2D* VoronoiDiagram,
|
||||||
@ -362,8 +362,8 @@ static int _cvConvertChangeOrientation(CvVoronoiDiagram2D* VoronoiDiagram,
|
|||||||
orientation: in, orientation of contour ( = 1 or = -1)
|
orientation: in, orientation of contour ( = 1 or = -1)
|
||||||
type: in, type of vertices. The possible values are (int)1,
|
type: in, type of vertices. The possible values are (int)1,
|
||||||
(float)1,(double)1.
|
(float)1,(double)1.
|
||||||
Return: 1, if sites were succesfully constructed
|
Return: 1, if sites were successfully constructed
|
||||||
0, if some error occures :
|
0, if some error occurs :
|
||||||
--------------------------------------------------------------------------*/
|
--------------------------------------------------------------------------*/
|
||||||
template<class T>
|
template<class T>
|
||||||
int _cvConstructExtSites(CvVoronoiDiagramInt* pVoronoiDiagram,
|
int _cvConstructExtSites(CvVoronoiDiagramInt* pVoronoiDiagram,
|
||||||
@ -384,8 +384,8 @@ int _cvConstructExtSites(CvVoronoiDiagramInt* pVoronoiDiagram,
|
|||||||
orientation: in, orientation of contour ( = 1 or = -1)
|
orientation: in, orientation of contour ( = 1 or = -1)
|
||||||
type: in, type of vertices. The possible values are (int)1,
|
type: in, type of vertices. The possible values are (int)1,
|
||||||
(float)1,(double)1.
|
(float)1,(double)1.
|
||||||
Return: 1, if sites were succesfully constructed
|
Return: 1, if sites were successfully constructed
|
||||||
0, if some error occures :
|
0, if some error occurs :
|
||||||
--------------------------------------------------------------------------*/
|
--------------------------------------------------------------------------*/
|
||||||
template<class T>
|
template<class T>
|
||||||
int _cvConstructIntSites(CvVoronoiDiagramInt* pVoronoiDiagram,
|
int _cvConstructIntSites(CvVoronoiDiagramInt* pVoronoiDiagram,
|
||||||
@ -402,8 +402,8 @@ int _cvConstructIntSites(CvVoronoiDiagramInt* pVoronoiDiagram,
|
|||||||
pVoronoiDiagram : in&out, pointer to struct, which contains the
|
pVoronoiDiagram : in&out, pointer to struct, which contains the
|
||||||
description of Voronoi Diagram
|
description of Voronoi Diagram
|
||||||
|
|
||||||
Return: 1, if chains were succesfully constructed
|
Return: 1, if chains were successfully constructed
|
||||||
0, if some error occures
|
0, if some error occurs
|
||||||
--------------------------------------------------------------------------*/
|
--------------------------------------------------------------------------*/
|
||||||
static int _cvConstructExtChains(CvVoronoiDiagramInt* pVoronoiDiagram);
|
static int _cvConstructExtChains(CvVoronoiDiagramInt* pVoronoiDiagram);
|
||||||
|
|
||||||
@ -456,7 +456,7 @@ static void _cvRandomModification(CvVoronoiDiagramInt* pVoronoiDiagram, int begi
|
|||||||
Arguments
|
Arguments
|
||||||
pVoronoiDiagram : in, pointer to struct, which contains the
|
pVoronoiDiagram : in, pointer to struct, which contains the
|
||||||
description of Voronoi Diagram
|
description of Voronoi Diagram
|
||||||
Return : 1, if VD was constructed succesfully
|
Return : 1, if VD was constructed successfully
|
||||||
0, if some error occure
|
0, if some error occure
|
||||||
--------------------------------------------------------------------------*/
|
--------------------------------------------------------------------------*/
|
||||||
static int _cvConstructExtVD(CvVoronoiDiagramInt* pVoronoiDiagram);
|
static int _cvConstructExtVD(CvVoronoiDiagramInt* pVoronoiDiagram);
|
||||||
@ -479,7 +479,7 @@ static void _cvConstructIntVD(CvVoronoiDiagramInt* pVoronoiDiagram);
|
|||||||
pVoronoiDiagram : in, pointer to struct, which contains the
|
pVoronoiDiagram : in, pointer to struct, which contains the
|
||||||
description of Voronoi Diagram
|
description of Voronoi Diagram
|
||||||
pChain1,pChain1: in, given chains
|
pChain1,pChain1: in, given chains
|
||||||
Return : 1, if joining was succesful
|
Return : 1, if joining was successful
|
||||||
0, if some error occure
|
0, if some error occure
|
||||||
--------------------------------------------------------------------------*/
|
--------------------------------------------------------------------------*/
|
||||||
static int _cvJoinChains(pCvVoronoiChain pChain1,
|
static int _cvJoinChains(pCvVoronoiChain pChain1,
|
||||||
@ -507,7 +507,7 @@ static void _cvFindNearestSite(CvVoronoiDiagramInt* pVoronoiDiagram);
|
|||||||
pVoronoiDiagram : in, pointer to struct, which contains the
|
pVoronoiDiagram : in, pointer to struct, which contains the
|
||||||
description of Voronoi Diagram
|
description of Voronoi Diagram
|
||||||
pHole : in, given hole
|
pHole : in, given hole
|
||||||
Return : 1, if the search was succesful
|
Return : 1, if the search was successful
|
||||||
0, if some error occure
|
0, if some error occure
|
||||||
--------------------------------------------------------------------------*/
|
--------------------------------------------------------------------------*/
|
||||||
static int _cvFindOppositSiteCW(pCvVoronoiHole pHole, CvVoronoiDiagramInt* pVoronoiDiagram);
|
static int _cvFindOppositSiteCW(pCvVoronoiHole pHole, CvVoronoiDiagramInt* pVoronoiDiagram);
|
||||||
@ -522,7 +522,7 @@ static int _cvFindOppositSiteCW(pCvVoronoiHole pHole, CvVoronoiDiagramInt* pVoro
|
|||||||
pVoronoiDiagram : in, pointer to struct, which contains the
|
pVoronoiDiagram : in, pointer to struct, which contains the
|
||||||
description of Voronoi Diagram
|
description of Voronoi Diagram
|
||||||
pHole : in, given hole
|
pHole : in, given hole
|
||||||
Return : 1, if the search was succesful
|
Return : 1, if the search was successful
|
||||||
0, if some error occure
|
0, if some error occure
|
||||||
--------------------------------------------------------------------------*/
|
--------------------------------------------------------------------------*/
|
||||||
static int _cvFindOppositSiteCCW(pCvVoronoiHole pHole,CvVoronoiDiagramInt* pVoronoiDiagram);
|
static int _cvFindOppositSiteCCW(pCvVoronoiHole pHole,CvVoronoiDiagramInt* pVoronoiDiagram);
|
||||||
@ -535,7 +535,7 @@ static int _cvFindOppositSiteCCW(pCvVoronoiHole pHole,CvVoronoiDiagramInt* pVoro
|
|||||||
pVoronoiDiagram : in, pointer to struct, which contains the
|
pVoronoiDiagram : in, pointer to struct, which contains the
|
||||||
description of Voronoi Diagram
|
description of Voronoi Diagram
|
||||||
pHole : in, given hole
|
pHole : in, given hole
|
||||||
Return : 1, if merging was succesful
|
Return : 1, if merging was successful
|
||||||
0, if some error occure
|
0, if some error occure
|
||||||
--------------------------------------------------------------------------*/
|
--------------------------------------------------------------------------*/
|
||||||
static int _cvMergeVD(pCvVoronoiHole pHole,CvVoronoiDiagramInt* pVoronoiDiagram);
|
static int _cvMergeVD(pCvVoronoiHole pHole,CvVoronoiDiagramInt* pVoronoiDiagram);
|
||||||
|
@ -1632,7 +1632,7 @@ bool CvSVM::train( const CvMat* _train_data, const CvMat* _responses,
|
|||||||
if( !do_train( svm_type, sample_count, var_count, samples, responses, temp_storage, alpha ))
|
if( !do_train( svm_type, sample_count, var_count, samples, responses, temp_storage, alpha ))
|
||||||
EXIT;
|
EXIT;
|
||||||
|
|
||||||
ok = true; // model has been trained succesfully
|
ok = true; // model has been trained successfully
|
||||||
|
|
||||||
__END__;
|
__END__;
|
||||||
|
|
||||||
|
@ -200,8 +200,8 @@ cv::ocl::FftPlan::FftPlan(Size _dft_size, int _src_step, int _dst_step, int _fla
|
|||||||
clStridesOut[1] = dst_step / sizeof(float);
|
clStridesOut[1] = dst_step / sizeof(float);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
//std::runtime_error("does not support this convertion!");
|
//std::runtime_error("does not support this conversion!");
|
||||||
cout << "Does not support this convertion!" << endl;
|
cout << "Does not support this conversion!" << endl;
|
||||||
throw exception();
|
throw exception();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -324,8 +324,8 @@ void cv::ocl::dft(const oclMat &src, oclMat &dst, Size dft_size, int flags)
|
|||||||
dst.create(src.rows, dft_size.width, CV_32FC1);
|
dst.create(src.rows, dft_size.width, CV_32FC1);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
//std::runtime_error("does not support this convertion!");
|
//std::runtime_error("does not support this conversion!");
|
||||||
cout << "Does not support this convertion!" << endl;
|
cout << "Does not support this conversion!" << endl;
|
||||||
throw exception();
|
throw exception();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -373,7 +373,7 @@ public:
|
|||||||
FAIL_HANG=-13,
|
FAIL_HANG=-13,
|
||||||
|
|
||||||
// unexpected response on passing bad arguments to the tested function
|
// unexpected response on passing bad arguments to the tested function
|
||||||
// (the function crashed, proceed succesfully (while it should not), or returned
|
// (the function crashed, proceed successfully (while it should not), or returned
|
||||||
// error code that is different from what is expected)
|
// error code that is different from what is expected)
|
||||||
FAIL_BAD_ARG_CHECK=-14,
|
FAIL_BAD_ARG_CHECK=-14,
|
||||||
|
|
||||||
@ -383,7 +383,7 @@ public:
|
|||||||
// the test has been skipped because it is not in the selected subset of the tests to run,
|
// the test has been skipped because it is not in the selected subset of the tests to run,
|
||||||
// because it has been run already within the same run with the same parameters, or because
|
// because it has been run already within the same run with the same parameters, or because
|
||||||
// of some other reason and this is not considered as an error.
|
// of some other reason and this is not considered as an error.
|
||||||
// Normally TS::run() (or overrided method in the derived class) takes care of what
|
// Normally TS::run() (or overridden method in the derived class) takes care of what
|
||||||
// needs to be run, so this code should not occur.
|
// needs to be run, so this code should not occur.
|
||||||
SKIPPED=1
|
SKIPPED=1
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user