Commit 8c545c05 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #5865 from Dikay900:fix_matcopy_shape

parents f26d0c58 bb78b01a
......@@ -124,10 +124,8 @@ public:
virtual void getImages(OutputArray _image1, OutputArray _image2) const
{
CV_Assert((!image1.empty()) && (!image2.empty()));
_image1.create(image1.size(), image1.type());
_image2.create(image2.size(), image2.type());
_image1.getMat()=image1;
_image2.getMat()=image2;
image1.copyTo(_image1);
image2.copyTo(_image2);
}
virtual void setIterations(int _iterations) {CV_Assert(_iterations>0); iterations=_iterations;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment