Self Calibration of a Pinhole Camera