Skip to content
Snippets Groups Projects
Commit 0db12b42 authored by d.kilic's avatar d.kilic
Browse files

Merge branch '4-absturz-beim-einladen-von-neuem-projekt' into 'master'

CalibFilter cache invalidation on different image size

See merge request !80
parents 004f5198 5ed357e6
No related branches found
No related tags found
1 merge request!80CalibFilter cache invalidation on different image size
Pipeline #29699 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