So for an old pixel point at :math:`(x,y)` coordinate in the input image, for a corrected output image its position will be :math:`(x_{corrected} y_{corrected})` . The presence of the radial distortion manifests in form of the "barrel" or "fish-eye" effect.
If everything's fine, a few minutes later you will get ~/<my_working_directory>/ios/opencv2.framework. You can add this framework to your Xcode projects.
Decrements own reference counter (with ``release()``) and increments ptr's reference counter.
Ptr::addref
@ -1465,6 +1470,7 @@ Adds elements to the bottom of the matrix.
..ocv:function:: void Mat::push_back( const Mat& m )
:param elem:Added element(s).
:param m:Added line(s).
The methods add one or more elements to the bottom of the matrix. They emulate the corresponding method of the STL vector class. When ``elem`` is ``Mat`` , its type and the number of columns must be the same as in the container matrix.
@ -1691,7 +1697,7 @@ Returns the depth of a matrix element.
..ocv:function:: int Mat::depth() const
The method returns the identifier of the matrix element depth (the type of each individual channel). For example, for a 16-bit signed 3-channel array, the method returns ``CV_16S`` . A complete list of matrix types contains the following values:
The method returns the identifier of the matrix element depth (the type of each individual channel). For example, for a 16-bit signed element array, the method returns ``CV_16S`` . A complete list of matrix types contains the following values:
@ -17,12 +17,18 @@ Finds centers of clusters and groups input samples around the clusters.
:param samples:Floating-point matrix of input samples, one row per sample.
:param data:Data for clustering.
:param cluster_count:Number of clusters to split the set by.
:param K:Number of clusters to split the set by.
:param labels:Input/output integer array that stores the cluster indices for every sample.
:param criteria:The algorithm termination criteria, that is, the maximum number of iterations and/or the desired accuracy. The accuracy is specified as ``criteria.epsilon``. As soon as each of the cluster centers moves by less than ``criteria.epsilon`` on some iteration, the algorithm stops.
:param termcrit:The algorithm termination criteria, that is, the maximum number of iterations and/or the desired accuracy.
:param attempts:Flag to specify the number of times the algorithm is executed using different initial labellings. The algorithm returns the labels that yield the best compactness (see the last function parameter).
:param rng:CvRNG state initialized by RNG().
@ -37,6 +43,8 @@ Finds centers of clusters and groups input samples around the clusters.
:param centers:Output matrix of the cluster centers, one row per each cluster center.
:param _centers:Output matrix of the cluster centers, one row per each cluster center.
:param compactness:The returned value that is described below.
The function ``kmeans`` implements a k-means algorithm that finds the
@ -173,6 +173,8 @@ Checks a condition at runtime and throws exception if it fails
..ocv:function:: CV_Assert(expr)
:param expr:Expression for check.
The macros ``CV_Assert`` (and ``CV_DbgAssert``) evaluate the specified expression. If it is 0, the macros raise an error (see :ocv:func:`error` ). The macro ``CV_Assert`` checks the condition in both Debug and Release configurations while ``CV_DbgAssert`` is only retained in the Debug configuration.
@ -188,8 +190,14 @@ Signals an error and raises an exception.
:param status:Error code. Normally, it is a negative value. The list of pre-defined error codes can be found in ``cxerror.h`` .
:param func_name:The function name where error occurs.
:param err_msg:Text of the error message.
:param file_name:The file name where error occurs.
:param line:The line number where error occurs.
:param args:``printf`` -like formatted error message in parentheses.
The function and the helper macros ``CV_Error`` and ``CV_Error_``: ::
@ -249,6 +257,7 @@ Allocates an aligned memory buffer.
..ocv:cfunction:: void* cvAlloc( size_t size )
:param size:Allocated buffer size.
:param bufSize:Allocated buffer size.
The function allocates the buffer of the specified size and returns it. When the buffer size is 16 bytes or more, the returned buffer is aligned to 16 bytes.
@ -217,7 +217,7 @@ For each query descriptor, finds the training descriptors not farther than the s
:param compactResult:Parameter used when the mask (or masks) is not empty. If ``compactResult`` is false, the ``matches`` vector has the same size as ``queryDescriptors`` rows. If ``compactResult`` is true, the ``matches`` vector does not contain matches for fully masked-out query descriptors.
:param maxDistance:Threshold for the distance between matched descriptors.
:param maxDistance:Threshold for the distance between matched descriptors. Distance means here metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured in Pixels)!
For each query descriptor, the methods find such training descriptors that the distance between the query descriptor and the training descriptor is equal or smaller than ``maxDistance``. Found matches are returned in the distance increasing order.
startDisplayInfo("WARNING: The values displayed are the resized image's values. If you want the original image's values, use CV_WINDOW_AUTOSIZE",1000);
Transformations within RGB space like adding/removing the alpha channel, reversing the channel order, conversion to/from 16-bit RGB color (R5:G6:B5 or R5:G5:B5), as well as conversion to/from grayscale using:
..math::
@ -765,7 +766,7 @@ Runs the GrabCut algorithm.
* **GC_PR_BGD** defines a possible background pixel.
* **GC_PR_BGD** defines a possible foreground pixel.
* **GC_PR_FGD** defines a possible foreground pixel.
:param rect:ROI containing a segmented object. The pixels outside of the ROI are marked as "obvious background". The parameter is only used when ``mode==GC_INIT_WITH_RECT`` .