if (from.type() != CV_32FC2 || to.type() != CV_32FC2)
{
- Mat tmp;
- from.convertTo(tmp, CV_32FC2);
- from = tmp;
- to.convertTo(tmp, CV_32FC2);
- to = tmp;
+ Mat tmp1, tmp2;
+ from.convertTo(tmp1, CV_32FC2);
+ from = tmp1;
+ to.convertTo(tmp2, CV_32FC2);
+ to = tmp2;
}
// convert to N x 1 vectors
from = from.reshape(2, count);
if (from.type() != CV_32FC2 || to.type() != CV_32FC2)
{
- Mat tmp;
- from.convertTo(tmp, CV_32FC2);
- from = tmp;
- to.convertTo(tmp, CV_32FC2);
- to = tmp;
+ Mat tmp1, tmp2;
+ from.convertTo(tmp1, CV_32FC2);
+ from = tmp1;
+ to.convertTo(tmp2, CV_32FC2);
+ to = tmp2;
}
// convert to N x 1 vectors
from = from.reshape(2, count);