1 | initial version |
ok the following code is the corresponding in opencv:
std::vector<cv::Mat> channels;
channels.push_back(u);
channels.push_back(v);
Mat tmap_B;
merge(channels, tmap_B);
Mat output;
remap(I, output, tmap_B, Mat(), CV_INTER_LINEAR, BORDER_CONSTANT);
I guess is quite late, and apparently I need some sleep :-p....
2 | No.2 Revision |
ok the following code is the corresponding equivalent in opencv:
std::vector<cv::Mat> channels;
channels.push_back(u);
channels.push_back(v);
Mat tmap_B;
merge(channels, tmap_B);
Mat output;
remap(I, output, tmap_B, Mat(), CV_INTER_LINEAR, BORDER_CONSTANT);
I guess is quite late, and apparently I need some sleep :-p....