# US 5,374,958 A · Image compression based on pattern fineness and edge presence

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 5,374,958 A
- Document ID: US5374958A
- Status: Granted
- Kind: A
- Application number: 08/081,196
- Filed: 1993-06-25
- Granted: 1994-12-20
- Earliest claimed: 1992-06-30
- Assignees: Sony Corporation
- Inventors: Haofumi Yanagihara
- Web page: https://patentgrep.com/patent/US5374958A

## CPC

- H04N 7/54: the signals being synchronous {(H04N21/23602, H04N21/23614, H04N21/2365, H04N21/2368, H04N21/4341, H04N21/4342, H04N21/4347, H04N21/4348 take precedence)}
- H03K 17/9643: {using a plurality of detectors, e.g. keyboard}
- H04N 9/8047: {using transform coding}
- H04N 19/112: according to a given display mode, e.g. for interlaced or progressive display mode
- H04N 19/126: Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
- H04N 19/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/149: by estimating the code amount by means of a model, e.g. mathematical model or statistical model
- H04N 19/15: by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/60: using transform coding
- H04N 19/88: involving rearrangement of data among different coding units, e.g. shuffling, interleaving, scrambling or permutation of pixel data or permutation of transform coefficient data among different blocks
- H04N 21/236: Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream {(multiplexing of data packets for data networks, e.g. RTP/UDP H04L65/00)}
- H04N 21/434: Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream {(demultiplexing of data packets for data networks, e.g. RTP/UDP H04L65/00)}
- H10N 30/045: by polarising
- H10N 30/077: by liquid phase deposition
- H10N 30/302: {Sensors}
- H01H 2201/02: Piezo element
- H04N 19/124: Quantisation
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/146: Data rate or code amount at the encoder output
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)
- H10N: ELECTRIC SOLID-STATE DEVICES NOT OTHERWISE PROVIDED FOR
- H01H: ELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES (contact cables H01B7/10; electrolytic self-interrupters H01G9/18; emergency protective circuit arrangements H02H; switching by electronic means without contact-making H03K17/00)

## Abstract

Alternating current coefficients in a block of orthogonal transform coefficients representing a digital image are quantized with a quantization step size selected with regard to whether the block represents motion or a still image, the fineness of the pictorial pattern in the image, the position of the coefficients in the block, and whether the coefficients represent luminance or chrominance information in the image. The fineness of the pictorial pattern is determined in accordance with the number of alternating current coefficients that exceed a first relatively small threshold value. If any of the alternating current coefficients exceed a second relatively large threshold value, the block is considered to have a high activity, that is, a fine pattern, and so is quantized with a large quantization step.

## Claims

### Claim 1

An apparatus for processing a digital image signal, comprising:
block segmentation means for segmenting said digital image signal into blocks of image data;
orthogonal transform means for orthogonally transforming said blocks of image data into blocks of coefficient data, each transformed block having a direct current coefficient and a plurality of alternating current coefficients;
quantization means for quantizing each of said alternating current coefficients using a respective selected quantization step to generate quantized data;
variable length code encoding means for encoding said quantized data;
activity detection means for comparing the higher frequency alternating current coefficients with a plurality of threshold values to generate an activity code for said each transformed block; and
control means for obtaining a respective quantization step for said each of said higher frequency alternating current coefficients and for combining said activity code with said respective quantization step to produce said respective selected quantization step.

### Claim 2 (depends on 1)

The digital image signal processing apparatus as in claim 1, wherein said control means is operative to obtain an initial quantization step from among a plurality of quantization steps of different size, and to adjust said initial quantization step as a function of said activity code to produce said selected quantization step.

### Claim 3

An apparatus for processing a digital image signal, comprising:
block segmentation means for segmenting said digital image signal into blocks of image data;
orthogonal transform means for orthogonally transforming said blocks of image data into blocks of coefficient data, each transformed block having a direct current coefficient and a plurality of alternating current coefficients;
quantization means for quantizing each of said alternating current coefficients using a respective selected quantization step to generate quantized data;
variable length code encoding means for encoding said quantized data;
activity detection means for comparing said alternating current coefficients with a plurality of threshold values to generate an activity code for said each transformed block; and
control means for generating an area number representing a position of one of said alternating current coefficients in a transformed coefficient data block, for shifting said area number when said one of said alternating current coefficients represents color information, and for determining said respective selected quantization step as a function of said activity code and said area number.

### Claim 4

An apparatus for processing a digital image signal, comprising:
block segmentation means for segmenting said digital image signal into blocks of image data;
orthogonal transform means for orthogonally transforming said blocks of image data into blocks of coefficient data, each transformed block having a direct current coefficient and a plurality of alternating current coefficients;
quantization means including means for dividing said each of said alternating current coefficients using a respective selected quantization step to produce a quotient, and means for converting said quotient to an integer depending upon whether said respective selected quantization step is larger than a predetermined value to generate quantized data;
variable length code encoding means for encoding said quantized data;
activity detection means for comparing said alternating current coefficients with a plurality of threshold values to generate an activity code for said each transformed block; and
control means for selecting said respective selected quantization step in accordance with said activity code.

### Claim 5 (depends on 4)

The digital image signal processing apparatus as in claim 4, wherein said means for converting said quotient to an integer is additionally responsive to a position occupied by said each of said alternating current coefficients in a transformed coefficient data block.

### Claim 6 (depends on 4)

The digital image signal processing apparatus as in claim 4, wherein said means for converting is operable to map said quotient to a lower value when said quotient has a fractional value less than two-thirds of a value of said selected quantization step.

### Claim 7

An apparatus for processing a digital image signal, comprising:
block segmentation means for segmenting said digital image signal into blocks of image data;
orthogonal transform means for orthogonally transforming said blocks of image data into blocks of coefficient data, each transformed block having a direct current coefficient and a plurality of alternating current coefficients;
quantization means for quantizing said alternating current coefficients using a selected quantization step to generate quantized data;
variable length code encoding means for encoding said quantized data;
activity detection means including first means for comparing values of each of said alternating current coefficients in a transformed block with a first threshold value to produce a detection flag, second means for comparing values of a predetermined range of alternating current coefficients in said transformed block with additional threshold values to produce a set of comparison results, and means for generating an activity code in accordance with said set of comparison results and said detection flag, said activity code corresponding to high activity when said detection flag indicates that the value of at least one of said alternating current coefficients exceeds said first threshold value; and
control means for selecting said selected quantization step in accordance with said activity code.

### Claim 8 (depends on 7)

The digital image signal processing apparatus as in claim 7, wherein said control means is operative to obtain an initial quantization step from among a plurality of quantization steps of different size, and to adjust said initial quantization step as a function of said activity code to produce said selected quantization step.

### Claim 9 (depends on 7)

The digital image signal processing apparatus as in claim 7, wherein said control means is operative to generate an area number representing a position of one of said alternating current coefficients in a transformed coefficient data block, to shift said area number when said one of said alternating current coefficients represents color information, and to determine said selected quantization step as a function of said activity code and said area number.

### Claim 10 (depends on 7)

The digital image signal processing apparatus as in claim 7, wherein said quantization means includes means for dividing each of said alternating current coefficients by a respective said selected quantization step to produce a quotient, and means for converting said quotient to an integer depending upon whether said respective selected quantization step is larger than a predetermined value.

### Claim 11 (depends on 10)

The digital image signal processing apparatus as in claim 10, wherein said means for converting said quotient to an integer is additionally responsive to a position occupied by said each of said alternating current coefficients in a transformed coefficient data block.

### Claim 12 (depends on 10)

The digital image signal processing apparatus as in claim 10, wherein said means for converting is operable to map said quotient to a lower value when said quotient has a fractional value less than two-thirds of a value of said selected quantization step.

### Claim 13

A method of processing a digital image signal, comprising the steps of:
segmenting said digital image signal into blocks of image data;
orthogonally transforming said blocks of image data into blocks of coefficient data, each transformed block having a direct current coefficient and a plurality of alternating current coefficients;
quantizing each of said alternating current coefficients using a respective selected quantization step to generate quantized data;
encoding said quantized data using a variable length code;
comparing the higher frequency alternating current coefficients with a plurality of threshold values to generate an activity code for said each transformed block;
obtaining a respective quantization step for said each of said higher frequency alternating current coefficients; and
combining said activity code with said respective quantization step to produce said respective selected quantization step.

### Claim 14 (depends on 13)

The digital image signal processing method as in claim 13, wherein the step of combining includes obtaining an initial quantization step from among a plurality of guantization steps of different size, and adjusting said initial quantization step as a function of said activity code to produce said respective selected quantization step.

### Claim 15

A method of processing a digital image signal, comprising the steps of:
segmenting said digital image signal into blocks of image data;
orthogonally transforming said blocks of image data into blocks of coefficient data, each transformed block having a direct current coefficient and a plurality of alternating current coefficients;
quantizing each of said alternating current coefficients using a respective selected quantization step to generate quantized data;
encoding said quantized data using a variable length code;
comparing said alternating current coefficient with a plurality of threshold values to generate an activity code for said each transformed block; and
selecting said respective selected quantization step by generating an area number representing a position of one of said alternating current coefficients in a transformed coefficient data block; shifting said area number when said one of said alternating current coefficients represents color information; and determining said respective selected quantization step as a function of said activity code and said area number.

### Claim 16

A method of processing a digital image signal, comprising the steps of:
segmenting said digital image signal into blocks of image data;
orthogonally transforming said blocks of image data into blocks of coefficient data, each transformed block having a direct current coefficient and a plurality of alternating current coefficients;
quantizing each of said alternating current coefficients by dividing said each of said alternating current coefficients by a respective selected quantization step to produce a quotient, and converting said quotient to an integer depending upon whether said respective selected quantization step is larger than a predetermined value to generate quantized data;
encoding said quantized data using a variable length code;
comparing said alternating current coefficients with a plurality of threshold values to generate an activity code for said each transformed block; and
selecting said respective selected quantization step in accordance with said activity code.

### Claim 17

A method of processing a digital image signal, comprising the steps of:
segmenting said digital image signal into blocks of image data;
orthogonally transforming said blocks of image data into blocks of coefficient data, each transformed block having a direct current coefficient and a plurality of alternating current coefficients;
quantizing said alternating current coefficients using a selected quantization step to generate quantized data;
encoding said quantized data using a variable length code;
comparing values of each of said alternating current coefficients in a transformed block with a first threshold value to produce a detection flag;
comparing values of a predetermined range of alternating current coefficients in said transformed block with additional threshold values to produce a set of comparison results;
generating an activity code in accordance with said set of comparison results and said detection flag, said activity code corresponding to high activity when said detection flag indicates that the value of at least one of said alternating current coefficients exceeds said first threshold value; and
selecting said selected quantization step in accordance with said activity code.

### Claim 18 (depends on 17)

The digital image signal processing method as in claim 17, wherein the step of selecting includes obtaining an initial quantization step from among a plurality of quantization steps of different size, and adjusting said initial quantization step as a function of said activity code to produce said selected quantization step.

### Claim 19 (depends on 17)

The digital image signal processing method as in claim 17, wherein the step of selecting includes generating an area number representing a position of one of said alternating current coefficients in a transformed coefficient data block; shifting said area number when said one of said alternating current coefficients represents color information; and determining said selected quantization step as a function of said activity code and said area number.

### Claim 20 (depends on 17)

The digital image signal processing apparatus as in claim 17, wherein the step of quantizing includes dividing each of said alternating current coefficients by a respective said selected quantization step to produce a quotient, and converting said quotient to an integer depending upon whether said respective selected quantization step is larger than a predetermined value.
