possible u2014 the entire larger image is treated as the embedded image and used as the result after step 142 or if it is performed step 143 the corners are located from the edge end coordinates in the rotated reference frame having the rotation angle and the positions of the visible edge segments the coordinates of the corners of the photograph in the original image can readily be calculated step 144 note that in the case of a photograph that has lost one end of the rectangle for example the calculated corners will be those of a smaller rectangle that covers the visible part of the photograph rather than those of the original physical photograph however the smaller covering rectangle is sufficient for all purposes of later computation having the corner coordinates operations can be performed on the embedded image for example the embedded image can be cropped step 146 the invention may be implemented in digital electronic circuitry or in computer hardware firmware software or in combinations of them apparatus of the invention may be implemented in a computer program product tangibly embodied in a machine readable storage device for execution by a programmable processor and method steps of the invention may be performed by a programmable processor executing a program of instructions to perform functions of the invention by.