mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
a big patch; use special proxy types (Input/OutputArray, Input/OutputArrayOfArrays) for passing in vectors, matrices etc.
This commit is contained in:
@@ -24,20 +24,6 @@ using cv::Rect;
|
||||
|
||||
class CV_EXPORTS TS;
|
||||
|
||||
enum
|
||||
{
|
||||
TYPE_MASK_8U = 1 << CV_8U,
|
||||
TYPE_MASK_8S = 1 << CV_8S,
|
||||
TYPE_MASK_16U = 1 << CV_16U,
|
||||
TYPE_MASK_16S = 1 << CV_16S,
|
||||
TYPE_MASK_32S = 1 << CV_32S,
|
||||
TYPE_MASK_32F = 1 << CV_32F,
|
||||
TYPE_MASK_64F = 1 << CV_64F,
|
||||
TYPE_MASK_ALL = (TYPE_MASK_64F<<1)-1,
|
||||
TYPE_MASK_ALL_BUT_8S = TYPE_MASK_ALL & ~TYPE_MASK_8S,
|
||||
TYPE_MASK_FLT = TYPE_MASK_32F + TYPE_MASK_64F
|
||||
};
|
||||
|
||||
CV_EXPORTS int64 readSeed(const char* str);
|
||||
|
||||
CV_EXPORTS void randUni( RNG& rng, Mat& a, const Scalar& param1, const Scalar& param2 );
|
||||
|
||||
@@ -71,7 +71,7 @@ int randomType(RNG& rng, int typeMask, int minChannels, int maxChannels)
|
||||
{
|
||||
int channels = rng.uniform(minChannels, maxChannels+1);
|
||||
int depth = 0;
|
||||
CV_Assert((typeMask & TYPE_MASK_ALL) != 0);
|
||||
CV_Assert((typeMask & DEPTH_MASK_ALL) != 0);
|
||||
for(;;)
|
||||
{
|
||||
depth = rng.uniform(CV_8U, CV_64F+1);
|
||||
|
||||
Reference in New Issue
Block a user