An image forming device including a backing with an embedded backing pattern, the image forming device arranged for a media to be positioned against the backing and for scanning the media and the backing, the media skewed with respect to the scanning thus defining a media skew, the image forming device further including a pattern recognition algorithm, a skew detection algorithm and a media registering algorithm, the image forming device arranged for processing the media in accordance with a method comprising steps of:
- (a) scan the media and the backing to form an image information;
- (b) based on the image information, form a pixel pattern;
- (c) based on the pattern recognition algorithm, for each pixel in the pixel pattern, determine when the pixel represents the backing;
- (d) when the pattern recognition algorithm determines that the pixel represents the backing, replace the pixel with a replacement backing symbol, otherwise replace the pixel with a replacement media symbol;
- (e) based on the replacement backing symbols and the replacement media symbols, form a replacement symbol pattern;
- (f) process the media based on the replacement symbol pattern to form a symbol-based registration and deskew result and determine when the symbol-based registration and deskew result is valid;
- (g) process the media based on the video gray level of the scanned image to form a video-based registration and deskew result and determine when the video-based registration and deskew result is valid;
- (h) if only the symbol-based registration and deskew result is valid, use only the symbol-based registration and deskew result;
- (i) if only the video-based registration and deskew result is valid, use only the video-based registration and deskew result;
- and
- (j) if the symbol-based registration and deskew result is valid and the video-based registration and deskew result is valid, average or otherwise combine both the symbol-based registration and deskew result and the video-based registration and deskew result.