pytorch-coviar icon indicating copy to clipboard operation
pytorch-coviar copied to clipboard

Visualise the MV

Open albertBohar opened this issue 6 years ago • 4 comments

Hi, in the paper you said you visualised the MV using HSV Color space, I couldn't find the code, is he attached?

Thanks.

albertBohar avatar Jan 28 '19 15:01 albertBohar

Hi, thanks for the question. No, it's not in this repo, but it's modified from the example at the end of https://docs.opencv.org/3.4/d7/d8b/tutorial_py_lucas_kanade.html

chaoyuaw avatar Jan 28 '19 15:01 chaoyuaw

Ok, thanks! Those steps: if self._representation == 'mv': img = clip_and_scale(img, 20) img += 128 img = (np.minimum(np.maximum(img, 0), 255)).astype(np.uint8)

In dataset.py, are making the images ready for the visualisation, or necessary step for the processing?

Thanks again!

albertBohar avatar Jan 29 '19 09:01 albertBohar

You're very welcome!

These are just pre-processing. We clip the MV images just like in two-stream networks, people clip the flow images. +128 and minimum/maximum is just shifting it to range 0, 255.

chaoyuaw avatar Jan 29 '19 17:01 chaoyuaw

Hi, thanks for the question. No, it's not in this repo, but it's modified from the example at the end of https://docs.opencv.org/3.4/d7/d8b/tutorial_py_lucas_kanade.html

Hi that example works for 32F or 64F data, but the MVs I oaded seem to have INT datatype. Could you please help?

ShristiDasBiswas avatar Oct 31 '23 03:10 ShristiDasBiswas