Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit 949eeed

Browse files
committed
Fix cv::Mat frame allocation on newer opencv versions
1 parent ea782d3 commit 949eeed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commons/frame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Frame::Private::Private(uint8_t bpp, Frame::ColorFormat colorFormat, const QSize
4747
color_format{colorFormat},
4848
bpp{bpp},
4949
resolution{resolution},
50-
mat{resolution.height(), resolution.width(), Private::cv_type(bpp, colorFormat)},
5150
byteOrder{byteOrder}
5251
{
52+
mat.create(resolution.height(), resolution.width(), Private::cv_type(bpp, colorFormat));
5353
}
5454

5555
Frame::Private::Private(Frame::ColorFormat colorFormat, const cv::Mat& image, ByteOrder byteOrder)

0 commit comments

Comments
 (0)