We can quantify the lossiness in the KL-based decomposition by measuring the variance between the original vector and the optimal linear approximation vector . This residual variance, residuex accounts for the total variance in our vector that cannot be spanned by the eigenvectors. The total residual variance in the dataset that cannot be spanned by the eigenvectors is denoted by and computed using Equation :
We have thus described a method for converting a mug-shot image into a 60-scalar code which describes it in the KL domain. Furthermore, we have shown how this transformation can be inverted so that the 60-element code can be used to regenerate an approximation to the original image. Thus, the KL transform and ``inverse'' KL transform are added to our palette of tools.