Ask Your Question

Revision history [back]

click to hide/show revision 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....

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....