tomrunia/OpticalFlow_Visualization

Input format

nivha opened this issue · 0 comments

nivha commented

Hi, great repo!
It would be helpful to add a few words about the format of the input to the flow_to_color.
The dostring ("flow_uv (np.ndarray): Flow UV image of shape [H,W,2]") only mentions the required shape, but what about the values?
I guess it's the relative shift (and not absolute position)? are the units in "pixels" or should I divide by H,W?
also, if clip_flow parameter is passed, the input flow is clipped between [0, clip_flow], which means negative values are not expected? which means the input should not be the relative shift, but then the output makes no sense.

It could have also helped,If the example numpy data ('./data/flow_example_data.npy') was available