WO2004068844A1 - 画像圧縮方法、画像復元方法、プログラム及び装置 - Google Patents

画像圧縮方法、画像復元方法、プログラム及び装置 Download PDF

Info

Publication number
WO2004068844A1
WO2004068844A1 PCT/JP2003/000888 JP0300888W WO2004068844A1 WO 2004068844 A1 WO2004068844 A1 WO 2004068844A1 JP 0300888 W JP0300888 W JP 0300888W WO 2004068844 A1 WO2004068844 A1 WO 2004068844A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
block
processing
reference block
processing block
Prior art date
Application number
PCT/JP2003/000888
Other languages
English (en)
French (fr)
Inventor
Kenichiro Sakai
Tsugio Noda
Original Assignee
Fujitsu Limited
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Limited filed Critical Fujitsu Limited
Priority to PCT/JP2003/000888 priority Critical patent/WO2004068844A1/ja
Priority to JP2004567528A priority patent/JPWO2004068844A1/ja
Publication of WO2004068844A1 publication Critical patent/WO2004068844A1/ja
Priority to US11/038,603 priority patent/US7236636B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • H04N1/4105Bandwidth or redundancy reduction for halftone screened pictures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Definitions

  • the present invention relates to an image compression method, an image decompression method, a program and an apparatus for compressing a bitmap image and decompressing the image after transferring it to a printer or the like.
  • the present invention relates to an image restoration method, a program, and an apparatus. Background art
  • the compression method proposed by the inventor of the present application can efficiently compress a uniform dither image that repeats periodically without changing the shape of the pattern, but the shape of the pattern continuously changes like a gradation. In the case of a changing dither image, there is a problem that it cannot be compressed at all. Disclosure of the invention
  • An object of the present invention is to provide an image compression method, an image restoration method, a program, and an apparatus for improving the compression efficiency of a dither image in which the shape of a pattern changes continuously.
  • the present invention provides an image compression method
  • the image encoding unit encodes the image obtained by executing the block replacement step.
  • Image encoding step
  • the code output unit By the code output unit, the code data obtained by executing the image coding step, the presence or absence of replacement of each processing block obtained by executing the block replacement step with the difference image, and the position of the reference block And outputting the information in combination with the information.
  • the image is divided into blocks of vertical and horizontal (NXM) pixels, and each block is exclusive-ORed with its neighboring blocks. (XOR) to increase the compression efficiency by reducing the number of black pixels to be coded in the image.
  • NXM vertical and horizontal
  • XOR exclusive-ORed with its neighboring blocks.
  • the compression ratio generally increases as the number of black pixels decreases because black pixels in the image are encoded, and exclusive OR (XOR) between blocks is applied before image encoding. By doing so, the number of black pixels to be encoded is reduced, and the image compression ratio is increased.
  • a block close to the current processing block is preferentially selected as a reference block from among the processed blocks already selected in the processing block selection step.
  • the input image is sequentially divided into blocks by selecting a reference block by forward reference from the blocks that have undergone exclusive OR (XOR) processing, and the exclusive OR (XO By applying R), the encoding process can proceed, and therefore the compression process can be started in advance without waiting for the completion of the input of the entire image.
  • the exclusive OR (XOR) with the restored reference block already decoded from the difference image can be executed.
  • a restored image can be obtained more quickly without the need for a two-pass process such as performing exclusive OR (XOR) processing from the first block again. This reduces the waiting time on the side that uses the restored image, such as printing in the printer ahead of the decoded image.
  • the image replacement step does not replace the pixel value with the difference image of the processing block if the pixel difference between the processing block and the reference block is equal to or more than a predetermined number based on the result of executing the difference image generating step. .
  • This takes into account that if the images of the processing block and the reference block differ greatly, the number of black pixels in the difference image will increase and the compression efficiency will decrease.
  • Is selected and exclusive OR (XOR) is performed with the processing block, and a block in which the number of black pixels in the obtained difference image is equal to or less than a predetermined number and the number of black pixels is minimized is selected as a reference block.
  • XOR exclusive OR
  • the processing block selection step skips the exclusive OR processing of the processing block and the reference block. This is because a block that does not include black pixels, or a block in which the pixel values of each column are all the same, do not need to perform an exclusive OR (X ⁇ R) with the reference block, and use the image coding step applied thereafter.
  • exclusive OR (XOR) processing is performed on blocks that are known in advance to be highly compressible by image encoding in the subsequent stage. By not applying this function, the processing load due to exclusive OR (XOR) is reduced and compression efficiency is prevented from lowering.
  • the bit length of the internal register of the central processing unit (CPU) mounted on the processing device that executes the compression method of the present invention matches the number M of vertical pixels and / or the number N of horizontal pixels of the block, and the minimum necessary processing steps are performed.
  • the bit length of the internal register of the CPU is a multiple of 8, so the number of vertical and horizontal pixels of the block is also set to a multiple of 8 accordingly.
  • the image coding step performed after the image replacement step of replacing the processing block with a difference image generated by exclusive OR (XOR) with the reference block includes: A first area separation step of scanning an image including a difference image processing block in the main scanning direction to separate an area including black pixels and an area not including black pixels in units of K rows, which is an arbitrary integer;
  • a second region separation step for separating into regions including pixels and regions not including black pixels
  • the present invention targets an image including a difference image generated by exclusive OR (XOR) in a processing block, and further scans a predetermined number of lines K in the main scanning direction to remove black pixels.
  • a compression method that separates the region containing the image as a logical line (logi cal line), scans this logical line in the sub-scanning direction into a region containing black pixels and another region, and encodes each as an element. Combine with to further increase compression efficiency. Due to such two-stage compression, the compression performed by generating a difference image by exclusive OR (XOR) at the first time is positioned as the pre-processing of the coding performed later.
  • the present invention provides a restoration method for restoring an image from compressed image data generated by exclusive OR (XOR) generation of a differential image and subsequent encoding.
  • This image restoration method provides a restoration method for restoring an image from compressed image data generated by exclusive OR (XOR) generation of a differential image and subsequent encoding.
  • a code input unit for inputting predetermined code data, image compression data including a combination of presence / absence of replacement of each processing block with a difference image and position information of a reference block,
  • the block decoding unit divides the decoded image of the image decoding step into processing blocks having a predetermined number of pixels in the vertical and horizontal directions, and performs exclusive OR (XOR) on the pixel values of the processing block replaced with the difference image and the reference block.
  • the restoration of the original image from the code data encoded by the compression method of the present invention is performed by first decoding an image to which exclusive OR (XOR) is applied from the code data, and then dividing each block into blocks. The original block is restored by exclusive-ORing (XOR) again with the reference block at the same position that was exclusive-ORed (XOR) during compression. In this way, the exclusive OR (XOR) operation has the property of completely returning to the original data when executed twice, and is completely restored to the original without image deterioration.
  • the present invention provides a program for image compression.
  • the program for image compression is
  • the present invention provides a program for restoring compressed image data.
  • This image recovery program is An input step of inputting compressed image data including a combination of predetermined code data, whether or not each processing block is replaced with a difference image, and positional information of a reference block, and decodes the input code data into an image An image decoding step;
  • the decoded image in the image decoding step is divided into processing blocks of a predetermined number of pixels vertically and horizontally, and the processing block replaced by the differential image and the pixel value of the reference block are subjected to exclusive OR (XOR) to obtain the pixel value of the processing block.
  • XOR exclusive OR
  • the present invention provides an image compression device.
  • the image compression apparatus includes a block dividing unit that divides an input image into blocks having a predetermined number of pixels in the vertical and horizontal directions, and a process of scanning the divided blocks in the main scanning direction and the sub-scanning direction and sequentially selecting the processing blocks as processing blocks.
  • a block selection unit a reference block selection unit that selects a block having a positional relationship between the block selected by the processing block selection unit and a pixel value relationship that satisfies predetermined conditions as a reference block, and a processing block and reference
  • a difference image generation unit that generates a difference image by performing exclusive OR (XOR) on pixel values of a block, a block replacement unit that replaces a processing block with a difference image when the difference image satisfies a predetermined condition, and a block replacement unit ,
  • An image encoding unit that encodes the image obtained by performing the above, code data obtained by executing the image encoding unit, and an image data obtained by executing the block replacement unit. Further comprising a code output section for outputting a combination of the position information of the replacement presence and the reference block to the difference image of each processing block and said.
  • the present invention provides an image restoration device for restoring compressed image data output from an image compression device.
  • the image restoration apparatus includes a code input unit for inputting image compression data including a combination of predetermined code data, whether or not each processing block is to be replaced with a difference image, and positional information of a reference block;
  • the image decoding unit that decodes the image data and the decoded image of the image decoding unit are divided into processing blocks with a predetermined number of pixels in the vertical and horizontal directions.
  • the details of the image compression apparatus and the image restoration apparatus of the present invention are basically the same as those of the image compression method and the image restoration method. BRIEF DESCRIPTION OF THE FIGURES
  • FIG. 1 is an explanatory diagram of an apparatus environment to which the present invention is applied;
  • FIG. 2 is a block diagram of a functional configuration of the image compression apparatus according to the present invention.
  • FIG. 3 is an explanatory diagram of an exclusive OR processing of a block at the time of compression according to the present invention
  • FIG. 4 is a schematic flowchart of the image compression processing according to the present invention.
  • FIG. 5 is an explanatory diagram of a hardware environment of a computer to which the present invention is applied;
  • FIG. 6 is a block diagram of a functional configuration of an image restoration device according to the present invention.
  • FIG. 7 is an explanatory diagram of the exclusive OR processing of a block at the time of restoration according to the present invention.
  • FIG. 8 is a schematic flowchart of an image restoration process according to the present invention.
  • FIG. 9 is an explanatory diagram of block division of an input image, a processing block, and a reference block;
  • FIG. 10 is an explanatory diagram of a relationship between a block line and the number of logical rows;
  • FIG. 11 is an explanatory diagram of the order of block processing in image compression according to the present invention.
  • FIG. 12 is an explanatory diagram of a template for designating the selection order of reference blocks according to the present invention.
  • FIG. 13 is an explanatory diagram of image compression processing in units of block lines according to the present invention
  • FIG. 14 is an explanatory diagram of image restoration processing in units of block lines according to the present invention
  • FIG. 15 is a flowchart of image compression processing according to the present invention ;
  • FIG. 16 is a flowchart of the image compression process following FIG. 15;
  • Fig. 17 is an illustration of the storage location of exclusive ORed blocks in the block line buffer
  • Figure 18 is an illustration of the reference block position storage table
  • Fig. 19 is an illustration of the reference block position storage table and encoding
  • FIG. 20 is a flowchart of the reference block selection processing in FIGS. 15 and 16;
  • FIG. 21 is an explanatory diagram of a template that specifies the selection order used in the reference block selection processing of FIG. 20;
  • FIG. 22 illustrates the processing block and the reference block to which exclusive OR is not applied in the present invention.
  • FIG. 23 illustrates an example of image processing in which exclusive OR processing of a block is performed according to the present invention
  • Fig. 24 is an explanatory diagram of the correspondence between the block to be exclusive-ORed in Fig. 23 and the reference block;
  • FIG. 25 is a flowchart of an encoding process for encoding an image subjected to exclusive OR processing;
  • FIG. 26 is an explanatory diagram of image compression by the encoding of FIG. 25;
  • FIG. 27 is a flowchart of an image restoration process according to the present invention.
  • FIG. 1 is an explanatory diagram of an apparatus environment to which an image compression method and an image restoration method according to the present invention are applied.
  • the image compression apparatus 10 of the present invention is mounted as a program on a personal computer 11, and the image restoration apparatus 40 of the present invention is provided on the printer 12 side.
  • the image compression device 10 inputs the binary bit map data generated for printing on the personal computer 11 as an image data, compresses the image data, and compresses the image data to the image restoration device 40 of the printer 12.
  • Transfer to The printer 12 is a printer that does not have fonts and prints by directly receiving bitmap images from the personal computer 11 .By installing an image restoration device 40, the image compression of the present invention is achieved. The compressed image data transferred from the device 10 is restored and printed.
  • FIG. 2 is a block diagram of a functional configuration of the image compression device according to the present invention.
  • the image compression device 10 of the present invention includes a buffer memory 14, a pre-processing unit 15 and an image compression unit 16.
  • the buffer memory 14 holds the binary bitmap data to be transferred to the printer.
  • the compressed image data is transferred to the printer 12 by performing two-stage compression of compression by the preprocessing unit 15 and compression by the image compression unit 16.
  • the preprocessing unit 15 includes a block division unit 18, a processing block selection unit 20, a reference block selection unit 22, a difference image generation unit 24, and a block replacement unit 26.
  • the image compression section 16 includes an image encoding section 28 and a code output section 30.
  • each processing unit in the preprocessing unit 15 is as follows.
  • the block division unit 18 divides the input image held in the buffer memory 14 into blocks each having a predetermined number of vertical and horizontal pixels, for example, a number of horizontal pixels M and a number of vertical pixels N (MXN).
  • the processing block selection unit 20 scans the divided blocks in the main scanning direction and the sub-scanning direction, and sequentially selects them as processing blocks.
  • the reference block selecting unit 22 selects a block whose positional relationship and pixel value relationship with the block selected by the processing block selecting unit 20 satisfy predetermined conditions as a reference block.
  • a block close to the current processing block is preferentially selected as a reference block from among the processed blocks already selected in the processing block selection unit 20.
  • the difference image generation unit 24 generates a difference image by performing exclusive OR (XOR) of the selected processing block and the pixel value of the reference block.
  • the block replacement unit 26 replaces the current processing block with the generated difference image when the difference image generated by the difference image generation unit 2 satisfies a predetermined condition. In this case, the difference image is replaced with a processing block. If the difference in the number of pixels between the processing block and the reference block is equal to or larger than a predetermined number, the processing block is not suitable for exclusive OR compression. Is not replaced with the difference image.
  • the number M of horizontal pixels and the number N of vertical pixels of the input image in the block division unit 18 are multiples of 8 in order to match the bit length of the internal register of the CPU.
  • each processing unit of the image compression unit 16 has the following functions.
  • the image encoding unit 28 encodes an image including the difference image obtained by the block replacing unit 26 of the preprocessing unit 15 in a block.
  • the image compression method of Japanese Patent Application No. 2001-3808931 which has already been applied by the present inventors, is applied.
  • the code output unit 30 determines whether or not the code data obtained by the processing of the image coding unit 28 and each processing block obtained by the block replacement unit of the preprocessing unit 15 are replaced with a difference image, and the difference Combined with the position information of the block, it is transferred to, for example, the printer 12 as compressed image data.
  • processing block 32 is a vertical and horizontal image in this example.
  • Exclusive logic is applied between the current processing block 32 and the reference block 34 selected from the already processed blocks.
  • the difference image 38 is generated by taking the sum (XOR) 36.
  • the correlation of the pixel values between adjacent blocks is high, and the higher the correlation, the fewer black pixels in the difference image, and the same pixel arrangement In the case of the block of, all pixels in the difference image are white pixels, and high compression is possible.
  • FIG. 4 is a schematic flowchart of an image compression process in the image compression device 10 of FIG.
  • image compression processing first, in step S1, the input image is divided into blocks, and then the processing blocks are selected in order, and the processing block is subjected to an exclusive OR (XOR) with the selected reference block. To generate a difference image.
  • step S2 the position information of the reference block of each block that has undergone exclusive OR (XOR) is encoded.
  • the image after the exclusive OR (XO) in step S3 is encoded, and output as encoded data for the input image together with the reference block position information obtained in step S2.
  • the image compression apparatus of the present invention in FIG. 2 is realized by hardware resources of a convenience store as shown in FIG. 5, for example.
  • the bus 201 of the CPU 200 has a RAM 202, a hard disk controller (software) 204, a floppy disk driver (software) 210, a CD-ROM driver (software) 214, a mouse controller 218, a key controller.
  • Board controller 222 Display controller 226, communication board 230, printer driver 234 are connected.
  • the hard disk controller 204 is connected to the hard disk drive 206 and loads an application program for executing the data compression processing of the present invention.
  • a necessary program is called from the hard disk drive 206 and expanded on the RAM 202, The image is compressed by being executed by the CPU 200.
  • the floppy disk driver 210 has Mouth disk drive (hardware) 2 1 2 is connected and can read / write to floppy disk (R).
  • a CD drive (hardware) 2 16 is connected to the CD-ROM driver 2 14 so that data and programs stored on the CD can be read.
  • the mouse controller 2 18 transmits the input operation of the mouse 220 to the CPU 200.
  • the keypad controller 222 transmits the input operation of the keyboard 222 to the CPU 200.
  • the display controller 226 performs display on the display unit 228.
  • the communication board 230 uses a communication line 232 to communicate with another computer or server via a network such as the Internet.
  • the printer driver 2 3 4 transfers the code data image-compressed by the image compression device of the present invention to the printer 12 and restores the code data by the image restoration device of the present invention provided on the printer 12 side. To print.
  • FIG. 6 is a block diagram of a functional configuration of the image restoration device according to the present invention.
  • an image restoration device 40 of the present invention is provided, for example, on the printer 12 side, and restores an image from the image compression data transferred from the image compression device 10 of FIG.
  • the printer mechanism 1380 is supplied to the printer engine 140 to perform a printing operation.
  • the image restoration device 40 is provided with a buffer memory 42, a code input unit 44, an image decoding unit 46, and a block decoding unit 48.
  • the code input section 44 inputs the image compression data transferred from the image compression apparatus side.
  • the image compression data includes predetermined code data, whether or not each processing block is replaced with a difference image, and Contains a combination of reference block location information.
  • the image decoding unit 46 decodes the input code data into an image.
  • This decoding process is a process of restoring the code data compressed by Japanese Patent Application No. 2001-3888931 already proposed by the present inventor.
  • the processing block is decoded by performing an exclusive OR (XOR) operation on the pixel values of the processing block and the reference block that have been replaced with the image and replacing them with the pixel values of the processing block.
  • XOR exclusive OR
  • the exclusive OR processing at the time of restoration is restoration of the difference image 38 obtained by the exclusive OR processing at the time of compression in FIG.
  • the reference block 52 is selected from the processing blocks that have already been restored based on the reference block position information sent from the compression side. This reference block 52 is the same as the reference block 34 on the compression side in FIG.
  • the exclusive OR (XOR) 54 of the difference image 38 and the reference block 52 is performed, the original block 56 is restored, which is equivalent to the processing block 32 in FIG. Is the same.
  • FIG. 8 is a schematic flowchart of the image restoration processing according to the present invention.
  • the exclusive OR (XOR) image is decoded in step S1
  • the position information of the reference block is decoded in step S2
  • each block is decoded in step S3.
  • the original image is restored by performing exclusive OR processing (XOR) based on the position information of the reference block.
  • FIG. 9 is an explanatory diagram of a processing block and a reference block after block division and division in the preprocessing unit 15 of FIG.
  • an input image 58 to be processed is divided into blocks 60 — 11 to 60 MN of M horizontal pixels and N vertical pixels, which are multiples of eight.
  • the processing is performed in units of horizontal block lines 62-1-62-N based on the input image 58 divided into blocks.
  • a processing block 64 currently being processed and a reference block 66 selected for the exclusive OR (XOR).
  • FIG. 10 is an explanatory diagram of the relationship between the block lines and the number of logical lines in the input image.
  • the number of vertical pixels N of the exclusive OR (XOR) is set to K, which is the same as the number of logical rows, as shown in FIG.
  • the block boundary is made to be an integral multiple of K to match the block boundary with the line boundary of the logical line as in).
  • the logical row is a Japanese Patent Application No. 2001-3888 already proposed by the present inventor in the image encoding unit 28 provided in the image compression unit 16 in FIG. This is the processing concept in 931.
  • the image is scanned in the main scanning direction with a predetermined number K of lines, and an area including black pixels is separated as a logical row.
  • an area including black pixels is separated as a logical row.
  • the number of vertical pixels N of the exclusive OR (XOR) block of the present invention the number of logical rows K and N should be the same or N should be By setting it to an integral multiple, the block boundary and the line boundary of the logical row can be matched, and the compression efficiency can be increased.
  • the number of lines K of the logical row 72 and the number of vertical pixels N of the block line 74 do not have an integer multiple, and the block boundary and the line boundary of the logical row coincide. If not, the difference image after XOR is spread between logical rows, causing the disadvantage of reduced compression efficiency.
  • FIG. 11 is an explanatory diagram of the order of block processing in image compression by exclusive OR (XOR) of the present invention.
  • XOR exclusive OR
  • the compression processing can be started in advance without waiting for the completion of the input of the entire image.
  • an exclusive OR XOR
  • block decoding can be performed in a single pass in the restoration process, and by printing in the printer before the decoded image portion, the waiting time on the restoration side can be reduced.
  • FIG. 12 is an explanatory diagram of a template for designating the selection order of reference blocks to be selected for a processing block in the exclusive OR (XOR) processing of the present invention.
  • XOR exclusive OR
  • Figure 12 (A) shows a 2x2 matrix template 78--1, where the upper, left, and upper left blocks of the processed side for processing block 64 are set as reference block candidates and selected.
  • FIG. 12 (B) shows a template 78-2 to which Fig. 12 (B) is further added with three blocks of selection order Nos. 5, 6, 7, and 8.
  • the basic idea of specifying the order of reference blocks in this template is that the blocks adjacent to the processing block are in the order of upper left or upper right, followed by upper left or upper right for the blocks adjacent to the processing block, and top and left for outer blocks. ,. Upper left, upper right.
  • a logical OR a difference image is generated by selecting a reference block that minimizes the number of black pixels in the generated difference image.
  • FIG. 13 is an explanatory diagram of the image compression processing in units of block lines in the present invention.
  • scanning is performed according to a raster scanning order in the main scanning direction and the sub-scanning direction.
  • exclusive OR (XOR) with the reference block can be performed during encoding, encoding is more efficient when performed in block line units. For example, if compressed data is output in block line units and the encoded data is output, the decoding side that received the encoded data can also restore the image in block line units, so that decoding can be started without waiting for the compression processing of the entire image to be completed. There is. For this reason, as shown in Fig.
  • the input line 80 is taken out as a processing target, and XOR processing is executed in order from the first block of the input line 80, and the XOR
  • the block line 82 is generated, and then the block line 82 is collectively compressed to compress the image, and the code data 90 of the reference block information already obtained and the code data 88 of the block line after XOR are obtained. Transfer to the restoration side.
  • the decompression side which receives the code data by the compression line unit compression on the compression side, performs the processing shown in FIG.
  • Figure 1 In the restoration processing of 4, after receiving the code data 88 of the block line after XOR and the code data 90 of the reference block information obtained by decoding in block line units, the code data of the block line after XOR 8 8 Perform image restoration 92 to generate a decoded block line 96. Subsequently, the position of the reference block is obtained from the code data 90 of the reference block information, XOR processing 94 is performed as an exclusive OR processing, and the data of each block of the block line 98 that has been XORed for each block is obtained. Decode sequentially. At the stage when the image restoration of the block lines 98 is completed, the printer can perform a printing operation in units of block lines.
  • FIGS. 15 and 16 are flowcharts of the image compression processing according to the present invention in which image compression is performed in block line units.
  • the processing procedure of this image compression processing is as follows.
  • the first block line in the input image is selected, and the variable k indicating the block line number is set to 0 indicating the first block line.
  • step S5 is executed. Proceed to. If exclusive OR (XOR) is determined, the process proceeds to step S4.
  • step S6 It is determined whether there is a reference block to be XORed with the i-th block (X ⁇ R). If so, proceed to step S6. If not, proceed to step S5. move on.
  • step S8 For storing exclusive OR (XOR) block lines prepared separately After the pixel value of the i-th block is output as it is to the block line buffer, the process proceeds to step S8 to select the next block.
  • XOR exclusive OR
  • the exclusive OR (XOR) of the pixels in the i-th block and the reference block is performed and output to the block line buffer. Note that the output to the block line buffer in steps S5 and S6 is the exclusive logic of the reference block 66 as shown in FIG. 17 at the same position of the block line buffer 82 as the i-th block in the block line k. The pixel value obtained by the sum (XOR) is output.
  • the position of the reference block is added to the reference block position storage table.
  • a number indicating the block selection order of the reference block template shown in FIG. 12 can be used.
  • the block number i is compared with the number of blocks BLK—NUM in the block line, and if they match, it is determined that exclusive OR (XOR) of all blocks in the block line has been completed, and the process proceeds to step S10. The process proceeds, and if they do not match, it is determined that the exclusive OR (XOR) process has not been completed, and the process returns to step S3.
  • Step S 1 1
  • Step S 1 2
  • the block line number k is compared with the number of block lines in the input image, LINE—NUM. If they match, it is judged that the encoding processing has been completed for all block lines, and the processing ends. Indicates that there is a block line that has not been encoded. It is determined that it exists, and the process returns to step S2.
  • FIG. 18 is an explanatory diagram of the reference block position storage table 100 used in step S7 of FIGS. 15 and 16.
  • This reference block position storage table 100 0 has storage areas for the processing block number, the presence / absence of the reference block, and the reference block number.
  • the processing block number corresponds to all the blocks in the block line. 1) is assigned, and the presence or absence of a reference block number and the reference block number are stored for each. If the reference block number exists, write 1 if it exists, and write 0 if it does not exist.
  • FIG. 19 is a specific example of the reference block position storage table 100 of one block line generated by the compression processing of FIGS. 15 and 16, and 12 blocks of 0 to 11 are used as processing block numbers.
  • the case of one block line is taken as an example.
  • the presence or absence of the reference block is 1 if the reference block exists, and 0 if the reference block does not exist.
  • the reference block number the numerical value of the processing block number selected as the reference block is stored. .
  • the number of blocks having no reference block is encoded as an offset value, and the reference block If exists, the reference block number and its consecutive reference count are combined to generate the sign ⁇ :. For example, in FIG.
  • FIG. 20 is a flowchart showing details of a reference block selection process in step S3 of FIG. 15, FIG. 15 and FIG.
  • the reference block itself is a block to be subjected to exclusive OR (XOR)
  • variable r indicating the reference block number is set to 1 indicating the first reference block number
  • variable s indicating the selected reference block number is set to 0 indicating that the reference block is not selected.
  • the pixel values at the same position between the processing block and the reference block r are compared, and the number D of different pixel values is counted.
  • the pixel difference D is compared with a predetermined maximum pixel difference MAX—DIFF. If the pixel difference D is less than the maximum pixel difference MAX-DIFF, it is determined that the pixel difference is within a predetermined range. The process proceeds to step S5, and otherwise, it is determined that the pixel difference is not within the predetermined range, and the process proceeds to step S7.
  • Dmin for storing the reference pixel difference is compared with the pixel difference D obtained in step S3, and the pixel difference D is smaller than the minimum pixel difference Dmin. If it is smaller, it is determined that the pixel difference between the reference block r and the processing block is smaller, and the process proceeds to step S6. Otherwise, it is determined that the pixel difference between the reference block r and the processing block is not the minimum. To step S7.
  • the reference block r is stored in a variable s for holding the reference block number that minimizes the pixel difference from the processing block, and the minimum pixel difference Dmin is the processing obtained in step S3.
  • the pixel difference D between the logical block and the reference block r is stored.
  • the reference block number r is compared with the number of reference blocks REF pestNUM. If the reference block number r is less than the reference block number REF—NUM, it is determined that the selection processing has not been completed for all the reference blocks, and step S Returning to step 2, otherwise, it is determined that the processing has been completed for all reference blocks, and the process proceeds to step S9.
  • step S 1 It is checked whether or not s is greater than 0, that is, whether or not the selected reference block number is stored in r. If s is greater than 0, it is determined that the reference block has been selected and step S 1 is performed. The process proceeds to 0, and if s is 0, it is determined that the reference block has not been selected, and the process proceeds to step S11.
  • the selected reference block number s is output, and the reference block selection processing ends.
  • Step S 1 1
  • step S4 of FIGS. 15 and 16 it is possible to select a reference block in which the pixel difference for the processing block is minimized and the pixel difference is equal to or less than a predetermined number.
  • the reference block is determined in two steps whether or not the reference block is to be subjected to exclusive OR (XOR).
  • XOR exclusive OR
  • the first stage if the encoding efficiency by exclusive OR (XOR) does not improve, such as when the reference blocks are all white images or all black images, they are not selected as reference blocks.
  • the second stage is based on the relationship between the pixel values of the processing block and the reference block. For example, in the example shown in Fig.
  • the processing block 102 changes from white to black in the main scanning direction, while the reference block 104 changes in reverse (changes from black to white and changes to the reference block 100).
  • Reference numeral 1 08 denotes a black image
  • reference numeral 1 08 denotes a black image
  • processing block 110 in FIG. 22 (B) changes from black to white in the circumferential scanning direction.
  • the reference block 1 1 2 is changed from white to black
  • the reference block 1 1 4 is a vertical stripe
  • the reference blocks 1 1 6 are all black images.
  • the processing blocks 118 are all black images
  • the reference block 120 is vertical stripes
  • the reference block 122 is a change from a white to black image
  • the reference block 124 is Is the change from black to white image.
  • the exclusive OR (XOR) of the processing block and the reference block gives the number of pixels after processing. Therefore, the reference block is not selected as the target of the exclusive OR (XOR) in this relationship.
  • FIG. 23 is a specific example of a processed image on which exclusive OR processing of blocks according to the present invention has been performed.
  • Fig. 23 (A) shows the input image 1 26, which is divided into 8 x 8 blocks of vertical and horizontal (MXN) pixels, and the processing block according to the processing order of Fig. 11 is the same as Fig. 21
  • the reference block is selected according to the order of template 78-3, and exclusive OR (XOR) is executed to generate the X ⁇ R processed image 128 of Fig. 23 (B).
  • FIG. 24 (A) shows block numbers 1 to 8 when the input image 126 of FIG. 23 (A) is divided into blocks.
  • Fig. 24 (B) shows the block number of the reference block selected when generating the X ⁇ R processed image 128 of Fig. 23 (B) as the value to the right of XOR for the processing block number. I have.
  • the pixels of the input image 126 are arranged as they are because there is no processed block for the first block.
  • the second and subsequent blocks are block images obtained by arranging difference images in which the number of black images has been significantly reduced by X ⁇ R processing with the reference block.
  • the pixel arrangements of both blocks match by exclusive OR (XOR) with reference block numbers 1, 3, and 4.
  • XOR exclusive OR
  • FIG. 25 shows an encoding process for encoding an image that has undergone exclusive OR processing, which is performed by an image encoding unit 28 provided in the image compression unit 16 following the preprocessing unit 15 in FIG. It is a flow chart.
  • the encoding process that is, the encoding process based on the Japanese Patent Application No. 2001-3888931 already proposed by the inventor is as follows.
  • the input exclusive OR (XOR) -processed image is scanned in the horizontal direction in units of a predetermined integer K lines (main scanning direction scanning).
  • the separated logical rows are scanned vertically in column units (sub-scan direction scanning).
  • Second area separation Separate into a blank area that does not contain a black image, such as between characters, and an area that contains a black image other than the blank area (second area separation).
  • Encoding is performed using each area separated in step S4 and step S5 as an element.
  • FIG. 25 shows the principle of the encoding process in FIG.
  • a pattern that continuously appears repeatedly is detected from the logical rows 130 in the input image 126 to be processed, and the length, pixel value, and number of repetitions of the basic repetition pattern.
  • the code data size is reduced by encoding using.
  • the code data becomes codeword, number of repetitions K, pixel width ⁇ , repetition pattern It consists of a basic pattern (M bytes).
  • a dither pattern in which an ordinary same shape is repeated is taken as an example as the input image 1 26.
  • FIG. The XOR processing image 128 as shown in B) is targeted, and the encoding processing of FIG.
  • FIG. 25 is a flowchart of the image restoration device in the image restoration device 40 of FIG.
  • This image restoration device is a process for decoding the original image data from the code data compressed for each block unit by the image compression process shown in FIGS. 15 and 16, and the original image data is decoded in the block order shown in FIG. 11. The image is restored.
  • the processing procedure of this image restoration processing is as follows.
  • the reference block number of each block in the decoded block line that is, the presence / absence and position of the reference block are decoded.
  • Step S5 The presence or absence of a reference block for the block i in the block line is identified by referring to the reference block information decoded in step S2. If a reference block exists, the process proceeds to step S5. If no reference block exists, the process proceeds to step S5. Proceed to step S6. Step S5:
  • the block number i is compared with the number of blocks BLK-NUM in the block line, and if they match, it is determined that all blocks in the block line have been restored, and the process proceeds to step S8. Determines that there remains a block for which decoding has not been completed, and returns to step S4.
  • step S1 If the decoding process has been completed for all the block lines, the decoding process is completed; otherwise, the process returns to step S1.
  • the determination as to whether or not the decoding processing of all the block lines in step S8 has been completed may be made by counting the number of decoded blocks or by a code indicating the end. Is also good.
  • the compression side adds the number of block lines to the beginning of the code data on the compression side, and adds the number of block lines to the end of the code data when determining by decoding indicating the end. This can be achieved by adding a sign indicating the end.
  • the binary bit map data is compressed and transferred to the printer connected to the personal computer, and the data is restored and printed on the printer.
  • the present invention is not limited to this, and can be applied as it is to an appropriate object such as facsimile for transferring binary bitmap data.
  • the present invention includes appropriate modifications that do not impair the objects and advantages thereof, and is not limited by the numerical values shown in the above embodiments.
  • the image is divided into block units and exclusive OR (XOR) is performed with the neighboring blocks, so that the code in the image is obtained.
  • XOR exclusive OR
  • the number of black pixels to be converted can be reduced, and the compression efficiency of an image can be improved.
  • Scan in the main scanning direction and sub-scanning direction Combining this with a compression method that separates the area containing black pixels and the other areas and encodes each as an element, the line that scans in the main scanning direction with the height of the block that performs exclusive OR By setting the integral multiple of the number, the compression ratio can be further improved.

Abstract

画像圧縮は、入力画像を縦横所定の画素数のブロックに分割し、分割されたブロックを主走査方向および副走査方向に走査して順番に処理ブロックとして選択し、選択されたブロックとの位置関係及び画素値の関係が所定の条件を満たすブロックを参照ブロックとして選択する。続いて処理ブロックと参照ブロックの画素値を排他的論理和(XOR)して差分画像を生成し、差分画像が所定の条件を満たす場合に処理ブロックを差分画像に置き換える。更に、ブロック置換を実行して得られた差分画像像を処理ブロックに含む画像を符号化し、この画像符号化を実行して得られた符号データ、ブロック置換を実行して得られた各処理ブロックの差分画像への置換有無、および参照ブロックの位置情報とを組み合わせて出力する。画像復元は、符号データから差分画像を含む画像を復号し、この復号画像をブロック分割した処理ブロックと参照ブロックとの排他的論理和(XOR)により元の画像を復号する。

Description

明 細 書 画像圧縮方法、 画像復元方法、 プログラム及び装置 技術分野
本発明は、 ビットマップ画像を圧縮してプリンタ等に転送した後に復元する画 像圧縮方法、 画像復元方法、 プログラム及び装置に関し、 特に、 クラデーシヨン のような画像変化を高圧縮可能な画像圧縮方法、 画像復元方法、 プログラム及び 装置に関する。 背景技術
近年、パソコンなどの情報機器が普及し、 様々な用途に使用されている。特に、 パソコンで画像を処理する場合が多く見られ、 パソコンにプリンタを接続し、 画 像を印刷したり、 インタ一ネットなどのネットワークを介して画像データを転送 するなどの処理が行われている。 しかし、 画像が複雑になればなるほど、 バソコ ンからプリン夕への画像データの転送や、 ネットワークを介しての画像データの 転送に時間がかかり過ぎるようになり、 画像デ一夕を圧縮して転送することが望 まれる。 このためフォントを持たないプリン夕にビットマップ画像を直接転送し て印刷を行う場合に、 画像データを圧縮することによって、 送信すべきデータの *が少なくなり、転送時間を節約できるものである。 この場合、画像データには、 カラーのものや、 グレースケールのものなどがあるが、 以下では、 これらの画像 データを 2値化した 2値化ビットマップ画像の圧縮方法について述べる。
従来の 2値ビットマップ画像の圧縮方法としては MH (Modified Huffman) や MR (Modified READ)、 MMR (Modified Modified READ)、 JBIG (Joint Bi-Level Image Experts Group)等があり、 FA 通信や画像フアイリングに広く 使用されている。
これらの圧縮方法はビット処理を多用するなど高速な符号化処理に向かないこ と力、ら、高速処理を狙った「ビットマップデータの圧縮方法及び圧縮装置」 (日本 国特許第 3 2 7 8 2 9 8号) を提案している。 この画像圧縮方法では、 文字を主 体とするビットマップは効率良く圧縮できる反面、 ディザ画像の圧縮効率が低い という問題がある。 このため、 本願発明者は、 同じパターンが連続して繰り返し 現れる一様なディザ画像の圧縮率を高める圧縮方法を提案している (日本国特許 出願:特願 2 0 0 1 - 3 8 8 9 3 1号)。
しかしながら、 本願発明者が提案している圧縮方法は、 パターンの形状が変化 せずに周期的に繰り返す一様なディザ画像は効率良く圧縮できる反面、 グラデー シヨンのようにパターンの形状が連続的に変化するディザ画像の場合には全く圧 縮できないという問題があつた。 発明の開示
本発明は、 パターンの形状が連続的に変化するディザ画像の圧縮効率を高める 画像圧縮方法、 画像復元方法、 プログラム及び装置を提供することを目的として いる。
(圧縮方法)
本発明は画像圧縮方法を提供するものであり、
ブロック分割部により、 入力画像を縦横所定の画素数のプロックに分割する分 割ステップと、
処理プロック選択部により、 分割されたプロックを主走査方向および副走査方 向に走査して順番に処理プロックとして選択する処理プロック選択ステツプと、 参照ブロック選択部により、 処理ブロック選択ステップで選択されたブロック との位置関係及び画素値の関係が所定の条件を満たすプロックを参照プロックと して選択する参照ブロック選択ステツプと.
差分画像生成部により 前記処理プロックと参照プロックの画素値を排他的論 理和 (XOR) して差分画像を生成する差分画像生成ステップと、
プロック置換部により、 差分画像が所定の条件を満たす場合に処理プロックを 差分画像に置き換えるブロック置換ステツプと、
を備えたことを特徴とする。
更に本発明の画像圧縮方法は、
画像符号化部により、 プロック置換ステツプを実行して得られた画像を符号化 する画像符号化ステップと、
符号出力部により、 画像符号化ステップを実行して得られた符号デ一夕と、 ブ 口ック置換ステツプを実行して得られた各処理プロックの差分画像への置換有無 および参照ブロックの位置情報とを組み合わせて出力する出力ステップと、 を備えたことを特徴とする。
このように本発明は、 画像符号化ステップで画像を符号化するための前処理と して、 画像を縦横 (N X M) 画素のブロックに分割して各ブロックをその近傍ブ ロックと排他的論理和(XO R)を行い、 画像内の符号化すべき黒画素の個数を削 減することで圧縮効率を高める。 即ち、 ブロック間の画素値に排他的論理和 (X O R) を適用して差分画像を生成すると、 両ブロックの同一位置の画素値が異な る部分、 即ち白画素対黒画素、 または黒画素対白画素となる部分だけが黒画素と して残る。 このため、 グラデーションのようにパターンの形状が連続的に変化す るディザ画像の場合、 隣接するブロック間の画素値の相関が高いほど差分画像の 黒画素が少なくなり、 同一画素値のプロックの場合には差分画像内は全て白画素 となる。 画像符号化ステップの処理では、 一般的に画像内の黒画素を符号化する ため黒画素数が少ないほど圧縮率が高くなり、 画像符号化前にプロック間の排他 的論理和 (X O R) を適用することで、 符号化対象となる黒画素の個数が減り、 画像の圧縮率が高まる。
ここで参照ブロック選択ステップは、 処理ブロック選択ステップにより既に選 択された処理済みプロックの中から現在の処理プロックに近いプロックを参照ブ ロックとして優先して選択する。 このように圧縮時に、 排他的論理和 (X O R) の処理を終えたブロックの中から前方参照により参照プロックを選択することで、 入力された画像を順次ブロックに分割し、 排他的論理和 (XO R) を適用するこ とで符号化処理を進めることができ、 このため画像全体の入力の完了を待たずに 圧縮処理を先行して開始できる。
また復元時には、 符号データから差分画像のブロックが復号される毎に、 既に 差分画像から復号された復元済みの参照プロックとの排他的論理和 (XO R) の 処理が実行でき、 全ブロック復元後に再度先頭ブロックから排他的論理和 (X O R) 処理を実行するような 2パス式の処理を必要とせず、 より早く復元画像が得 られ、 復号が完了した画像から先行してプリン夕で印刷するなど、 復元画像を使 用する側の待ち時間が短縮する。
画像置換ステップは、 差分画像生成ステップを実行した結果に基づいて処理ブ ロックと参照プロックとの画素差が所定の個数以上の場合には処理プロックの差 分画像への画素値の置き換えを行わない。 これは処理ブロックと参照ブロックの 画像が大きく異なる場合には、 差分画像内の黒画素数が多くなり圧縮効率が低下 することを考慮したもので、 処理プロックに最も近い隣接プロックから順番にブ ロックを選択して処理ブロックと排他的論理和 (X O R) を行い、 得られた差分 画像内の黒画素数が所定の個数以下であり、 かつ黒画素数が最小になるプロック を参照ブロックとして選択することにより、 処理ブロックとの画素差がもっとも 小さくなる参照ブロックが選択され、 排他的論理和 (X O R ) 後の差分画像内の 黒画素が最小となり符号化効率が高まる。
処理プロック選択ステツプは、 選択したプロックの画素値が予め定めた所定の パターンに合致する場合には、 この処理プロックと参照プロックとの排他論理和 の処理をスキップする。 これは黒画素が含まれないブロックや、 各列の画素値が 全て同一であるブロック等は、 参照ブロックと排他的論理和 (X〇R) しなくて も、 その後に適用する画像符号化ステップの符号化で効率良く圧縮できる場合が あることを考慮したものであり、 このように後段の画像符号化により高圧縮でき ることが予め分かっているブロックについては排他的論理和 (X O R) 処理を適 用しないようにすることで、 排他的論理和 (X O R) による処理負荷を低減し圧 縮効率の低下を防ぐ。
分割ステップは、 プロックの横画素数および縦画素数を 8の倍数とする。 これ により本発明の圧縮方法を実行する処理装置に搭載する中央処理装置(C P U)の 内部レジスタのビット長とブロックの縦画素数 M及び又は横画素数 Nを一致させ、 必要最小限の処理ステップ数でブロック間の画素値の排他的論理和 (X O R) 処 理を実行する。 一般的に C P Uの内部レジス夕のビット長は 8の倍数であること から、 ブロックの縦横画素数も、 それに合わせて 8の倍数に設定する。
処理ブロックを参照ブロックとの排他的論理和 (X O R) により生成された差 分画像に置き換える画像置換ステップに続いて実行される画像符号ィ匕ステップは、 差分画像の処理プロックを含む画像を主走査方向に走査することにより、 任意 の整数である K行単位に黒画素を含む領域と黒画素を含まない領域に分離する第 1領域分離ステップと、
第 1領域分離ステツプで得られた黒画素を含む Kの整数倍である N行として定 義される論理行を、 主走査方向と交差する副走査方向に走査することにより、 1 列単位に黒画素を含む領域と黒画素を含まない領域とに分離する第 2領域分離ス テツプと、
第 1領域分離ステツプおよび第 2領域分離ステツプで得られた各領域を要素と して符号化する符号化ステップと、
を備えたことを特徵とする。 このように本発明は、 排他的論理和 (X O R) によ り生成された差分画像を処理ブロックに含む画像を対象に、 更に、 所定のライン 数 Kで主走査方向に走査して黒画素を含む領域を論理行 (l ogi cal l i ne) として 分離し、 この論理行を副走査方向に走査して黒画素を含む領域とそれ以外の領域 に分離してそれぞれを要素として符号化する圧縮方法と組み合わせて、 さらに圧 縮効率を高める。 このような 2段階の圧縮により、 最初に行う排他的論理和 (X O R) による差分画像の生成による圧縮は、 後に行う符号化の前処理に位置付け られる。
本発明は、 排他的論理和 (X O R) による差分画像の生成と、.続いて行う符号 化とにより生成された画像圧縮データから画像を復元する復元方法を提供する。 この画像復元方法は、
符号入力部により、 所定の符号データ、 各処理ブロックの差分画像への置換有 無 および参照プロックの位置情報の組み合わせを含む画像圧縮データを入力す る人カステツづこ、—
画像復号部により、 入力された前記符号データを画像に復号する画像復号ステ ップと、
プロック復号部により、 画像復号ステツプの復号画像を縦横所定の画素数の処 理ブロックに分割し、 差分画像に置き換えられた処理プロックと参照プロックの 画素値を排他的論理和 (XOR) して処理ブロックの画素値と置き換えて復号する ブロック復号ステップと、 を備えたことを特徴とする。 本発明の圧縮方法で符号化された符号データから元 の画像への復元は、 まず符号デ一夕から排他的論理和 (XOR) を適用した画像を 復号しだ後、ブロック分けした各ブロックについて圧縮時に排他的論理和(XOR) した同じ位置の参照ブロックと再び排他的論理和 (XOR) することで元のブロッ クを復元する。 このように排他的論理和 (XOR) 演算は 2回実行すると完全に元 のデータに戻る性質があり、 画像の劣化が無く完全に元通りに復元される。
(プログラム)
本発明は、 画像圧縮のためのプログラムを提供する。 この画像圧縮用のプログ ラムは、 コンピュータに、
入力画像を縦横所定の画素数のプロックに分割する分割ステツプと、 分割されたプロックを主走査方向および副走査方向に走査して順番に処理プロ ックとして選択する処理プロック選択ステツプと、
処理プロック選択ステツプで選択されたプロックとの位置関係及び画素値の関 係が所定の条件を満たすプロ Vクを参照プロックとして選択する参照プロック選 択ステップと、
処理ブロックと参照ブロックの画素値を排他的論理和 (XOR) して差分画像を 生成する差分画像生成ステツプと、
差分画像が所定の条件を満たす場合に処理プロックを差分画像に置き換えるブ ロック置換ステップと、
を実行させることを特徵とする。
更に本発明のプログラムは、 コンピュータに、
プロック置換ステツプを実行して得られた画像を符号化する画像符号化ステツ プと、
画像符号化ステツプを実行して得られた符号データと、 プロック置換ステツプ を実行して得られた各処理プロックの差分画像への置換有無および参照プロック の位置情報とを組み合わせて出力する出力ステップと、
を実行させる。
本発明は、 画像圧縮データを復元するためのプログラムを提供する。 この画像 復元用のプログラムは、 コンピュータに、 所定の符号データ、 各処理ブロックの差分画像への置換有無、 および参照プロ ックの位置情報の組み合わせを含む画像圧縮データを入力する入カステツプと、 入力された符号デ一夕を画像に復号する画像復号ステツプと、
画像復号ステツプの復号画像を縦横所定の画素数の処理プロックに分割し、 差 分画像に置き換えられた処理プロックと参照プロックの画素値を排他的論理和 (XOR) して処理プロックの画素値と置き換えて復号するプロック復号ステツプ と、
を実行させることを特徴とする。 なお、 本発明のプログラムの詳細は画像圧縮方 法及び画像復元方法の場合と基本的に同じになる。
(装置)
本発明は、 画像圧縮装置を提供する。 この画像圧縮装置は、 入力画像を縦横所 定の画素数のプロックに分割するプロック分割部と、 分割されたプロックを主走 査方向および副走査方向に走査して順番に処理プロックとして選択する処理プロ ック選択部と、 処理プロック選択部で選択されたブロックとの位置関係及び画素 値の関係が所定の条件を満たすプロックを参照プロックとして選択する参照プロ ック選択部と、 処理ブロックと参照ブロックの画素値を排他的論理和 (XOR) し て差分画像を生成する差分画像生成部と、 差分画像が所定の条件を満たす場合に 処理プロックを差分画像に置き換えるプロック置換部と、 プロック置換部を実行 して得られた画像を符号化する画像符号化部と、 画像符号化部を実行して得られ た符号データと、 ブロック置換部を実行して得られた各処理ブロックの差分画像 への置換有無および参照ブロックの位置情報とを組み合わせて出力する符号出力 部とを備えたことを特徴とする。
本発明は、 画像庄縮装置から出力された画像圧縮データを復元する画像復元装 置を提供する。 この画像復元装置は、 所定の符号データ、 各処理ブロックの差分 画像への置換有無、 および参照ブロックの位置情報の組み合わせを含む画像圧縮 データを入力する符号入力部と、 入力された符号データを画像に復号する画像復 号部と、 画像復号部の復号画像を縦横所定の画素数の処理ブロックに分割し、 差 分画像に置き換えられた処理プロックと参照プロックの画素値を排他的論理和 (XOR) して処理プロックの画素値と置き換えて復号するプロック復号部とを備 えたことを特徴とする。なお、本発明の画像圧縮装置及び画像復元装置の詳細は、 画像圧縮方法及び画像復元方法の場合と基本的に同じになる。 図面の簡単な説明
図 1は本発明が適用される装置環境の説明図;
図 2は本発明による画像圧縮装置の機能構成のブロック図;
図 3は本発明の圧縮時におけるプロックの排他論理和処理の説明図;
図 4は本発明による画像圧縮処理の概略フロ一チャート;
図 5は本発明が適用されるコンピュータのハ一ドゥエァ環境の説明図; 図 6は本発明による画像復元装置の機能構成のブロック図;
図 7は本発明の復元時におけるプロックの排他論和処理の説明図;
図 8は本発明による画像復元処理の概略フローチャート;
図 9は入力画像のブロック分割と処理ブロック及び参照ブロックの説明図; 図 1 0はブロックラインと論理行のライン数との関係の説明図;
図 1 1は本発明の画像圧縮におけるブロック処理の順番の説明図;
図 1 2は本発明における参照プロックの選択順序を指定するテンプレートの説明 図;
図 1 3は本発明におけるプロックライン単位の画像圧縮処理の説明図; 図 1 4は本発明におけるプロックライン単位の画像復元処理の説明図; 図 1 5は本発明による画像圧縮処理のフローチヤ一ト;
図 1 6は図 1 5に続く画像圧縮処理のフローチャート;
図 1 7は排他論理和したブロックのプロックラインバッファへの格納位置の説明 図;
図 1 8は参照プロック位置格納テーブルの説明図;
図 1 9は参照プロック位置格納テーブルと符号化の説明図;
図 2 0は図 1 5及び図 1 6における参照ブロック選択処理のフローチヤ一ト; 図 2 1は図 2 0の参照ブロック選択処理で使用される選択順序を指定するテンプ レートの説明図;
図 2 2は本発明で排他論理和を適用しない処理プロックと参照プロックの説明 図;
図 2 3は本発明によるプロックの排他論理和処理が行われた画像処理の例の説明 図;
図 2 4は図 2 3で排他論理和処理をとるブロックと参照ブロックの対応関係の説 明図;
図 2 5は排他論理和処理された画像を符号化する符号化処理のフローチャート; 図 2 6は図 2 5の符号化による画像圧縮の説明図;
図 2 7は本発明による画像復元処理のフローチャート; 発明を実施するための最良の形態
図 1は、 本発明による画像圧縮方法及び画像復元方法が適用される装置環境の 説明図である。 本発明の画像圧縮装置 1 0はパーソナルコンピュータ 1 1にプロ グラムとして実装されており、 プリン夕 1 2側に本発明の画像復元装置 4 0を設 けている。 画像圧縮装置 1 0は、 パーソナルコンピュータ 1 1で印刷のために生 成した 2値のビットマツプデ一夕を画像デ一夕として入力し、 この画像データを 圧縮してプリンタ 1 2の画像復元装置 4 0に転送する。 プリンタ 1 2はフォント を持たないプリン夕であり、 パーソナルコンピュータ 1 1からビッ卜マップ画像 の直接転送を受けて印刷を行うもので、 画像復元装置 4 0を設けることで、 本発 明の画像圧縮装置 1 0から転送された画像圧縮デ一夕を復元して印刷することに なる。
図 2は、 本発明による画像圧縮装置の機能構成のブロック図である。 図 2にお いて、 本発明の画像圧縮装置 1 0は バッファメモリ 1 4、 前処理部 1 5及び画 像圧縮部 1 6を備える。 バッファメモリ 1 4にはプリン夕に転送する 2値ビット マップデ一夕が保持される。 画像圧縮装置 1 0にあっては、 前処理部 1 5による 圧縮と画像圧縮部 1 6による圧縮との 2段階の圧縮を行って、 プリンタ 1 2に圧 縮された画像データを転送する。 前処理部 1 5には、 ブロック分割部 1 8、 処理 プロック選択部 2 0、 参照プロック選択部 2 2、 差分画像生成部 2 4及びプロッ ク置換部 2 6が設けられる。 また画像圧縮部 1 6には、 画像符号化部 2 8と符号 出力部 3 0が設けられる。前処理部 1 5内の各処理部の機能は、次のようになる。 ブロック分割部 1 8は、 バッファメモリ 1 4に保持した入力画像を縦横所定画素 数、 例えば横画素数 M、 縦画素数 Nの (MX N) 画素数のブロックに分割する。 処理プロック選択部 2 0は、 分割されたプロックを主走查方向及び副走査方向に 走査して、 順番に処理ブロックとして選択する。 参照ブロック選択部 2 2は、 処 理ブロック選択部 2 0で選択されたブロックとの位置関係及び画素値の関係が所 定の条件を満たすプロックを参照プロックとして選択する。 この参照プロックの 選択につき本発明にあっては、 処理ブロック選択部 2 0において既に選択された 処理済ブロックの中から、 現在の処理ブロックに近いブロックを参照ブロックと して優先的に選択している。 差分画像生成部 2 4は、 選択された処理ブロックと 参照プロックの画素値を排他的論理和 (XO R) して差分画像を生成する。 プロ ック置換部 2 6は、 差分画像生成部 2 で生成した差分画像が所定の条件を満た す場合に、 現在の処理プロックを生成した差分画像に置き換える。 この場合の差 分画像の処理プロックへの置き換えとしては、 処理プロックと参照プロックとの 画素数の差が所定個数以上の場合には排他的論理和による圧縮に適していないこ とから、 処理ブロックの差分画像への置き換えは行わない。 一方、 処理ブロック 選択部 2 0にあっても、 選択したブロックの画素値が予め定めた所定のパ夕一ン に合致する場合、 具体的には排他的論理和を行っても圧縮が望めない場合には、 それ以降の処理を行わず、 処理ブロックをそのまま出力する。 またブロック分割 部 1 8における入力画像の横画素数 M及び縦画素数 Nは、 C P Uの内部レジス夕 のビット長に適合させるため、 8の倍数としている。
次に画像圧縮部 1 6の各処理部は次の機能を有する。 画像符号化部 2 8は、 前 処理部 1 5のプロック置換部 2 6より得られた差分画像をプロックに含む画像を 符号化する。 この符号化は、 本願発明者等が既に出願している日本特許出願の特 願 2 0 0 1— 3 8 8 9 3 1の画像圧縮方法を適用する。 符号出力部 3 0は、 画像 符号化部 2 8の処理で得られた符号データと、 前処理部 1 5のブロック置換部で 得られた各処理プロックの差分画像への置換の有無、 及び差分プロックの位置情 報とを組み合わせて、 画像圧縮データとして例えばプリンタ 1 2に転送する。 図 3は、 本発明の圧縮時におけるプロックの排他的論理和処理のプロック画像 を用いた説明図である。 図 3において、 処理ブロック 3 2は、 この例では縦横画 素 MXN=8 X 8とした場合を例にとっており、 現在、 処理対象となっている処 理ブロック 32に対し、 既に処理済のブロックの中から選択された参照ブロック 34との間で排他的論理和 (XOR) 36をとることにより、 差分画像 38を生 成している。 このような処理ブロック 32と参照ブロック 34の同じ画素位置の 画素についての排他的論理和をとつた場合には、 両ブロックの同一位置の画素値 が異なる部分、 即ち白画素対黒画素または黒画素対白画素の部分だけが差分画像 38の中に黒画素として残る。 このため、 グラデーションのようにパターン形状 が連続的に変化するディザ画像にあっては、 隣接ブロック間の画素値の相関が高 く、 相関が高いほど差分画像の黒画素は少なくなり、 同一画素配置のブロックの 場合には差分画像内は全て白画素となり高圧縮ができる。
図 4は、 図 2の画像圧縮装置 10における画像圧縮処理の概略フローチャート である。 この画像圧縮処理にあっては、 まずステップ S 1で入力画像をブロック 分割した後に、 順番に処理ブロックを選択し、 処理ブロックに対し選択された参 照ブロックと排他的論理和 (XOR) を行って差分画像を生成する。 次にステツ プ S 2で、 排他的論理和 (XOR) を行った各ブロックの参照ブロックの位置情 報を符号化する。 続いて、 ステップ S 3で排他的論理和 (XO ) した後の画像 を符号化し、 ステップ S 2で得られた参照ブロック位置情報と併せて入力画像に 対する符号化データとして出力する。
図 2における本発明の画像圧縮装置は, 例えば図 5のようなコンビュ一夕のハ —ドウエア資源により実現される。 図 5のコンピュータにおいて、 CPU200 のバス 201には RAM202、ハ一ドデイスドコントローラ (ソフ卜) 204、 フロッピィディスクドライバ(ソフト) 210, CD— ROMドライバ(ソフト) 214, マウスコントローラ 2 18、 キ一ボードコントローラ 222 ディスプ レイコントローラ 226、 通信用ボード 230、 プリン夕ドライバ 234が接続 される。 ハードディスクコントローラ 204はハードディスクドライブ 206を 接続し、 本発明のデータ圧縮処理を実行するアプリケーションプログラムをロー ディングしており、 コンピュータの起動時にハードディスクドライブ 206から 必要なプログラムを呼び出して、 RAM202上に展開し、 CPU200により 実行することにより画像圧縮を行う。 フロッピィディスクドライバ 210にはフ 口ッピィディスクドライブ(ハード) 2 1 2が接続され、フロッピィディスク(R) に対する読み書きができる。 C D— R OMドライバ 2 1 4に対しては、 C Dドラ イブ (ハード) 2 1 6が接続され、 C Dに記憶されたデータやプログラムを読み 込むことができる。 マウスコントローラ 2 1 8はマウス 2 2 0の入力操作を C P U 2 0 0に伝える。 キーポ一ドコント口一ラ 2 2 2はキーボード 2 2 4の入力操 作を C P U 2 0 0に伝える。 ディスプレイコントローラ 2 2 6は表示部 2 2 8に 対して表示を行う。 通信用ボード 2 3 0は通信回線 2 3 2を使用し、 インターネ ット等のネットワークを介して他のコンピュータやサーバとの間で通信を行う。 プリン夕ドライバ 2 3 4は本発明の画像圧縮装置により画像圧縮された符号デー 夕をプリン夕 1 2に転送し、 プリンタ 1 2側に設けた本発明の画像復元装置で符 号データを復元して印刷させる。
図 6は、 本発明による画像復元装置の機能構成のブロック図である。 図 6にお いて、 本発明の画像復元装置 4 0は例えばプリン夕 1 2側に設けられており、 図 2の画像圧縮装置 1 0力、ら転送された画像圧縮デー夕から画像を復元し、 プリン 夕エンジン 1 3 8に供給して、プリンタ機構部 1 4 0により印刷動作を行わせる。 画像復元装置 4 0には、 バッファメモリ 4 2、 符号入力部 4 4、 画像復号部 4 6 及びプロック復号部 4 8が設けられている。 符号入力部 4 4は画像圧縮装置側か ら転送された画像圧縮デ一夕を入力するもので、 この画像圧縮データは所定の符 号データ、 各処理プロックの差分画像への置換の有無、 及び参照プロックの位置 情報の組合せが含まれている。 画像復号部 4 6は、 入力された符号デ一夕を画像 に復号する。 この復号処理は、 本願発明者が既に提案している日本特許出願の特 願 2 0 0 1— 3 8 8 9 3 1により圧縮された符号データの復元処理である。 プロ ック復号部 4 8は、 画像復号部 4 6で復号された画像を縦横所定画素数、 即ち画 像圧縮側と同じ例えば (M X N) = 8 X 8画素の処理プロックに分割し、 差分画 像に置き換えられた処理プロックと参照プロックの画素値を排他的論理和 (X O R) して処理ブロックの画素値と置き換えることで、 処理ブロックを復号する。 図 7は、本発明の復元時におけるプロックの排他的論理和処理の説明図である。 この復元時の排他的論理和処理は、 図 3の圧縮時における排他的論理和処理で得 られた差分画像 3 8の復元である。 差分画像 3 8の排他的論理和 (X O R) 5 4 を行うためには、 圧縮側から送られてきた参照プロックの位置情報により既に復 元が済んだ処理ブロックの中から参照ブロック 5 2を選択する。 この参照プロッ ク 5 2は図 3の圧縮側における参照ブロック 3 4と同じである。 そして、 差分画 像 3 8と参照ブロック 5 2の排他的論理和 (XO R) 5 4を行うと、 元のブロッ ク 5 6が復元され、 これは図 3の圧縮前の処理ブロック 3 2と同じである。 この ように本発明にあっては、処理プロックに対し同じ参照プロックを使用して 2回、 排他的論理和 (X O R) の演算を実行すると、 完全に元のデータに戻るという性 質を利用し、 画像を劣化することなく完全に元通りに復元させることができる。 図 8は、 本発明による画像復元処理の概略フロ一チャートである。 この復元処 理にあっては、 ステップ S 1で排他的論理和 (XO R) された画像を復号した後、 ステップ S 2で参照ブロックの位置情報を復号し、 更にステップ S 3で各プロッ クを参照ブロックの位置情報に基づいて排他的論理和処理 (XO R) を行うこと で元の画像を復元している。
続いて図 2の画像圧縮装置 1 0における前処理部 1 5及び画像圧縮部 1 6にお ける各処理を詳細に説明する。 図 9は、 図 2の前処理部 1 5におけるブロック分 割と分割後の処理ブロック及び参照ブロックの説明図である。 図 9において、 処 理対象とする入力画像 5 8は、 8の倍数となる横 M画素、 縦 N画素のブロック 6 0— 1 1〜6 0 MNに分割される。 本発明にあっては、 ブロック分割した入力画 像 5 8にっき、 横方向のブロックライン 6 2— 1〜6 2— N単位に処理を行う。 入力画像 5 8の下側には、 現在処理中の処理ブロック 6 4とこれに対し選択され て排他的論理和 (X O R) をとるための参照ブロック 6 6を示している。
図 1 0は、 入力画像におけるブロックラインと論理行のライン数との関係の説 明図である。 本発明にあっては 基本的には図 1 0 (A) のように排他的論理和 (X O R) の縦画素数 Nを論理行のライン数と同じ Kとするか、 あるいは図 1 0 (B ) のように Kの整数倍にしてブロック境界と論理行のライン境界を一致させ る。 ここで論理行とは、 図 2の画像圧縮部 1 6に設けている画像符号化部 2 8に おける本願発明者が既に提案している日本特許出願の特願 2 0 0 1— 3 8 8 9 3 1における処理概念である。 即ち、 この符号化処理にあっては、 画像を所定のラ イン数 Kで主走査方向に走査して、 黒画素を含む領域を論理行として分離し、 こ の論理行を更に副走査方向に走査して、 黒画素を含む領域とそれ以外の領域に分 離し、 それぞれ要素として符号化する圧縮を行っている。 したがって、 この場合 の論理行と本発明の排他的論理和 (X O R) のブロックの縦画素数 Nとの間に、 論理行のライン数 Kと Nを同じにするか Nを論理行の Kの整数倍とすることで、 ブロック境界と論理行のライン境界を一致させ、圧縮効率を高めることができる。 これに対し図 1 0 (C) のように、 論理行 7 2のライン数 Kとブロックライン 7 4の縦画素数 Nが整数倍の関係になく、 プロック境界と論理行のライン境界が一 致しない場合には、 排他的論理和 (X O R) を行った後の差分画像が論理行間に またがることとなり、 圧縮効率が低下する不都合を生ずる。
図 1 1は、 本発明の排他的論理和 (X O R) による画像圧縮におけるブロック 処理の順番の説明図である。 図 1 1において、 入力画像 5 8を縦横 (MX N) 画 素のブロックに分割した後、 矢印のブロック処理順序 7 6のように、 分割された プロックを主走査方向に走査した後、 次の行の先頭に戻って、 主走査方向に走査 する処理を繰り返す。 このようなブロックの処理順序 7 6に対し、 現在処理中の ブロックが処理ブロック 6 4であったとすると、 この処理ブロック 6 4との排他 的論理和 (XO R) をとるための参照ブロックは、 それ以前の処理済ブロックの 中から選択する。 このように処理ブロック 6 4に対する参照ブロックを処理済ブ ロックの中から選択することで、 画像全体の入力完了を待たずに圧縮処理を先行 して開始することができる。 復元時についても同様に、 ブロックの画像が復元さ れるごとに、 現在処理対象となっている差分画像で置き換えられたブロックと既 に復元済みの参照プロックとの間で排他的論理和 (X O R)が実行されることで、 復元処理についても 1パスでブロック復号を行うことができ、 復号が完了した画 像部分から先行してプリン夕で印刷することで 復元側での待ち時間を短縮でき 。
図 1 2は、 本発明の排他的論理和 (X O R) の処理で処理ブロックに対し選択 する参照ブロックの選択順序を指定するテンプレートの説明図である。 本発明の 処理ブロックと参照ブロックの排他的論理和 (X〇R) による差分画像にあって は、 ブロック間の画素値の相関が高いほど差分画像の黒画素が少なくなつて高圧 縮でき、 処理ブロックに隣接するブロックほど相関が高いことから、 この関係を 利用して、 処理プロックに対する処理済プロックの中から参照プロックを選択す る。 図 1 2 (A) は、 2 X 2マトリクスのテンプレート 7 8— 1であり、 処理ブ ロック 6 4に対する処理済側の上、 左、 左上の 3つのブロックを参照ブロック候 補として設定し、選択順として 1番は上、 2番は左、 3番は左上を設定している。 図 1 2 (B) は、 図 1 2 (A) に対し処理ブロック 6 4の右上を追加したテンプ レート 7 8— 2であり、 新たに追加した右上を選択順位 4番としている。 図 1 2 ( C) は、 図 1 2 (B ) に加え更に、 選択順位 5番、 6番、 7番、 8番の 3プロ ックを追加したテンプレート 7 8— 3を示している。 このテンプレートにおける 参照プロックの順番を指定する基本的な考え方は、 処理プロックに対し隣接する ブロックについては上または右に続いて左上、 右上の順番とし、 更に外側のプロ ックについては、 上、 左、. 左上、 右上の順番としている。 この図 1 2の 3種類の テンプレート 7 8— 1〜7 8— 3のうちのいずれか 1つを使用し、 処理ブロック 6 4に対し番号順に参照プロックを選択し、 選択した参照プロックとの排他的論 理和 (X O R) をとつて、 生成された差分画像の黒画素数が最小となる参照プロ ックを選択して差分画像を生成する。
図 1 3は、本発明におけるプロックライン単位の画像圧縮処理の説明図である。 本発明における画像をブロック単位で符号化する際には、図 1 1に示したように、 主走査方向及び副走査方向のラスタ走査順序に従って走査することになるが、 こ の場合、 1ブロックごとに参照ブロックと排他的論理和 (X O R) を行って符号 化できるが、 ブロックライン単位で符号化する方が効率がよい。 例えばブロック ライン単位で圧縮して符号データを出力すると、 符号データを受け取った復元側 では同じくプロックライン単位で画像を復元できるため、 画像全体の圧縮処理の 完了を待たずに復号を開始できるメリッ卜がある。 このため図 1 3のように、 画 像圧縮処理の際に入カブ口ックライン 8 0を処理対象として取り出し、 入カブ口 ックライン 8 0の先頭ブロックから順番に X O R処理を実行して、 X O R後のブ ロックライン 8 2を生成し、 その後にプロックライン 8 2を一括して画像を圧縮 し、 既に得られた参照ブロック情報の符号データ 9 0と XO R後のブロックライ ンの符号データ 8 8を復元側に転送する。 このような圧縮側でのプロックライン 単位の圧縮による符号データを受けた復元側は、 図 1 4に示す処理を行う。 図 1 4の復元処理にあっては、 ブロックライン単位の復号で得られた X O R後のプロ ックラインの符号データ 8 8と参照プロック情報の符号データ 9 0を受信した後、 X O R後のブロックラインの符号データ 8 8の画像復元 9 2を行って、 復号した ブロックライン 9 6を生成する。 続いて参照プロック情報の符号データ 9 0から 参照ブロックの位置を得て、 排他的論理和処理である X O R処理 9 4を行い、 ブ ロックごとに XO Rしたブロックライン 9 8の各ブロックのデータを順次復号す る。 このブロックライン 9 8の画像復元が済んだ段階で、 プリンタ側でプロック ライン単位の印刷動作ができる。
図 1 5及び図 1 6は、 ブロックライン単位で画像圧縮を行う本発明による画像 圧縮処理のフローチャートである。 この画像圧縮処理の処理手順は次のようにな る。
ステップ S 1 :
入力画像における最初のプロックラインを選択し、 プロックラインの番号を示 す変数 kに先頭のプロックラインを示す 0を設定する。
ステップ S 2 :
ブロックライン kの最初のブロックを選択し、 ブロック番号を示す番号 iに先 頭プロックを示す 0を設定する。
ステップ S 3 :
i番目のブロックが排他的論理和 (XO R) すべきブロックであるか否かを判 断する。 例えばブロック全体が全白や全黒であるなど排他的論理和 (XO R) に よる符号化効率が向上しないブロックの場合には、 排他的論理和 (X O R) しな いと判断してステップ S 5に進む。 排他的論理和 (X O R) すると判断した場合 には、 ステップ S 4に進む。
ステップ S 4 :
i番目のブロックと排他的論理和 (X〇R) すべき参照ブロックが存在するか 否かを判断し、 存在する場合にはステップ S 6に進み、 存在しない場合にはステ ップ S 5に進む。
ステップ S 5 :
別途準備している排他的論理和 (XO R) したブロックラインを格納するため のプロックラインバッファに i番目のブロックの画素値をそのまま出力した後、 次のブロックを選択するためにステップ S 8に進む。
ステップ: 5り :
i番目のブロックと参照ブロックの画素の排他的論理和 (X O R) を行ってブ ロックラインバッファに出力する。 なお、 ステップ S 5 , S 6におけるブロック ラインバッファへの出力は、 図 1 7のようにブロックライン kにおける i番目の ブロックと同じブロックラインバッファ 8 2の位置に参照ブロック 6 6との排他 的論理和 (XO R) で得られた画素値を出力する。
ステップ S 7 :
参照プロックの位置を参照プロック位置格納テ一ブルに追加する。 参照プロッ クの位置は図 1 2に示した参照ブロックテンプレートのブロック選択順序を示す 番号を用いることができる。
ステップ S 8 :
次のブロックを選択し、 ブロック番号 iに 1を加える。
ステップ S 9 :
ブロック番号 iとブロックライン内のブロック数 B L K—NUMを比較し、 両 者が一致すればブロックライン内の全ブロックの排他的論理和 (XO R) が完了 したと判断してステップ S 1 0に進み、不一致の場合には排他的論理和(X O R) 処理が終わつていないと判断してステップ S 3に戻る。
ステップ S 1 0 :
Figure imgf000018_0001
内の画像と参照プロック位置格納テーブル内に格納さ れた位置情報をそれぞれ符号化し、 プロックライン kの符号データとして出力す る。
ステップ S 1 1 :
次のブロックラインを選択し、 ブロックライン番号 kに 1を加える。
ステップ S 1 2 :
プロックライン番号 kと入力画像内のブロックライン数 L I N E— NUMを比 較し、 両者が一致すれば全ブロックラインの符号化処理が完了したと判斬して処 理を終了し、 不一致の場合には符号化処理を終わっていないブロックラインが存 在すると判断してステップ S 2に戻る。
図 1 8は、 図 1 5及び図 1 6のステップ S 7で使用される参照ブロック位置格 納テーブル 1 0 0の説明図である。この参照ブロック位置格納テーブル 1 0 0は、 処理プロック番号、 参照プロック有無及び参照プロック番号の格納領域を持ち、 処理ブロック番号はブロックライン内の全ブロックに対応して番号 0〜 (プロッ ク数— 1 ) を割り当て、 それぞれに対応して参照ブロック番号の有無と参照プロ ック番号を格納する。 参照ブロック番号の有無には、 存在する場合には 1、 存在 しない場合には 0を書き込む。
図 1 9は、 図 1 5及び図 1 6の圧縮処理により生成された 1ブロックラインの 参照ブロック位置格納テーブル 1 0 0の具体例であり、 処理ブロック番号として 0〜1 1の 1 2プロックを 1プロックラインとした場合を例にとっている。 また 参照プロック有無は、 参照プロックが存在すれば 1、 存在しない場合には 0とな つており、 更に参照ブロック番号としては、 参照ブロックとして選択した処理ブ 口ック番号の数値を格納している。 このような参照プロック位置格納テーブル 1 0 0についての図 1 5及び図 1 6のステップ S 1 0における符号化方法としては、 参照ブロックが存在しないブロック数をオフセット値として符号化し、 参照プロ ックが存在する場合には参照プロック番号とその連続参照回数を組み合わせて符 号^:する。 例えば図 1 9において、 処理ブロック番号 0 , 1については参照プロ ック番号がないことから、 この場合には 「オフセット 2」 としている。 また処理 プロック番号 2〜 4については同じ参照プロック番号 2が連続していることから 「参照ブロック番号 = 2、 ブロック数 3」 の組合せで符号化している。 これによ り 図 1 9の参照ブロック位置格納テ一ブル 1 0 0の例では、 符号化しない場合 には 2 4個の値が必要であるのに対し 上記の方法で符号化した場合には 8個の 値で済み、 符号サイズを削減することができる。
2 0、 図 1 5及び図 1 6のステップ S 3における参照ブロック選択処理の詳細 を示したフローチャートである。 この図 2 0の処理にあっては参照ブロック自体 が排他的論理和 (X O R) すべきブロックであるか否か、 参照プロックと排他的 論理和 (X O R) をとる処理ブロックの画素値の関係及ぴ画素差に基づいて参照 ブロックを選択する。 そこでこの参照ブロック選択処理の手順を説明すると次の ようになる。
ステップ S 1 :
参照プロック番号を表す変数 rに最初の参照プロック番号を示す 1を設定し、 選択された参照プロック番号を表す変数 sに参照プロックが未選択であることを 表す 0を設定する。 また差分画素の個数の最小値を格納する Dm i nに画素差が 最大である値を示す位置ブロックの総画素数 (=横画素数 M X縦画素数 N) を設 定する。
ステップ S 2 :
参照ブロック rが排他的論理和 (X O R) すべきブロックであるか否かを判断 し、 排他的論理和 (X O R) すると判断した場合にはステップ S 3に進み、 しな いと判断した場合にはステップ S 7に進む。
ステツフ S 3 :
処理ブロックと参照ブロック rとの間で同一位置にある画素値を比較し、 異な る画素値の個数 Dを数える。
ステップ S 4 :
画素差 Dと予め定めておいた最大画素差 MAX— D I F Fとを比較し、 画素差 Dが最大画素差 MAX一 D I F F以下である場合には画素差が所定に範囲内にあ ると判断してステップ S 5に進み、 'それ以外に場合には画素差が所定の範囲内に ないと判断してステップ S 7に進む。
ステップ S 5 :
処理プロックに対し画素差が最も少ない参照プロックを選択するために、 参照 画素差を格納する Dm i nとステップ S 3で取得した画素差 Dとを比較し、 画素 差 Dが最小画素差 Dm i nより小さい場合には参照プロック rと処理プロックと の画素差がより小さいと判断してステップ S 6に進み、 それ以外に場合には参照 ブロック rは処理ブロックとの画素差が最小ではないと判断してステップ S 7に 進む。
ステップ S 6 :
処理プロックとの画素差が最小となる参照プロック番号を保持するための変数 sに参照ブロック rを格納し、 最小画素差 Dm i nにはステップ S 3で求めた処 理ブロックと参照ブロック rとの画素差 Dを格納する。
ステップ S 7 :
参照ブロック番号 rに 1を加え、 例えば図 2 0のようなテンプレート 7 8 - 3 の順番に従つて次の参照プロックを選択する。
ステップ S 8 :
参照ブロック番号 rと参照ブロックの個数 R E F„NUMを比較し、 参照ブロ ック番号 rが参照ブロック個数 R E F— NUM未満の場合には全ての参照プロッ クについて選択処理が完了していないとしてステップ S 2に戻り、 それ以外の場 合には全ての参照プロックについて処理が終わつたと判断してステップ S 9に進 む。
ステップ S 9 :
sが 0より大きいか否か、 即ち rに選択された参照プロック番号が格納されて いるか否かを確認し、 sが 0より大きい場合には参照プロックが選択されたと判 断してステップ S 1 0に進み、 sが 0であつた場合には参照ブロックが選択され なかつたと判断してステップ S 1 1に進む。
ステップ S 1 0 :
参照プロックが存在したことを出力することに加え、 選択された参照プロック 番号 sを出力し、 参照ブロック選択処理を終了する。
ステップ S 1 1 :
参照プロックが存在しなかったことを出力して参照プロック選択処理を終了す る。
以上の処理によって図 1 5及び図 1 6のステップ S 4において処理ブロックに 対し画素差が最小となり且つ画素差が所定の個数以下である参照プロックを選択 することができる。ここで図ふわにおける参照プロックの選択基準をまとめると、 参照プロックを排他的論理和 (X O R)の対象とするか否かは 2段階で判断する。 第 1段階にあっては参照プロックが全て白画像や全て黒画像である場合などの排 他的論理和 (XO R) による符号化効率が向上しない場合には参照ブロックとし て選択しない。 第 2段階としては処理プロックと参照プロックの画素値の関係か ら、 例えば図 2ふに例として示す場合には、 排他的論理和 (XO R) 後の画素数 が多くなるため即ち画素の相違が大きくなる組み合わせの場合には符号化効率の 向上が期待できないため排他的論理和 (XO R) の対象としない。 図 2 2 (A) は処理ブロック 1 0 2が主走査方向に白から黒に変化しているのに対し、 参照ブ ロック 1 0 4は逆 (こ黒から白に変化し、参照ブロック 1 0 6は白黒の縦縞であり、 参照ブロック 1 0 8は全て黒画像の場合である。 また図 2 2 (B) の処理ブロッ ク 1 1 0は周走査方向に黒から白に変化しているのに対し、 参照ブロック 1 1 2 は逆に白から黒に変化しており、 参照ブロック 1 1 4は縦縞であり、 更に参照ブ ロック 1 1 6は全て黒画像の場合である。 更に図 2 2 (C) の例では処理ブロッ ク 1 1 8が全て黒画像であるのに対し、 参照プロック 1 2 0は縦縞、 参照ブロッ ク 1 2 2は白から黒画像への変化、 参照プロック 1 2 4は黒から白画像への変化 である。いずれの場合にも処理プロックと参照プロックについて排他的論理和(X O R) をとると、 処理後の画素数が増加してしまい、 従って、 この関係にあると きには参照ブロックを排他的論理和 (XO R) の対象としては選択しない。
図 2 3は、 本発明によるブロックの排他的論理和処理が行われた処理画像の具 体例である。 図 2 3 (A) は入力画像 1 2 6であり、 縦横 (MX N) 画素 = 8 X 8のブロックに分解された後、 図 1 1の処理順序に従つた処理プロックについて 図 2 1と同じテンプレート 7 8— 3の順番に従って参照ブロックを選択し、 排他 的論理和 (XO R) を実行することで、 図 2 3 (B) の X〇R処理画像 1 2 8を 生成している。
ここで図 2 4 (A) は図 2 3 (A) の入力画像 1 2 6をブロック分割した場合 のブロック番号 1〜8を示している。 また図 2 4 (B ) は図 2 3 (B ) の X〇R 処理画像 1 2 8を生成する際に選択した参照プロックのプロック番号を処理プロ ック番号に対する X O Rの右側の値として示している。
このような図 2 3 ( B) の X O R処理画像 1 2 8から明らかなように、 先頭の プロックについては処理済みのブロックがないことから、 入力画像 1 2 6の画素 がそのまま配置されるが、 2番目以降のブロックについては参照ブロックとの X 〇R処理により黒画像の数が大幅に低減した差分画像の配置によるブロック画像 となっている。 特に 5番目、 6番目、 7番目の 3つについては参照ブロック番号 1, 3 , 4との排他的論理和 (X O R) により両ブロックの画素配置が一致する ことで全白の画像となっている。 この図 2 3 (A) のようなパターン形状が連続 的に変化するディザ画像について、 本発明による XO R処理を行う圧縮は極めて 効果的に高圧縮できることがわかる。
図 2 5は、 図 2の前処理部 1 5に続いて画像圧縮部 1 6に設けた画像符号化部 2 8で行われる排他的論理和処理の済んだ画像を符号化する符号化処理のフロー チャートである。 この符号化処理、 即ち本発明者がすでに提案している日本特許 の出願特願 2 0 0 1— 3 8 8 9 3 1による符号化処理は次のようになる。
ステップ S 1 :
入力された排他的論理和 (X O R) 処理の済んだ画像を所定整数 Kライン単位 に水平方向に走査する (主走査方向走査)。
ステップ S 2 :
行間のように連続する空白ラインと、 空白ライン以外の領域を論理行として分 離する (第 1の領域分離)。
ステップ S 3 :
分離した論理行を 1列単位に垂直方向に走査する (副走査方向走査)。
ステップ S 4 :
文字間のように黒画像を含まない空白領域と、 空白領域以外の黒画像を含む領 域に分離する (第 2の領域分離)。
ステップ S 5 :
領域分離結果に基づいて連続して繰り返し出現する同一幅及び同一画素値を有 する反復パターンを分離する (第 3の領域分離)。
ステップ S 6 :
ステップ ステップ S 4、 ステップ S 5で分離した各領域を要素として符 号化を行う。
図 2 5は、 図 2 4における符号化処理の原理を示している。 図 2 5において、 処理対象となる入力画像 1 2 6における論理行 1 3 0の中から連続して繰り返し 出現するパターンを検出し、 繰り返しの基本となる反復パターンの長さと画素値 及びその繰り返し回数を使用して符号化することにより、 符号データサイズを削 減する。 これにより符号データは符号語、 反復回数 K、 画素幅 Μ、 反復パターン の基本パターン (Mバイト) からなる。 この図 2 6にあっては、 入力画像 1 2 6 として通常の同一形状が繰り返すディザパターンを例にとつているが、 本発明に あっては、 この入力画像 1 2 6として例えば図 2 3 (B) のような X O R処理画 像 1 2 8を対象としており、 このような X O R処理画像 1 2 8に対し、 図 2 5の 符号化処理を第 2段階の符号化処理として行うことで、 更に画像データを圧縮す ることができる。 また図 2 4の符号化処理にあっては検出した反復パターンをそ のまま符号デ一夕として出力するかわりに、 ランレングス符号化などのデータ圧 縮方法により圧縮することで、 符号データサイズを更に削減することができる。 図 2 7は、 図 6の画像復元装置 4 0における画像復元装置のフロ一チヤ一トで ある。 この画像復元装置は、 図 1 5及び図 1 6の画像圧縮処理によりプロック単 位毎に圧縮された符号データから元の画像データを復号する処理であり、 図 1 1 に示したプロック順に元の画像が復元される。 この画像復元処理の処理手順は次 のようになる。
ステップ S 1 :
1ブロックライン分の画像を復号する。
ステップ S 2 :
復号したプロックライン内の各プロックの参照プロック番号即ち参照プロック の有無及び位置を復号する。
ステップ S 3 :
復元したプロックラインの最初のブロックを選択し、 ブロック番号を示す iに 0を設定する。
ステップ S 4 :
ブロックライン内のブロック iに対する参照ブロックの有無をステップ S 2で 復号した参照プロック情報を参照して識別し、 参照プロックが存在する場合には ステップ S 5に進み、 参照プロックが存在しない場合にはステップ S 6に進む。 ステップ S 5 :
ブロックライン内のブロック iと参照ブロックの画素値を排他的論理和 (XO R) し、 排他的論理和 (X O R) で得られた画素値をブロック iの画素値に置き 換える。 ステップ S 6 :
プロックライン内で次のブロックを選択し、 ブロック番号を示す変数 iに 1を 加える。
ステップ S 7 :
ブロック番号 iとブロックライン内のブロック数 B L K—NUMを比較し、 一 致した場合にはプロックライン内の全てのプロックの復元が完了したと判断して、 ステップ S 8に進み、 不一致の場合には復号が完了していないブロックが残って いると判断してステップ S 4に戻る。
ステップ S 8 :
全てのブロックラインの復号処理が完了した場合には復号処理を完了し、 完了 していない場合にはステップ S 1に戻る。
ここで、 ステップ S 8における全てのブロックラインの復号処理が完了したか 否かの判断は復号されたプロック数を計数して判断する方法でも良いし、 終了を 示す符号で判断する方法であっても良い。 復号されたブロック数を計数して処理 終了を判断する場合には圧縮側で符号データの最初にプロックラインの個数を付 加し、 また終了を示す復号で判断する場合には符号データの最後に終了を示す符 号を付加することで実現できる。
尚、 上記の実施形態はパーソナルコンビュ一夕に接続したプリンタ側に 2値ビ ッ卜マップデータを圧縮して転送し、 プリン夕側で復元して印刷する場合を例に とるものであつたが、 本発明はこれに限定されず 2値ビットマップデータを転送 する例えばファクシミリなどの適宜の対象につきそのまま適用することができる。 また本発明はその目的と利点を損なうことのない適宜の変形を含み、 更に上記の 実施形態に示した数値による限定は受けない。 産業上の利用の可能性
以上説明してきたように本発明のビットマツプ画像の圧縮方法及び復元方法プ ログラム及び装置によれば、 画像をプロック単位に分けて近傍プロックと排他的 論理和(X O R)することで、画像内の符号化対象となる黒画素の個数を削減し、 画像の圧縮効率を向上することができる。 更に主走査方向及び副走査方向に走査 して黒画素を含む領域とそれ以外の領域に分離してそれぞれを要素として符号化 する圧縮方法と組み合わせ、 排他的論理和を行うブロックの高さをこの圧縮方法 における主走査方向に走査するライン数の整数倍とすることで、 圧縮率をより一 層向上させることができる。 この結果、 グラデーションのように連続的にパター ンが変化するディザ画像の圧縮率を高めることができ、 印刷画像に適用すること でプリン夕への転送時間が大幅に短縮され、 印刷速度の向上に大きく寄与するこ とができる。

Claims

請求の範囲
1 . ブロック分割部により、 入力画像を縦横所定の画素数のブロックに分割する 分割ステップと、
処理プロック選択部により、 前記分割されたプロックを主走査方向および副走 査方向に走査して順番に処理プロックとして選択する処理プロック選択ステツプ と、
参照プロック選択部により、 前記処理プロック選択ステツプで選択されたプロ ックとの位置関係及び画素値の関係が所定の条件を満たすプロックを参照プロッ クとして選択する参照ブロック選択ステップと、
差分画像生成部により、 前記処理プロックと参照プロックの画素値を排他的論 理和して差分画像を生成する差分画像生成ステップと、
プロック置換部により、 前記差分画像が所定の条件を満たす場合に前記処理ブ ロックを前記差分画像に置き換えるプロック置換ステツプと、
を備えたことを特徴とする画像圧縮方法。
2 . 請求の範囲 1記載の画像圧縮方法に於いて、 更に、
画像符号化部により、 前記プロック置換ステツプを実行して得られた画像を符 号化する画像符号化ステツプと、
符号出力部により、前記画像符号化ステツプを実行して得られた符号データと、 前記プロック置換ステツプを実行して得られた各処理プロックの差分画像への置 換有無および参照ブロックの位置情報とを組み合わせて出力する出力ステップと、 を備えたことを特徴とする画像圧縮方法。
3 . 請求の範囲 1の画像圧縮方法に於いて、 前記参照プロック選択ステップは、 前記処理ブロック選択ステツプにより既に選択された処理済みプロックの中から 現在の処理プロックに近いプロックを参照プロックとして優先して選択すること を特徴とする画像圧縮方法。
4. 請求の範囲 1の画像圧縮方法に於いて、 前記画像置換ステップは、 前記差分 画像生成ステツプを実行した結果に基づいて処理プロックと参照プロックとの画 素差が所定の個数以上の場合には処理ブロックの差分画像への置き換えを行わな いことを特徴とする画像圧縮方法。
5 . 請求の範囲 1の画像圧縮方法に於いて、 前記処理ブロック選択ステップは、 選択したブロックの画素値が予め定めた所定のパターンに合致する場合には、 該 処理プロックの参照プロックとの排他論理和の処理をスキップすることを特徴と する画像圧縮方法。
6 . 請求の範囲 1の画像圧縮方法に於いて、 前記分割ステップは、 ブロックの横 画素数および縦画素数を 8の倍数とすることを特徴とする画像圧縮方法。
7 . 請求の範囲 2の画像圧縮方法に於いて、 前記画像符号化ステップは、 前記差分画像の処理プロックを含む画像を主走査方向に走査することにより、 任意の整数である K行単位に黒画素を含む領域と黒画素を含まない領域に分離す る第 1領域分離ステップと、
前記第 1領域分離ステップで得られた黒画素を含む前記 Kの整数倍である N行 として定義される論理行を、 主走査方向と交差する副走査方向に走査することに より、 1列単位に黒画素を含む領域と黒画素を含まない領域とに分離する第 2領 域分離ステップと、
前記第 1領域分離ステツプおよび第 2領域分離ステツプで得られた各領域を要 素として符号化する符号化ステツプと、
を備えたこと特徴とする画像圧縮方法。
8 . 符号入力部により、 所定の符号データ、 各処理ブロックの差分画像への置換 有無、 および参照プロックの位置情報の組み合わせを含む画像圧縮データを入力 する入力ステップと、
画像復号部により、 入力された前記符号データを画像に復号する画像復号ステ ップと、
ブロック復号部により、 前記画像復号ステップの復号画像を縦横所定の画素数 の処理プロックに分割し、 差分画像に置き換えられた処理プロックと参照プロッ クの画素値を排他的論理和して前記処理ブロックの画素値と置き換えて復号する ブロック復号ステップと、
を備えたことを特徴とする画像復元方法。
9 . 請求の範囲 8記載の画像元方法に於いて、 前記各処理ブロックの差分画像へ の置換有無および参照プロックの位置情報は、
入力画像を縦横所定の画素数のプロックに分割する分割ステツプと、 前記分割されたプロックを主走査方向および副走査方向に走査して順番に処理 ブロックとして選択する処理ブロック選択ステップと、
前記処理プロック選択ステツプで選択されたプロックとの位置関係及び画素値 の関係が所定の条件を満たすブ口ックを参照プロックとして選択する参照プロッ ク選択ステップと、
前記処理プロックと参照ブロックの画素値を排他的論理和して差分画像を生成 する差分画像生成ステップと、
前記差分画像が所定の条件を満たす場合に前記処理プロックを該差分画像に置 き換えるブロック置換ステップと、
を備えた圧縮側の処理により生成されたことを特徴とする画像復元方法。
1 0 . 請求の範囲 2の画像圧縮方法に於いて、 前記画像符号データは、
前記差分画像の処理プロックを含む画像を主走査方向に走査することにより、 任意の整数である K行単位に黒画素を含む領域と黒画素を含まない領域に分離す る第 1領域分離ステツプと、
前記第 1領域分離ステップで得られた黒画素を含む前記 Kの整数倍である N行 として定義される論理行を、 主走査方向と交差する副走査方向に走査することに より、 1列単位に黒画素を含む領域と黒画素を含まない領域とに分離する第 2領 域分離ステップと、 前記第 1領域分離ステツプおよび第 2領域分離ステツプで得られた各領域を要 素として符号化する符号化ステツプと、
を備えた圧縮側の処理により生成されたことを特徴とする画像圧縮方法。
1 1 . コンピュータに、
入力画像^:縦横所定の画素数のプロックに分割する分割ステツプと、
前記分割されたプロックを主走査方向および副走査方向に走査して順番に処理 ブロックとして選択する処理ブロック選択ステツプと、
前記処理プロック選択ステツプで選択されたプロックとの位置関係及び画素値 の関係が所定の条件を満たすプロックを参照プロックとして選択する参照プロッ ク選択ステップと、
前記処理プロックと参照プロックの画素値を排他的論理和して差分画像を生成 する差分画像生成ステツプと、
前記差分画像が所定の条件を満たす場合に前記処理プロックを該差分画像に置 き換えるブロック置換ステップと、
を実行させることを特徴とするプログラム。
1 2 . コンピュータに、
所定の符号データ、 各処理ブロックの差分画像への置換有無、 および参照プロ ックの位置情報の組み合わせを含む画像圧縮データを入力する入カステツプと、 入力された前記符号デー夕を画像に復号する画像復号ステツプと、
前記画像復号ステツプの復号画像を縦横所定の画素数の処理プロックに分割し、 差分画像に置き換えられた処理プロックと参照プロックの画素値を排他的論理和 して前記処理プロックの画素値と置き換えて復号するプロック復号ステツプと、 を実行させることを特徴とするプログラム。
1 3 . 入力画像を縦横所定の画素数のブロックに分割するブロック分割部と、 前記分割されたプロックを主走査方向および副走査方向に走査して順番に処理 プロックとして選択する処理プロック選択部と、 前記処理プロック選択ステツプで選択されたプロックとの位置関係及び画素値 の関係が所定の条件を満たすプロックを参照プロックとして選択する参照プロッ ク選択部と、
前記処理プロックと参照プロックの画素値を排他的論理和して差分画像を生成 する差分画像生成部と、
前記差分画像が所定の条件を満たす場合に前記処理プロックを該差分画像に置 き換えるブロック置換部と、
前記プロック置換部を実行して得られた画像を符号化する画像符号化部と、 前記画像符号化部を実行して得られた符号データと、 前記ブロック置換部を実 行して得られた各処理プロックの差分画像への置換有無および参照プロックの位 置情報とを組み合わせて出力する符号出力部と、
を備えたことを特徴とする画像圧縮装置。
1 4. 所定の符号データ、 各処理ブロックの差分画像への置換有無、 および参照 プロックの位置情報の組み合わせを含む画像圧縮データを入力する符号入力部と、 入力された前記符号デー夕を画像に復号する画像復号部と、
前記画像復号部の復号画像を縦横所定の画素数の処理プロックに分割し、 差分 画像に置き換えられた処理プロックと参照プロックの画素値を排他的論理和して 前記処理プロックの画素値と置き換えて復号するプロック復号部と、
を備えたことを特徴とする画像復元装置。
PCT/JP2003/000888 2003-01-30 2003-01-30 画像圧縮方法、画像復元方法、プログラム及び装置 WO2004068844A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/JP2003/000888 WO2004068844A1 (ja) 2003-01-30 2003-01-30 画像圧縮方法、画像復元方法、プログラム及び装置
JP2004567528A JPWO2004068844A1 (ja) 2003-01-30 2003-01-30 画像圧縮方法、画像復元方法、プログラム及び装置
US11/038,603 US7236636B2 (en) 2003-01-30 2005-01-21 Image compression method, image restoration method, program and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2003/000888 WO2004068844A1 (ja) 2003-01-30 2003-01-30 画像圧縮方法、画像復元方法、プログラム及び装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US11/038,603 Continuation US7236636B2 (en) 2003-01-30 2005-01-21 Image compression method, image restoration method, program and apparatus

Publications (1)

Publication Number Publication Date
WO2004068844A1 true WO2004068844A1 (ja) 2004-08-12

Family

ID=32800814

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2003/000888 WO2004068844A1 (ja) 2003-01-30 2003-01-30 画像圧縮方法、画像復元方法、プログラム及び装置

Country Status (3)

Country Link
US (1) US7236636B2 (ja)
JP (1) JPWO2004068844A1 (ja)
WO (1) WO2004068844A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11308647B2 (en) 2019-01-30 2022-04-19 Snow Corporation Method and system for improving compression ratio by difference between blocks of image file
US11539955B2 (en) 2019-01-30 2022-12-27 Snow Corporation Method and system for improving compression ratio through pixel conversion of image file

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4371026B2 (ja) * 2004-09-28 2009-11-25 コニカミノルタビジネステクノロジーズ株式会社 プリントシステムおよびプリンタ
US7586649B2 (en) * 2004-12-27 2009-09-08 Konica Minolta Business Technologies, Inc. Method and device for compressing image data
JP2007306513A (ja) * 2005-07-13 2007-11-22 Konica Minolta Business Technologies Inc 画像データの圧縮方法および装置
JP2007300601A (ja) * 2006-04-07 2007-11-15 Konica Minolta Business Technologies Inc 画像データの圧縮方法およびその装置
JP2009110211A (ja) * 2007-10-29 2009-05-21 Sony Corp 情報符号化装置および方法、情報検索装置および方法、情報検索システムおよび方法、並びにプログラム
TWI415070B (zh) * 2009-03-30 2013-11-11 Innolux Corp 源極驅動器及電子系統
JP5558767B2 (ja) * 2009-09-25 2014-07-23 キヤノン株式会社 画像処理装置及びその処理方法
DE102009050020B4 (de) * 2009-10-16 2021-09-02 Carl Zeiss Microscopy Gmbh Mikroskop und Verfahren zur Detektion von Probenlicht
JP5393574B2 (ja) 2010-04-08 2014-01-22 キヤノン株式会社 画像処理装置、画像処理方法、及びプログラム
JP5595151B2 (ja) 2010-07-13 2014-09-24 キヤノン株式会社 画像処理装置、画像処理装置における圧縮方法、および、プログラム
JP5643574B2 (ja) * 2010-08-26 2014-12-17 キヤノン株式会社 画像処理装置及び画像処理方法
CN107105292B (zh) * 2010-12-13 2020-09-08 韩国电子通信研究院 基于帧间预测对视频信号进行解码的方法
US9680639B2 (en) * 2011-03-31 2017-06-13 Panasonic Intellectual Property Management Co., Ltd. Secret sharing apparatus and secret sharing method that restores secret data from at least two of generated shared data
JP6040145B2 (ja) * 2013-12-17 2016-12-07 京セラドキュメントソリューションズ株式会社 画像処理装置
US10115177B2 (en) 2014-06-27 2018-10-30 Samsung Electronics Co., Ltd. Online texture compression and decompression in hardware
US9947071B2 (en) 2014-06-27 2018-04-17 Samsung Electronics Co., Ltd. Texture pipeline with online variable rate dictionary compression
CN107801026B (zh) * 2017-11-09 2019-12-03 京东方科技集团股份有限公司 图像压缩方法及装置、图像压缩及解压缩系统
US10860399B2 (en) 2018-03-15 2020-12-08 Samsung Display Co., Ltd. Permutation based stress profile compression
DE102018122297A1 (de) * 2018-09-12 2020-03-12 Arnold & Richter Cine Technik Gmbh & Co. Betriebs Kg Verfahren zur Kompression und Dekompression von Bilddaten
US10776957B2 (en) 2018-10-02 2020-09-15 Samsung Electronics Co., Ltd. Online image compression in hardware
US10803791B2 (en) 2018-10-31 2020-10-13 Samsung Display Co., Ltd. Burrows-wheeler based stress profile compression
US11308873B2 (en) 2019-05-23 2022-04-19 Samsung Display Co., Ltd. Redundancy assisted noise control for accumulated iterative compression error
US11245931B2 (en) 2019-09-11 2022-02-08 Samsung Display Co., Ltd. System and method for RGBG conversion

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS542619A (en) * 1977-06-08 1979-01-10 Matsushita Electric Ind Co Ltd Tw0-dimensional block coding system
JPH03171875A (ja) * 1989-11-29 1991-07-25 Nec Corp 画像信号符号化復号化方法とその装置
JPH09149263A (ja) * 1995-11-22 1997-06-06 Nec Corp 予測符号化装置
JPH09294210A (ja) * 1996-04-25 1997-11-11 Canon Inc 画像処理装置及び画像処理方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3278298B2 (ja) * 1994-08-03 2002-04-30 富士通株式会社 ビットマップデータの圧縮方法及び圧縮装置
JP3866568B2 (ja) 2001-12-21 2007-01-10 富士通株式会社 画像圧縮方法
JP3901514B2 (ja) 2001-12-27 2007-04-04 富士通株式会社 画像圧縮方法、その復元方法及びそのプログラム
JP4001482B2 (ja) 2001-12-27 2007-10-31 富士通株式会社 画像圧縮方法、その復元方法及びそのプログラム

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS542619A (en) * 1977-06-08 1979-01-10 Matsushita Electric Ind Co Ltd Tw0-dimensional block coding system
JPH03171875A (ja) * 1989-11-29 1991-07-25 Nec Corp 画像信号符号化復号化方法とその装置
JPH09149263A (ja) * 1995-11-22 1997-06-06 Nec Corp 予測符号化装置
JPH09294210A (ja) * 1996-04-25 1997-11-11 Canon Inc 画像処理装置及び画像処理方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11308647B2 (en) 2019-01-30 2022-04-19 Snow Corporation Method and system for improving compression ratio by difference between blocks of image file
US11539955B2 (en) 2019-01-30 2022-12-27 Snow Corporation Method and system for improving compression ratio through pixel conversion of image file
US11823418B2 (en) 2019-01-30 2023-11-21 Snow Corporation Method and system for improving compression ratio by difference between blocks of image file

Also Published As

Publication number Publication date
JPWO2004068844A1 (ja) 2006-05-25
US7236636B2 (en) 2007-06-26
US20050123206A1 (en) 2005-06-09

Similar Documents

Publication Publication Date Title
WO2004068844A1 (ja) 画像圧縮方法、画像復元方法、プログラム及び装置
JP3400944B2 (ja) 併合データ要素を生成する方法およびその印刷データ処理パイプライン
US7826670B2 (en) Data compression apparatus and data compression program storage medium
US6337747B1 (en) System to adaptively compress raster image data
US7167259B2 (en) System and method for merging line work objects using tokenization and selective compression
JP2006121645A (ja) 画像圧縮装置および画像圧縮プログラム
JP3278298B2 (ja) ビットマップデータの圧縮方法及び圧縮装置
JP4063487B2 (ja) ラスタデータの圧縮方法
EP0902398B1 (en) Method and system for compressing and decompressing binary representations of dithered images
US6721456B1 (en) Color image data and control bit compression scheme with run length encoding
JP4633576B2 (ja) データ圧縮装置およびデータ圧縮プログラム
JP4009808B2 (ja) 画像処理装置
JP3901514B2 (ja) 画像圧縮方法、その復元方法及びそのプログラム
JP4173498B2 (ja) データ圧縮装置およびデータ圧縮プログラム
JP2005277932A (ja) データ圧縮装置およびデータ圧縮プログラム
JP4008428B2 (ja) 画像圧縮方法
JPH08223428A (ja) 画像データ圧縮装置および画像データ伸長装置
JP4629512B2 (ja) データ圧縮装置およびデータ圧縮プログラム
JP4435586B2 (ja) データ圧縮装置およびデータ圧縮プログラム
JP4181147B2 (ja) データ圧縮装置およびデータ圧縮プログラム
JP2005252531A (ja) データ圧縮装置およびデータ圧縮プログラム
JP3085118B2 (ja) データ圧縮装置
JP4131970B2 (ja) データ圧縮装置およびデータ圧縮プログラム
JP4633577B2 (ja) データ圧縮装置およびデータ圧縮プログラム
JP4377352B2 (ja) データ圧縮装置およびデータ圧縮プログラム

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): JP US

WWE Wipo information: entry into national phase

Ref document number: 2004567528

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 11038603

Country of ref document: US