A method of and system for compressing and decompressing digital image signals

Abstract: A method of compressing digital image data, comprising successive data groups of bits, the contents of which are values of pixels of an image, in which method a check is made in a selection step whether a first condition is satisfied which at least stipulates that a data group has the same contents as one or more data groups following thereon. If the first condition is satisfied, said data groups are replaced, in a compression step, by a compression code representing these data groups. Otherwise, in a copying step, only the first data group is replaced by a code consisting of the contents of the data group. The said steps are repeated for the next data groups. The method also comprises an identification step for adding an identification code for characterising the nature of the code, wherein the identification step is carried out only when the compression step is carried out.

Description: The invention relates to a method of compressing digital image data, comprising successive data groups of bits, the contents of which are the values of pixels of an image, in which method a check is made in a selection step whether a first condition is satisfied which at least stipulates that a first data group has the same contents as one or more data groups following thereon, whereafter, if the first condition is satisfied, said data groups having the same contents are replaced, in a compression step, by a compression code representing these data groups, and otherwise, in a copying step only the first data group is replaced by a code consisting of the contents of the data group, whereafter the above steps are repeated for the next data groups, the method also comprising an identification step for adding an identification code for characterising the nature of the code. The invention also relates to a system in which the method is applied. Digital image data can be obtained inter alia by scanning a document with photosensitive sensors, e.g. CCDs. A document can be divided up into pixels by column and line scanning and then be represented by values corresponding to said pixels. These values can in turn be represented by data groups of one or more bits. Either a number of bits together may represent a grey value or each bit can separately represent a black/white value of a pixel (a bitmap). In these conditions the grey value can of course relate to a scanned colour in the case of a colour scanner. A data group comprising different bits can therefore either reproduce a grey value or colour value of a pixel corresponding to the data group or reproduce a black/white value for pixels corresponding to each bit, as in the case, for example, of a half-tone image. Digital image data of this kind are obtained inter alia in systems equipped with scanners, e.g. facsimile systems and digital copying machines. In addition, however, these digital image data can also be generated by special computers, e.g. word processors or electronic character systems. Depending on the situation, there will be a need to store or transmit these data. However, with a conventional resolution of 300 dots per inch and only black or white pixels, an A4 document already requires 1 Mbyte or, in the case of an AO document, 16 Mbyte memory space or data for transmission. In such cases it is advantageous to compress the data with one of the many known compression methods, e.g. "predictive" coding, Q-coding or "READ" coding (Relative Address Coding: G4-facsimile standard). However, the said compression methods appear to lead to complex compression and decompression circuits. The object of the method and system according to the invention is to provide a compression method which gives a simpler architecture. Closer analysis shows that irrespective of the compression method one aspect contributing to the complexity of a compression or decompression system is the possibility of local and global data expansion. Local data expansion occurs if a compression system temporarily generates a higher number of bits per unit of time than the number of bits that can be processed per unit of time. This occurs if there is little correlation between the data groups for compression. One compression method then adds more redundant code than is saved to the number of compressed bits. In the case, for example, of run length coding according to Group 2 Fax format, a number of bits are required to indicate the run length and a number of bits to show the data group from which the run length is constructed. In the case of image lines with short run lengths local data expansion can then occur. Local data expansion also results in a decompression system temporarily asking for code at a higher tempo in order to generate pixels at a constant speed of data groups. To prevent the processing system or memory coupled thereto having to operate at these higher speeds the code must be buffered. If local data expansion takes too long, then global data expansion may occur. In that case, the number of bits required to compress a line or even an entire image is greater than the number of original bits required for the purpose. A situation of this kind is undesirable, since the code buffers may then possibly be too small. In addition there is a risk that the compressed image will no longer fit in a memory. A check must therefore be made whether data expansion occurs. If data expansion is signalled, or if no compression can be achieved in this way, compression of the incoming data groups must be abandoned. The incoming data groups must then be directly copied in the code series. This series must then be preceded by a code indicating the number of copied data groups. A method and system of this kind is described, for example, in Applicants' Netherlands patent application number 9201415. Copying the data groups ensures that data expansion remains limited since compression is carried out only if compression cannot cause data expansion. Nevertheless, the possibility thereof must be taken into account: copying requires extra data in the form of the code representing the number of copied data groups in order to indicate that data groups are involved in what is copied. The detection and processing thereof will, however, involve extra overheads in both the code and the compression and decompression system requirements. The object of the method and system according to the invention is completely to exclude the possibility of data expansion in order thus to arrive at a simpler method and architecture for data compression and decompression. To this end, according to the invention, the identification step is carried out only when the compression step is carried out. By adding an extra identification code solely in the compression step, no data expansion can occur. Of course in the selection step a check must be made whether compression can be achieved, including addition of an identification code. Only if that is the case is an identification code added. The number of generated bits per unit of time can then never be greater than the number of bits for processing per unit if time. Since only the compression code obtained by compression is provided with an identification code, an image or part in which no compression is possible accordingly has no extra information added. The data groups concerned are then directly copied without supplementary identification code. Accordingly, no data expansion can occur in this way for identification code is added only where compression is carried out. By reference to the presence of the identification code, an associated decompression system can determine that the code following thereon is a compression code which must be decompressed. Here again no data expansion can occur: for constant generation of data groups a decompression system will not have to demand a higher number of bits per unit of time. On the other hand, if no identification code is added because the compression step is not selected, an associated decompression system knows that the added code does not need to be decompressed. The method and system according to the invention thus normally operates in a copying mode. Only if compression is possible is the method and system temporarily and exceptionally switched over, by the identification code, to a compression mode. When no further compression is possible, no further identification code is generated and the method and system return to the default copying mode. In a first embodiment of the method, the code comprises a predetermined number of bits. There is then no need for a terminating code to indicate the end of the compression code. The code following on the predetermined number of bits is then either an identification code or a copied data group. When coding the number of consecutive data groups having the same contents, such as run length coding, this predetermined number of bits is determined by the maximum run length for coding. This then gives a further advantageous aspect of the first embodiment. In a second alternative embodiment of the method, the compression code comprises a predetermined number of bits and in predetermined cases one or more predetermined repetition codes. In comparison to the first embodiment, the compression code can now extend over a larger number of bits than a predetermined number - although this has the limitation that an extension must consist of predetermined bits which at most can indicate that the associated compression (with the predetermined number) is repeated one or more times. The end of the compression code is in this case also recognisable, again without the need for a terminal code. A further aspect of the second method is characterised in that the repetition code is identical to the identification code. As a result, no extra code is required. Similarly, in the case of run length coding, the repetition code may be selected to be identical to the maximum run length for coding. In this last aspect, it is again advantageous to terminate the compression code with the identification code if the run length is exactly equal to the maximum run length for coding. This is necessary so that during decompression it is possible to detect that there are no more run lengths. In this way there is no need for a code word for a run length of zero. A further aspect of the said first and second methods is characterised in that a data group is replaced by another predetermined data group in the copying step if the data group is identical to the identification code. A series of bits which does not occur frequently must of course be selected for the identification code. However, too long a series will have an adverse effect on the attainable compression. By replacing one data group identical to the identification code by a further data group, although the compression obtained is not faultless, the length of the identification code can remain limited. Preferably, a similar data group is so selected that the distortion of the image remains minimal. The run length coding can be extended to more complex embodiments. In an embodiment in which the pixels of an image are arranged in consecutive image lines, one advantageous embodiment comprises the fact that the bits of a data group originate from at least two adjacent image lines. As a result it is possible to use the correlation between the image elements in two directions. The method according to the invention is very suitable for a specific category of image information. Thus one advantageous embodiment of the method is characterised in that a bit of a data group corresponds to the value of a pixel of the image. In this case a bit represents, for example, a completely black or white image element. Images of this kind are designated bit maps. Optimization of this embodiment of the method is obtained by coding by run length only the number of identical data groups of which the bits of a data group are identical to one another. For example: by coding only run lengths of two or more entirely white bytes (one byte being equivalent to 8 bits) and two or more entirely black bytes. A run length can also be coded by a byte: the first bit indicates the colour, the other seven bits the run lengths. The size of the data groups for coding, and the size of the run lengths for coding, can be freely selected, e.g. 4, 8 or 16 bits. However, each change has a positive effect and a negative effect on the compression factor. One advantageous embodiment is characterised in that the data groups consist of units of 4 bits. This lines up with image processing hardware operating with 4 bit words (nibbles). The invention also relates to a method and system for decompressing image data as obtained by the method and system described hereinbefore. The method and system according to the invention are explained in detail with reference to the drawings wherein: Fig. 1 illustrates a first embodiment of the compression method. Fig. 2 is a further development of step 103 ("start run length?") shown in Fig. 1. Fig. 3 is a further development of the step 107 ("run length mode") shown in Fig. 1. Fig. 4 illustrates a first embodiment of the decompression method. Fig. 5 is a further development of the step 404 ("run length mode") shown in Fig. 5. Fig. 6 shows a first compression system for performing the compression method described in Fig. 1. Fig. 7 shows a first decompression system for performing the decompression method described in Fig. 4. Fig. 1 illustrates a first embodiment of the compression process by reference to a flow diagram. It is assumed that a bitmap is to be compressed on the basis of run length in one direction (unidimensional). The separate bits here represent "black" or "white" pixels. Other compression embodiments or specific embodiments of the run length compression can also be equally well combined with the method according to the invention. However, these alternatives will not be described in detail since the skilled man, from his knowledge of the following description for run length compression, must be considered capable of combining the method of the invention with alternative compression methods. Firstly initialisation is carried out as required. An RLMAX flag is reset in a first step 101. This flag indicates whether the maximum run length for coding has been exceeded. If so, no identification code word ID is generated. The first data group GG is read in step 102. This may, for example, be a group of 4, 8 or 16 bits. In the embodiment described, a code word and a data group are both 8 bits long. In step 103 a check is made whether the compression conditions are satisfied, i.e. in this case the conditions for run length compression. These conditions imply that at least two consecutive data groups are identical to one another. If this is not so, step 104 again checks whether the data group GG in question is sometimes identical to the identification code word ID. If so, the data group is replaced in step 105 by another and preferably similar data group GG'. It should be noted that with regard to the selection of an identification code word ID it is preferable to select a data group which occurs as little as possible in the image. On the other hand, the identification code word ID should not be made too long; otherwise the compression factor suffers. If the data group GG read is not identical to the identification code word ID, then in stage 106 the data group GG is fully taken over into the series of code words CW for generation. The method described thus far is therefore equivalent to the standard copying of data groups GG in a copying mode. In this case, therefore, no extra code is added so that in this mode there can never be data expansion. If, on the other hand, it is found in step 103 that at least two consecutive data groups are identical, then this data group GG is compressed in step 107. A check is also made whether subsequent data groups GG following thereon can also be compressed. This step will be explained further in Fig. 2. It is important that the addition of an identification code word ID does not take place until step 103 and only if the conditions for compression are satisfied. The method does not proceed to the compression mode until the said conditions are satisfied. In the discussion of Fig. 2 it will be apparent that there is immediately a return of the previously mentioned copying mode if the said conditions are not satisfied in following data groups GG. This return takes place practically always without using a special code. Data expansion will again not occur. On leaving the compression mode according to step 107, the above-described procedure is repeated for a following data group GG until it has been established in step 108 that the last data group GG has been read. In Fig. 2, the step 103 ("start run length") of Fig. 1 is developed in detail. In this step 103 a check is made whether the data group GG satisfies the conditions for run length compression. In step 201 a check is made whether all the bits of the data group GG to the size of one byte are all identical and have the logic value "zero" or "one" (OOHEX or FFHEX). In this embodiment, in which each bit of a data group GG corresponds to a black or white pixel, only run lengths of two or more completely white bytes and completely black bytes are compressed. A run length is in this case coded with a byte; the first bit indicates the colour, the other seven bits the run length. There is therefore a maximum for the run length which can be coded with a code word. In this case run lengths between 2 and 128 can be coded. Longer run lengths must therefore be coded with a plurality of code words. If the above condition is satisfied, a check is made in step 202 whether a data group following thereon is identical to the present data group. The minimum run length for coding can be set with the parameter RLMIN, and in this case RLMIN is equal to 2. Thus if a minimum of 2 bytes or both contain only "ZEROS" or both contain "ONES", step 103 is left, with the result that the conditions for compression are satisfied. The value of RLMIN is input by the fact that an identification code word is added in the compression step. The number of bits required for this may not be more than the original number of bits. In Fig. 3, step 107 ("run length mode") of Fig. 1 is developed in detail. This relates to the mode in which compression is carried out. In step 301 a check is made whether the RLMAX flag has been set. This flag indicates whether the maximum run length RLMAX for coding has been reached in a preceding compression step while the conditions for compression for a following data group are still satisfied. If this is the case, no identification code word ID is generated since the compression mode can be continued. This can be detected by an associated decompression method by the presence of the code for the maximum run length. Otherwise, in step 302 an identification code word ID is generated to indicate that there is a transition from the copying mode to a compression mode. In step 303 a run length counter CNT is initialised at 1 whereafter in step 304 a following data group GG is read. The run length counter CNT is then increased in step 305. The data groups to be read in step 304 and step 307 relate to the data groups evaluated in step 103. In step 306 a check is made whether the data group GG read in step 304 is the last of the series for coding, e.g. of a line of an image or of the image itself. If this is not the case, step 307 checks whether the following data group GG is identical to the present data group GG. If this is also not the case, then the run length is known and it can be added in step 308 to the code series CW. If, however, the following data group GG is still identical to the present data group, then this data group GG is then read in step 304 and the above-described cycle is repeated. The data group GG to be read in step 304 is then designated the present data group GG. In this cycle, step 309 checks whether the run length counter CNT has not reached the maximum run length RLMAX for coding. If this is the case, then a plurality of run lengths must therefore be added successively. For this purpose, the above-mentioned RLMAX flag is set in step 310. This is used in a new compression cycle in step 301 in order to suppress the generation of the identification code word ID. In a corresponding decompression method, when the code for a maximum run length occurs the following codes also represent a run length. The maximum run length is added in step 311 to the code series whereafter the compression cycle is left. If step 309 does not encounter the maximum run length, the run length is therefore added in step 308. The situation may arise in these circumstances that the run length is exactly identical to the maximum run length RLMAX. This is checked in step 312. In that case, the identification code word ID is also generated in step 313. The effect of this is that a corresponding decompression method can distinguish this situation from the one in which the run length exceeds the maximum run length RLMAX. In the latter case, only a code for the maximum run length RLMAX is encountered while in the other case this code is followed by an identification code word ID. After resetting of the RLMAX flag in step 314 the compression cycle is concluded. Fig. 4 illustrates a first embodiment of the decompression process by reference to a flow diagram. The method described is suitable for the decompression of digital image data compressed in accordance with the method as described with reference to Figs. 1 to 3. The series of code words obtained by compression are successively read and converted into a series of uncompressed data groups. In step 401 a first code word CW is read with a size fixed on compression, e.g. one byte. Step 402 checks whether this code word CW corresponds to the identification code word ID. If this is not the case, then in step 403 the code word CW is transmitted entirely as a data group GG. The method thus works in a copying mode as standard. If, on the other hand, the code word CW corresponds to the identification code word ID, then in step 404 a decompression mode is adopted in which the code word CW is decompressed to one or more data groups GG. The method according to this decompression mode is described in detail with reference to Fig. 5. This cycle is repeated for all the code words CW supplied, until a final code word CW is detected in step 406. The decompression step 404 in Fig. 4 is described in detail in Fig. 5 by means of a flow diagram. A code word CW following on the identification code word ID is read out of the series of code words in step 501. From this code word CW, the colour code is split off from the run length in step 502. In step 503 a counter CNT is allocated the value of this run length while the variable COL is allocated the value of the colour code in step 504. In this case, therefore, either a byte of completely white pixels or completely black pixels (FFHEX or OOHEX). A corresponding data group GG is then generated in a loop with the aid of the contents of the variable COL as often as indicated by the counter CNT. This is effected by step 505, which checks whether the counter CNT reaches the value zero, a generation step 506 for the data group GG corresponding to the contents of the variable COL and a deduction step 507 from the counter CNT. If the loop described is terminated because the counter CNT reaches the value zero, step 508 checks whether the run length is identical to the maximum run length RLMAX for coding. If this is not so, the decompression step is left. Otherwise the compression mode is not yet left. Of course the next code word CW can contain a remaining run length. A following code word CW is read in step 509. Step 510 checks whether this code word CW corresponds to the identification code word ID. In that case of course the coded run length is exactly identical to the maximum run length for coding and the decompression mode must finally be left. If this is not the case, the decompression mode is maintained and the above-described cycle is repeated. An hardware implementation of the compression and decompression process as described above can be fairly simple. The main components are a counter, a run length coding and decoding unit, comparison modules, a number of buffers and control hardware for exact synchronisation and interfaces. The following drawings show only the most important parts of a hardware architecture since this offers sufficient guidance for the skilled man. Fig. 6 shows a hardware architecture of a compression system operating in accordance with the method described in Figs. 1 to 3. Here the data groups GG for compression are fed to the series-connected buffers 601 and 602. Buffer 602 contains the data group GG indicated by NEXT following on the data group GG stored in buffer 601 and indicated by CURR. The start of a run length is detected by detecting whether the data group CURR in buffer 601 is identical to the data group in buffer NEXT 602. This is effected by the comparison module 603. If this is not the case, a logic signal EOR representing the end of the run length is generated by means of an inverter 604. Also, the comparison module 605 detects whether the said data groups consist entirely of logic "ZEROS" or "ONES" (OOHEX or FFHEX). If this is the case and if the data groups are also identical, a signal SOR representing a start of the run length is generated via a logic AND gate 606. If this signal SOR is not generated, the data group CURR is written from buffer 601, via multiplexers 607 and 613, in buffer 608. Or precisely an alternative data group GG' from buffer 609 if the data group CURR from buffer 601 is found to be identical to the identification code word ID. The latter is detected by comparison module 606. If the signal SOR is generated, the identification code word ID stored in register 616 is written in buffer 608 via multiplexers 612 and 613. At the start of a run length, a counter 610 starts to run and temporarily no valid data are written in buffer 608. If the contents CNT of the counter 610 becomes equal to the maximum run length RLMAX for coding, the counter 610 is reset. The run length code word RLCW generated by the run length coding unit 611 is written in buffer 608 via multiplexers 612 and 613. The end of a run length is reached when the current data group CURR and the following data group NEXT are no longer identical. By detecting a data group GG, the run length code word RLCW can be written in buffer 608 at the time that the last data group GG of the run length is in the buffer 601. In a following cycle the next data group GG can be copied in the normal way. One exception occurs if the end of a run length exactly corresponds to the maximum counter state RLMAX. The run length code word RLCW and the identification code word ID must now be generated simultaneously. Buffer 615 is added for this purpose and together with buffer 608 forms a shift register. In this exceptional case, the run length code word RLCW is written via multiplexer 614 while the identification code word ID is written in buffer 608. As a result of the starting point of no local data expansion, these buffers 608 and 615 contain no valid data at that time. Fig. 7 describes a hardware architecture of a decompression system operating in accordance with the method described in Figs. 4 and 5. The main elements are again shown and hardware for control and synchronisation is not described in detail since this is a simple matter for the skilled man to implement on the basis of this description. The series of code words CW for decompression are fed to the buffers 701 and 701. The first code word CW is indicated by CURR and is stored in buffer 702 and the following code word CW indicated by NEXT is stored in buffer 701. In the copying mode, the code word CURR is copied from buffer 702 via multiplexer 703 to buffer 704. In order to keep the produced data stream in progress, the identification code word ID and the run length code word RLCW must be evaluated simultaneously on a transition to the decompression mode. A comparator unit 705 checks whether the code word CURR is equal to the identification code word ID. If it is, this unit 705 generates a signal SOR representing a start of the run length. The following code word NEXT must be decoded as run length. For this purpose it is fed to a run length decompression unit 710 via a multiplexer 706. The run length generated by this unit 703 is then loaded in a counter 704. Finally, this counter 704 again generates a signal EOR representing an end of the run length. Multiplexers 703 and 707 are so connected that during the deduction of the run length via counter 704 a data group of only logic "ZEROS" or only logic "ONES" (OOHEX or FFHEX) is written in the output buffer 704. These data groups, in this case a data group of a size of one byte, are stored in registers 708 and 709. These values are selected by reference to the contents of the colour information COL generated by the run length decompression unit 710.

Claims: A method of compressing digital image data, comprising successive data groups of bits, the contents of which are the values of pixels of an image, in which method a check is made in a selection step whether a first condition is satisfied which at least stipulates that a first data group has the same contents as one or more data groups following thereon, whereafter, if the first condition is satisfied, said data groups having the same contents are replaced, in a compression step, by a compression code representing these data groups, and otherwise, only the first data group is replaced in a copying step by a code consisting of the contents of the data group, whereafter the above steps are repeated for the next data groups, the method also comprising an identification step for adding an identification code for characterising the nature of the code, characterised in that the identification step is carried out only when the compression step is carried out. A method according to claim 1, characterised in that the compression code comprises a predetermined number of bits. A method according to claim 2, in which the compression step comprises coding the number of consecutive data groups having the same contents, characterised in that the number is limited to a maximum number. A method according to claim 1, characterised in that the compression code comprises a predetermined number of bits and, in predetermined cases, one or more predetermined repetition codes. A method according to claim 4, wherein the compression step comprises coding the number of consecutive data groups having the same contents, characterised by the generation of the repetition code if the number of consecutive data groups having the same contents is greater than a maximum number that can be coded with the predetermined number of bits. A method according to claim 4 or 5, characterised in that the repetition code is identical to the identification code. A method according to claim 5, characterised in that the repetition code is identical to the said maximum number. A method according to claim 7, characterised in that the compression code is ended with the identification code if the number of data groups for coding is identical to the said maximum number. A method according to any one of the preceding claims, characterised in that a data group is replaced by another predetermined data group in the copying step if the data group is identical to the identification code. A method according to any one of the preceding claims, in which the pixels of an image are arranged in consecutive image lines, characterised in that the bits of a data group originate from at least two adjacent image lines. A method according to any one of the preceding claims, characterised in that a bit of a data group corresponds to the value of a pixel of the image. A method according to claims 3 or 5, characterised by determining only the number of identical data groups of which the bits of a data group are identical to one another. A method according to any one of the preceding claims, characterised in that the data groups consist of units of 4 bits. A method of decompressing digital image data coded with a consecutive code to form consecutive data groups of bits having as contents the values of pixels of an image, in which method a check is made in an identification step whether a first condition is satisfied which at least stipulates that the code comprises a predetermined identification code, whereafter in dependence on the result of the identification step, either, in a decompression step, a code following thereon is replaced by data groups corresponding to that code, or, in a copying step, the contents of the code under investigation are replaced by a data group consisting of the contents of the code, whereafter the said steps are repeated for the code following thereon, characterised in that the decompression step is carried out only if the first condition is satisfied and in that a predetermined number of bits is interpreted as a compression code for decompression and is replaced by data groups. A method according to claim 14, characterised in that in the decompression step, in addition to the predetermined number of bits, predetermined repetition codes are also interpreted as a compression code and are replaced by data groups. A compression system for compressing digital image data to be fed thereto, the image data comprising consecutive data groups of bits having as contents the values of pixels of an image, comprising: selection means for checking whether a first condition is satisfied which at least stipulates that a first data group fed to the selection means has the same contents as one or more data groups to be fed following thereon; compression means for replacing the contents of data groups fed thereto by a compression code representing the data groups; copying means for replacing the contents of a data group fed thereto by a code which consists entirely of the contents of the data group; control means adapted to feed the data groups consecutively to the selection means, the control means also being adapted to feed the first and following data groups fed to the selection means to the compression means if the first condition is satisfied and otherwise to feed the first data group to a copying means; generating means for generating an identification code for characterising the type of code; characterised in that the generating means are adapted to generate a identification code only if the first condition is satisfied. A compression system according to claim 16, characterised in that the compression means are adapted to generate compression code with a predetermined number of bits. A compression system according to claim 17, the compression means being adapted to code the number of consecutive data groups having the same contents, characterised in that the number is limited to a maximum number. A compression system according to claim 16, characterised in that the compression means are adapted to generate only compression code of a predetermined number of bits and, in predetermined cases, one or more predetermined repetition codes. A compression system according to claim 19, in which the compression means are adapted to code the number of consecutive data groups having the same contents, characterised in that the compression means are also adapted to generate the repetition code if the number of consecutive data groups having the same contents is greater than a maximum number that can be coded with the predetermined number of bits. A compression system according to claim 19 or 20, characterised in that the repetition code is identical to the identification code. A compression system according to claim 20, characterised in that the repetition code is equal to the said maximum number. A compression system according to any one of claims 16 to 22, characterised in that the compression system is adapted to replace a data group by another predetermined data group if the data group is identical to the identification code. A compression system according to any one of claims 16 to 23, in which the pixels of an image are arranged in consecutive image lines, characterised in that bits of a data group originate from at least two adjacent image lines. A compression system according to any one of claims 16 to 24, characterised in that a bit of a data group corresponds to the value of a pixel of the image. A compression system according to claim 18 or 20, characterised in that the compression means are adapted to code only the number of identical data groups of which the bits of a data group are identical to one another. A compression system according to any one of claims 16 to 26, characterised in that the data groups consists of units of 4 bits. A decompression system for the decompression of consecutive codes of coded digital image data for feeding thereto to form consecutive data groups of bits having as contents values of pixels of an image, comprising: selection means for checking whether a first condition is satisfied which at least stipulates that the code for feeding thereto comprises a predetermined identification code; decompression means for replacing the code for feeding thereto by data groups corresponding to that code; copying means for replacing the contents of the code for feeding thereto by a data group consisting of the contents of the code; control means for successively feeding the as yet unreplaced code to the selection means, the control means further being adapted to feed the code fed to the selection means either to the decompression means or to the copying means, characterised in that the control means are adapted only to feed the code to the decompression means if the first condition is satisfied and in that the decompression means interpret a predetermined number of bits as compression code for decompression and replace the same by data groups. A decompression system according to claim 28, characterised in that the decompression means are adapted to interpret, in addition to the predetermined number of bits, predetermined repetition codes as a compression code and replace the same by data groups. A scanning and printing system provided with a compression system according to any one of claims 16 to 27. A computer provided with a compression system according to any one of claims 16 to 27.

Inventors: CORNELISSEN PETRUS ANTONIUS MA, CORNELISSEN, PETRUS ANTONIUS MARIA
Applicants: OCE TECH BV, OCE-TECHNOLOGIES B.V.
Application year: 1996
Main classification: H04N1
IPC codes: H04N1, H03M7, H04N7