/** * The scale of the trifocal tensor is arbitrary. However there are situations when comparing * results that using a consistent scale is useful. This function normalizes the sensor such that * its Euclidean length (the f-norm) is equal to one. */ public void normalizeScale() { double sum = 0; sum += SpecializedOps.elementSumSq(T1); sum += SpecializedOps.elementSumSq(T2); sum += SpecializedOps.elementSumSq(T3); double n = Math.sqrt(sum); CommonOps.scale(1.0 / n, T1); CommonOps.scale(1.0 / n, T2); CommonOps.scale(1.0 / n, T3); }