Home
last modified time | relevance | path

Searched refs:flowField (Results 1 – 2 of 2) sorted by relevance

/external/opencv3/samples/tapi/
Dtvl1_optical_flow.cpp44 static void getFlowField(const Mat& u, const Mat& v, Mat& flowField) in getFlowField() argument
62 flowField.create(u.size(), CV_8UC4); in getFlowField()
64 for (int i = 0; i < flowField.rows; ++i) in getFlowField()
70 Vec4b* row = flowField.ptr<Vec4b>(i); in getFlowField()
72 for (int j = 0; j < flowField.cols; ++j) in getFlowField()
/external/opencv3/samples/gpu/
Dopticalflow_nvidia_api.cpp189 IplImage *flowField; in ShowFlow() local
219 flowField = cvCreateImage (image_size, IPL_DEPTH_8U, 4); in ShowFlow()
220 if (flowField == 0) return NCV_NULL_PTR; in ShowFlow()
222 unsigned char *row = reinterpret_cast<unsigned char *> (flowField->imageData); in ShowFlow()
226 for (int i = 0; i < flowField->height; ++i) in ShowFlow()
228 for (int j = 0; j < flowField->width; ++j) in ShowFlow()
230 (row + j * flowField->nChannels)[0] = 0; in ShowFlow()
231 …(row + j * flowField->nChannels)[1] = static_cast<unsigned char> (MapValue (-(*ptr_v), -maxDisplac… in ShowFlow()
232 …(row + j * flowField->nChannels)[2] = static_cast<unsigned char> (MapValue (*ptr_u , -maxDisplac… in ShowFlow()
233 (row + j * flowField->nChannels)[3] = 255; in ShowFlow()
[all …]