Continued printing by resolution reduction

Abstract: A printer (1) has the capability of printing, for example, in either 600 by 600 dpi resolution or 300 by 300 dpi under control of data processor controller (17). Bit maps for printing are stored in memory (19). When complex pages require more memory than is available, information from groups of bits in the 600 by 600 bit map is used to define the significance of one bit in a 300 by 300 bit map and the page is printed in the 300 by 300 bit map. This avoids terminating printing or printing partial pages and the difference in images are minor.

Description: This invention relates to printing or other imaging in which the image is printed from a bit map in a high resolution such that complex images may overtax memory capacity. This invention provides continued printing where otherwise printing would be terminated. The resolution at which a printer prints determines the ability to render fine lines and to display small, intricate patterns. Printing at resolution of 300 by 300 pels per inch is common (pel is believed derive from the term "picture element" and is used as the term for the unit of print by dots or rectangles or similar units). Printing at 300 by 300 resolution is generally satisfactory, especially where the final printing of slanted lines and the like is smoothed by a technique which varies the actual printing slightly from that of the 300 by 300 bit map, such techniques being variously termed as anti-aliasing, stair step elimination or enhancement of resolution. Printing from bit map data in resolution of 600 by 600 dots or pels per inch generally provides excellent printing, particularly when such smoothing techniques are also employed. Printing at even higher resolution, such as 1200 by 1200 further improves printing. The bit map of data to be printed may be received as a bit map, but often it is created in the printer from a page description language. Typically, such printers have access to stored data defining characters in fonts, such as alphabetic characters and symbols. Thus, the page description language calls for, for example, an "a" and the printer controller, which is an electronic data processor, determines the bits in a bit map from stored font data and stores such information in memory. Graphic information is also determined and stored. The bit maps as they are built up are stored by compression techniques in which repetitive elements are represented by code rather than one bit in memory for each bit in the bit map. U.S. Patent No. 4,467,363 to Tench is illustrative of such compression. Because of compression, typical pages are readily stored in memory, but complex pages, having less repetition, often exceed available memory, since much of their content can not be compressed and is therefore stored bit for bit in the bit map. When available memory is exceeded by a page being composed in a bit map, the entire page is lost and an error is signaled by the printer or less than the entire page is printed. Printing less than the entire page is often not satisfactory to users as there is uncertainty as to the content of the lost data. In accordance with this invention, the resolution of the bit map is reduced and printing is continued. This involves changing the bit map for images, which is done in the prior art to reduce or expand images, but not in the context of printing in a different resolution as is done in this invention. U.S. Patent Nos. 4,394,693 to Shirley and 4,555,191 to Gojo are known which illustrate such prior art. EP-A-0658041, over which claim 1 is characterised, discloses an image reduction apparatus having a smoothing unit, a binarization unit, a detection unit, a plurality of correction units and a selector. An object is to reduce an image without omitting thin lines or the like. EP-A-0510897 discloses an image processing method and apparatus in which a reduced image is enlarged, difference data between the enlarged image and an original image is obtained, and the difference data is compressed. In accordance with this invention a printer operating by bit map data at a high resolution, such a 600 by 600 dpi (dots per inch), responds to an insufficiency of memory to store a page of data at such high resolution by approximating the high resolution data at a lower resolution such as 300 by 300 dpi. Memory is conserved since the approximated 300 by 300 data requires, at most, only one bit of memory where the 600 by 600 data required up to four bits of memory. The data is preserved in the same row and column relationship as the data from which it is derived, designated in memory as 300 by 300 data, and printed at that resolution. Only parts of the data may be revised to approximated, low resolution data, although generally a human observer prefers consistency in appearance within a page so an entire page is normally approximated when any of the approximation is done in the page. If significance (black or white) of the same one of a contiguous group of, for example, four 600 by 600 bits, such as the upper right bit, is used to define the significance of each bit in a 300 by 300 approximation corresponding to that rectangle, this results in a one bit horizontal line being lost entirely if it is not in the selected bit of the rectangle. This could also result in distortion of certain dither patterns (dither patterns are the printing of small bits spaced apart to produce patterns which are seen by humans as gray areas). Therefore, in accordance with the invention, a different bit in the rectangular group of four is selected by a line of rectangles in a predetermined pattern, such as upper right, then lower right, then upper right, then lower right, and so on, with the selections of the next line being upper left, then lower left, the upper left, then lower left, and so on. This pattern assures that a single bit from every line and every column is selected in a recurring pattern. If the page is subsequently revised after being approximated, the revision will be for the high resolution data. The approximation data where needed for the revision is multiplied and replaced by four bits of the same significance in a rectangle corresponding in location to that of the original 600 by 600 rectangle from which the bit was devised. For revisions, the bit of the high resolution rectangle are the same significance as the approximation bit. The details of this invention will be now described, by way of example only, in connection with the accompanying drawing in which: Fig. 1 is illustrative of a printer in accordance with this invention; Fig. 2 illustrates a selection for an approximation, which is not in accordance with this invention but is useful for explaining some aspects thereof, and Fig. 3 illustrates a selection for the approximation in accordance with this invention. In accordance with this invention the data for printing may be in a bit map which is binary (dark or white) data in 600 by 600 dpi resolution. Thus, the original data is generated on the assumption that each bit will dictate either black (or other color) or white (or contrasting color) for a square of 1/600 inch width and length, and these squares will be contiguous in rows and columns. Such bit maps are conventional, and may be received by an imaging device 1 (Fig. 1) from a data cable 3 (alternatively, from an infra-red port) or generated in the imaging device 1 from data in a page description language such as language for a PCL (trademark of Hewlett-Packard Co.) interpreter or a PostScript (trademark of Adobe Systems Incorporated) interpreter. An illustrative printer is shown in Fig. 1. Page information may be received by printer 1 in a standard manner from a communication cable 3. Printer 1 may be any suitable printer which has a printhead system to print in the 600 by 600 resolution of the invention of this invention. Such a printhead can print in 300 by 300 resolution by making two passes for each 300 resolution line. Printer 1 is shown suggestive of an electrophotographic printer having a optical system 5 operative on photoconductive drum 7. Drum 7 transfers images defined by optical system 5 at transfer station 9 to paper 11. The image is fixed, typically by heat, at fixing station 13, and the finished printed page is. delivered to output tray 15. Data processor controller 17 is the controller of printer 1, which monitors the data received and may interpret the data with accordance to the control language in which the data processor 17 is operating. The bit maps created by controller 17, as well as information received on cable 3 and other information, is stored electronically in memory 19. Bit information from the bit map stored in memory 19 is applied to control optical system 5, although line smoothing techniques based on the final bit map may vary the actual printing in each bit position by optical system 5, for example by pulsing a laser in system 5 which the bit map designates as on for only part of the bit position. Such enhancement of resolution techniques form no novel part of this invention since they occur after the final bit map is presented for printing, while this invention is directed to creating and printing the final bit map if necessary in a lower resolution. Accordingly, enhancement of resolution will not be described in detail. In the preferred embodiment system 5 has a laser which inherently has a vertical or paper-length-direction height correct for 600 dpi printing, but which can be pulsed in any combination of four evenly spaced locations in the horizontal or line direction, thereby providing an operating resolution of 600 by 2400 dpi. Enhancement of resolution does improve the visual appearance of printing of the approximated lower resolution data of this invention. The fundamental memory conservation technique is to subsample a square group of pixels of size n by n in the bit map by choosing a single pel from the n by n square. Where the conversion is from 600 by 600 dpi to 300 by 300 dpi, n is 2. The physical region in the final image that was represented by the n by n square now takes on the value of the sampled pel. Thus, this achieves an n square compression. In addition, a lossless compression is applied to the thus approximated region, thus achieving an even higher effective reduction of memory requirement, with no further degradation of image quality. Fig. 2 shows a useful sampling technique for n being 2. The -'s and x's represent individual bits in a bit map, which may be represent one or zero significance of the image defined by the bit map. The longer dashed lines represent the imaginary boundaries of squares in the bit map which this invention employs for the approximation. In conducting the approximation controller 17 enters the significance of only the x bits in a new bit map for low resolution printing. The significance of the bits shown as dashes is ignored. It is immediately apparent from Fig. 2 that the number of bits in the new bit map is reduced to one-fourth of the bits in the high resolution bit map. The bits in the new bit map are, of course, kept in the same row and column relationship as the corresponding bits from which they are derived. A generally more preferred approximation technique in accordance with the invention is illustrated in Fig. 3. The symbols in Fig. 3 have the same meaning as those in Fig. 2. The bits shown by "x", which are the bits which are copied into the new bit map, are alternated both horizontally and vertically from adjoining square of four to next adjoining square of four. This prevents the complete loss of any horizontal line of single pels and any vertical line of single pels. The pels in the new bit map are, of course, kept in the same relative position with respect to the rows and columns of the square in the high resolution bit map to which they correspond. Standard data processing is employed to determine the significance of a bit in the higher resolution bit map. Each location in the bit map has a unique address and data processor 17 applies that address to the circuitry of memory 19. The output circuitry of memory 19 returns a signal of one or zero significance to data processor 17. Actual implemental may employ pointers to distribute data to available areas in the memory and other complexities, but such operation may be conventional and forms no part of this invention. Other sampling techniques, or a mixture of sampling techniques, could be applied to different parts of an original bit mapped images based upon statistical or special knowledge or heuristic methods indicating which regions will look better when sampled by a given technique. In a preferred system of control by controller 17, the page is segmented into designated areas, termed blocks, that may be compressed or decompressed independently of one another depending on the memory usage in the system. When all such blocks in a bit map for a page are compressed and the rest of the printer 1 has no more memory resources that can be freed, the memory is insufficient and the algorithm in accordance with this invention is executed instead of notifying the user of a memory full error. The sampling algorithm is then applied to as many blocks as desirable and then the formatting of the page will continue as this frees memory. Subsequently, it may be necessary for controller 17 to re-expand a sampled block to allow more information to be placed in the image. This expansion is done simply by applying the significance of the approximation as the significance of all the pixels in the higher resolution, n by n square. Because a predetermined bit location was used for the compression and will be used again for subsequent compression, the compressed data will be consistent. Had an average of data in a group been used for compression, subsequent logical operations (such as Exclusive Or to overlay images) can give a result which varies the result from that from only a preselected bit. In doing this the interpreter function of the controller 17 need not be adjusted because of the use of this invention, as that function works with bit maps in the original resolution. Such an adjustment would be costly since many of the control aspects of the printer 1 have been designed for the original higher resolution. In this sense the resolution reduction is transparent to the interpretation function. The bit map reduced to 300 by 300 from 600 by 600 is printed preferably by the two adjoining line scans being for 600 by 600 resolution, but with the data being that from the same line of the bit map and the horizontal lengths for each pel being doubled, followed by the next two adjoining lines being by the next two adjoining lines scans in 600 by 600 resolution, but with the data being that from the same line of the bit map and the horizontal lines for each pel being doubled, and continuing in the same manner for all of the data. However, any ordinary printing of the reduced data as 300 by 300 dpi data is consistent with this invention. Moreover, the use of resolution enhancement techniques on the 300 by 300 data improves the visual output and is therefore normally used. Although this invention involves the loss of data, it is believed much preferable to the alternative of known compression techniques which involve loss of data. Such compression techniques often require extensive computation, for example the Discrete Cosine Transform. Further, since the data of this invention is readily reversed to the higher resolution, no "blocking" situation occurs with respect to merging the data with subsequent data, as is the case for some "neighborhood averaging" compression techniques. Also, the ready reversal of this invention allows the controller 17 to continue to place high resolution data with a section of the image that previously has been reduced. As with any modification involving loss of data, the final image has a loss of detail. However, this invention employing resolution enhancement intended for ordinary 300 by 300 text produces 300 by 300 printed text from 600 by 600 data which is difficult to distinguish with the naked eye from printing by the 600 by 600 data with resolution enhancement. It is clearly possible to approximate only a section of the page. This permits a choice of which sections of which section of the page bit map should be at the truest fidelity to the original image. Variations and adaptations of this invention will be apparent and can be anticipated. Patent coverage is sought as provided by law, with particular reference to the accompanying claims.

Claims: Apparatus (1) comprising: memory means (19) to store an image in bit map form in a first resolution; means (17) to determine a single significance from the significance of only one bit in a predetermined location in each of a group of contiguous bits in said first resolution bit map for each of a plurality of said groups and to store in said memory means (19) a second bit map of bits of said determined significance from said groups configured in rows and columns in the same relative locations as the rows and columns of the corresponding group from which the significance of each bit in said second bit map is determined, characterised in that said predetermined location of said one bit in each group is varied from adjoining group to adjoining group so that single bit horizontal or single bit vertical lines are included in some of said single bits from each group, and in that said apparatus is a printing apparatus (1) and further comprises means (5,7,9,13) to print a final image from said second bit map in a lower resolution than said first resolution. The printing apparatus as in claim 1 in which said first resolution is n by n dpi and said lower resolution is one-half n by one-half n dpi. The printing apparatus as in claim 1 or 2 in which said single bit from each group is varied from adjoining group to adjoining group so that the single bit is from every other line of said bit map in said first resolution and every other column of said bit map in said first resolution. A method of printing an image in a printer comprising creating a bit map in a memory means (19) in said printer in a first resolution corresponding to said image, determining when there is insufficient memory in said memory means (19) to store said first resolution bit map, and in response thereto: determining a single significance from the significance of only one bit in a predetermined location in each of a group of contiguous bits in said first resolution bit map for each of a plurality of said groups, the predetermined location of said one bit in each group being varied from adjoining group to adjoining group so that single bit horizontal and single bit vertical lines are included in some of said single bits from each group; storing in said memory means (19) a second bit map of bits of said determined significance from said groups configured in rows and columns in the same relative locations as the rows and columns of the corresponding group from which the significance of each bit in said second bit map is determined; and printing a final image from said second bit map in a lower resolution than said first resolution such that printing is continued. The method of claim 4 wherein said first resolution is n by n dpi and said lower resolution is one-half n by one-half n dpi.

Inventors: JOHNSON ALLEN PATRICK, MURPHY DAVID WILLIAM, JOHNSON, ALLEN PATRICK, MURPHY, DAVID WILLIAM
Applicants: LEXMARK INT INC, LEXMARK INTERNATIONAL, INC.
Application year: 1996
Main classification: G06K15
IPC codes: H04N1, B41J2, B41J5, G06F3, G06K15