Added function to compute output shape of lbphs.