updated patch to bring in the first functions with "transparent API"
This commit is contained in:
@@ -515,7 +515,7 @@ bool VideoCapture::grab()
|
||||
return cvGrabFrame(cap) != 0;
|
||||
}
|
||||
|
||||
bool VideoCapture::retrieve(Mat& image, int channel)
|
||||
bool VideoCapture::retrieve(OutputArray image, int channel)
|
||||
{
|
||||
IplImage* _img = cvRetrieveFrame(cap, channel);
|
||||
if( !_img )
|
||||
@@ -533,7 +533,7 @@ bool VideoCapture::retrieve(Mat& image, int channel)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool VideoCapture::read(Mat& image)
|
||||
bool VideoCapture::read(OutputArray image)
|
||||
{
|
||||
if(grab())
|
||||
retrieve(image);
|
||||
@@ -548,6 +548,12 @@ VideoCapture& VideoCapture::operator >> (Mat& image)
|
||||
return *this;
|
||||
}
|
||||
|
||||
VideoCapture& VideoCapture::operator >> (UMat& image)
|
||||
{
|
||||
read(image);
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool VideoCapture::set(int propId, double value)
|
||||
{
|
||||
return cvSetCaptureProperty(cap, propId, value) != 0;
|
||||
|
Reference in New Issue
Block a user