本文整理汇总了C++中OutputArray::isContinuous方法的典型用法代码示例。如果您正苦于以下问题:C++ OutputArray::isContinuous方法的具体用法?C++ OutputArray::isContinuous怎么用?C++ OutputArray::isContinuous使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OutputArray
的用法示例。
在下文中一共展示了OutputArray::isContinuous方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: image
/** @brief Decodes and returns the grabbed video frame.
@param [out] image the video frame is returned here. If no frames has been grabbed the image will be empty.
@param flag it could be a frame index or a driver specific flag
@return `false` if no frames has been grabbed
The method decodes and returns the just grabbed frame. If no frames has been grabbed
(camera has been disconnected, or there are no more frames in video file), the method returns false
and the function returns an empty image (with %cv::Mat, test it with Mat::empty()).
@sa read()
@note In @ref videoio_c "C API", functions cvRetrieveFrame() and cv.RetrieveFrame() return image stored inside the video
capturing structure. It is not allowed to modify or release the image! You can copy the frame using
:ocvcvCloneImage and then do whatever you want with the copy.
*/
bool I3ThermalSystem::retrieve(OutputArray image, int flag )
{
image.create(288, 384, CV_16UC1);
if (!image.isContinuous())
{
return false;
}
char c = 1;
irFile.Write(&c, 1);
int nb=irFile.Read(image.getMat().ptr(0), 384 * 288 * 2);
return nb== 384 * 288 * 2;
}