A computer-implemented method for producing an undistorted image from a distorted original image comprising a graphical representation on an original grid arrangement with a plurality of unit cells that forms a background onto which graphical information is recorded, based on a reference grid arrangement comprising a plurality of undistorted unit cells creatable on a blank image , the method comprising: creating the reference grid arrangement by associating the plurality of undistorted unit cells on the blank page with corresponding unit cells of the original grid arrangement derivable from the distorted original image ; repeating for each unit cell , referred to as current unit cell, of the reference grid arrangement : determining a transformation relationship based on position information of grid vertices of the current unit cell , referred to as target unit cell, and position information of grid vertices of a corresponding unit cell , referred to as source unit cell, of the original grid arrangement of the original image graphical representation ; determining position information in a source unit cell corresponding to one or more pixels of the current unit cell , referred to as target unit cell, using the transformation relationship; and supplying data information sampled in the source unit cell , using the position information determined in the source unit cell , to the corresponding one or more pixels of the target unit cell to produce the undistorted image . creating the reference grid arrangement by associating the plurality of undistorted unit cells on the blank page with corresponding unit cells of the original grid arrangement derivable from the distorted original image ; repeating for each unit cell , referred to as current unit cell, of the reference grid arrangement : determining a transformation relationship based on position information of grid vertices of the current unit cell , referred to as target unit cell, and position information of grid vertices of a corresponding unit cell , referred to as source unit cell, of the original grid arrangement of the original image graphical representation ; determining position information in a source unit cell corresponding to one or more pixels of the current unit cell , referred to as target unit cell, using the transformation relationship; and supplying data information sampled in the source unit cell , using the position information determined in the source unit cell , to the corresponding one or more pixels of the target unit cell to produce the undistorted image . determining a transformation relationship based on position information of grid vertices of the current unit cell , referred to as target unit cell, and position information of grid vertices of a corresponding unit cell , referred to as source unit cell, of the original grid arrangement of the original image graphical representation ; determining position information in a source unit cell corresponding to one or more pixels of the current unit cell , referred to as target unit cell, using the transformation relationship; and supplying data information sampled in the source unit cell , using the position information determined in the source unit cell , to the corresponding one or more pixels of the target unit cell to produce the undistorted image . <EOS>