Compression coding using an optical model for a pair of range and grey-scale images of 3d objects