LogDet Divergence-Based Metric Learning With Triplet Constraints and Its Applications