A novel technique to measure the magnitude and direction of flow in a tube