Skip to content
Snippets Groups Projects
Commit 5ed357e6 authored by d.kilic's avatar d.kilic Committed by d.kilic
Browse files

CalibFilter cache invalidation on different image size

parent 004f5198
No related branches found
No related tags found
1 merge request!80CalibFilter cache invalidation on different image size
Pipeline #29695 passed
......@@ -99,7 +99,7 @@ CalibFilter::CalibFilter()
*/
Mat CalibFilter::act(Mat &img, Mat &res)
{
if(this->changed() || map1.empty() || map2.empty())
if(this->changed() || map1.size() != img.size())
{
Mat camera = (Mat_<float>(3,3) << getFx()->getValue(), 0, getCx()->getValue(),
0, getFy()->getValue(), getCy()->getValue(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment