The number of matches that can be used by the EdgeAwareInterpolator for dense flow interpolation is limited to 32767 matches which is due to the short type used to store the indices in the code.
I find this can be a serious limitation, when applying to video analytics. However one could substitute short type with int.
So I wounder does anyone know a reason why short has been used? Maybe a performance loss?