09e31a41bf
Use AABB check before calculating barycentric coordinates. In simple tests with FullHD image and 4-9 tracks used for gradient gave 1.5-2x speedup.