mapValue 75 samples/tapi/tvl1_optical_flow.cpp row[j][1] = static_cast<unsigned char> (mapValue (-ptr_v[j], -maxDisplacement, maxDisplacement, 0.0f, 255.0f)); mapValue 76 samples/tapi/tvl1_optical_flow.cpp row[j][2] = static_cast<unsigned char> (mapValue ( ptr_u[j], -maxDisplacement, maxDisplacement, 0.0f, 255.0f));