Image processing method

Abstract: A method of digitally processing images, in the form of a two dimensional data element array, in which the image is compressed by dividing the array into blocks (2) and performing transformation thereon. In order to smooth discontinuities at the boundaries (1, 13, 3, 14) between the blocks (2) resulting from the compression, filtering is performed by sequentially scanning elements at the boundaries with a one dimensional operator matrix (6, Fig, 1). The matrix applies suitable weights to those elements and adjacent ones to effect smoothing.

Description: This invention relates to image processing and in particular to digital image processing. To digitally process an image it is first necessary to reduce the image to a series of digitised numbers, i.e. a data array, that can be manipulated by computing means. Each number represents the brightness value at a particular location and is called a picture element or pixel. Once digitised various operations can be performed on the image by the computing means, such as enhancement, restoration or compression. Compression of an image is a way of representing the image by fewer numbers. Image compression has been recognised as an important enabler in the next generation of Information Technology products which will incorporate video-phones, desk top presentations and interactive video etc. This has led to standards being promulgated which are based on the Discrete Cosine Transform (DCT), currently the most efficient general purpose compression technique, although there are others. A particular standard (draft CCITT document number 396 "Description Reference Model 7 (RM7)" describes a compression scheme suitable for the transmission of medium resolution (360 x 288 pixels) black and white and colour images at up to 30 frames per second over ISDN 64 Kbit/sec links. Similar techniques can be used to transmit lower resolution low bit rate images over standard telephone lines (PSTN). Images to be compressed are divided into blocks of say 8 x 8 or 16 x 16 pixels and the transformation is performed on the block. The use of blocks ensures local pixel correlation and additionally limits the size of the transform coefficients. However, when high compression ratios are implemented the block boundaries become distinct in the image presented to the viewer and in the extreme case they are visually disturbing. This situation is further aggravated by the motion compression techniques which selectively refresh blocks where movement of an image part has occurred, that is the whole image information is not transmitted all of the time but only that relating to changes. Filtering of the image can be used to remove the block discontinuities. Filtering in this context means "averaging" a pixel value with its neighbours, with the possible application of weights to the values first. Image filtering, to remove noise etc, is normally achieved by scanning a small 3 x 3 operator matrix, set of values, or mask, over the image i.e. convolving the operator matrix with the data array, the elements of the data array being sequentially scanned by the operator matrix. The operator matrix is substantially smaller than the data array. For each pixel point the values of its 8 neighbours are weighted together with itself to create a new averaged (smoothed) value. When applying this to images to remove block discontinuities (boundaries) detail is lost from the whole image rather than just at the boundaries. The block discontinuity problem can be overcome by a technique involving overlapping the block edges but this is very complicated and involves considerable computing effort. Hence it is particularly unsuitable for PSTN type applications where costs and computing power should be minimised as far as possible. An article Mr D Arnold in Nachrichten Technik Elektronik, Vol. 38, No. 5, May 1988, pages 166-169, discloses the use of a one dimensional matrix and a two dimensional matrix only at block corners since the troublesome effects are only at the block boundaries. The extreme complexity of hardware and software that this requires with the use of both one dimensional and two dimensional matrices presents a formidable problem to realising a practical solution in for example a video telephone. It is an object of the present invention to provide a simplified image filtering technique which can be realised in a cost-effective manner. According to the present invention there is provided a method of digitally processing an image in the form of a two-dimensional data array having elements arranged in rows and columns, wherein the image is compressed by dividing the array into blocks (2) and performing transformation on the blocks, and wherein the image is filtered by convolution with an operator matrix (6) substantially smaller than the array to smooth discontinuities at boundaries (1, 13, 3, 14) between said blocks resulting from said compression, characterised in that the filtering comprises sequentially scanning over the block boundaries extending in one direction and over the block boundaries extending in a transverse direction, including adjacent corners (5) of the blocks (2), with a one dimensional operator matrix (6). Embodiments of the invention will now be described with reference to the accompanying drawings in which, Fig.1 shows part of an array of 8 x 8 pixel blocks. Fig.2 shows a transmitter in schematic form and Fig.3 shows a receiver in schematic form. In fig.1 there are vertical boundaries 1, 13 between 8 x 8 pixel blocks 2 and horizontal boundaries 3, 14. It is at these boundaries that the block discontinuities referred to above occur. If conventional image filtering using 3 x 3 operator matrix is employed for every pixel there are clearly special cases to be considered when the pixel in question is at the image edge, such as 4, or at an image corner, such as 5, since there are not then the 8 pixel neighbours required. The present invention proposes the use of a one dimensional filter, namely a row operator matrix 6, for example comprised of three values at windows corresponding to pixels i.e. a 3 x 1 matrix. This filter is scanned over the elements at the block boundaries as follows, for example. Consider the vertical block boundary 1, the filter is first "applied" so that its central value corresponds to pixel 7 of the image (position A) and a weighted version of the value of that pixel 7 is taken together with weighted versions of the values of the adjoining pixels 8 and 9 to produce the smoothed value for pixel 7. The filter positions are indicated at the side of the image, rather than over it, for clarity. In use they are "superimposed", however, on the array and scanned thereover. It the weights are m for the boundary pixel 7 in question and n and p for its neighbours 8 and 9, respectively, and i₇, i₈ and i₉ are the values of these pixels, then the smoothed value of pixel 7 is (mi₇ + ni₈ + pi₉)/(m + n + p). The filter is then "moved" one pixel sideways (to position B) in order to operate on boundary pixel 9 and its neighbours 7 and 10, again using the original value of pixel 7. Using the same weights as before i.e. m for pixel 9, n for pixel 7 and p for pixel 10, the smoothed value of pixel 9 is given by (mi₉ + ni₇ + pi₁₀)/(m + n + p) Typical smoothing weights are the values m = 2, n = 1 and p = 1. This procedure is repeated for pixels 11 and 12 and so on down the vertical block boundary 1 and subsequently down other vertical block boundaries such as 13. The horizontal block boundary 3 and others such as 14 are treated similarly by using the vertical neighbours to the boundary pixels, "disposing" the filter first in position C and then position D. An alternative procedure would be to scan (sweep) the filter first down one boundary edge (pixels 7, 11 etc) and subsequently down the adjoining edge (pixels 9, 12 etc) but this would involve extra processing. Since the values of pixel 7 and pixel 9 are available after one application of the filter it is more "economic" to re-use them to calculate the smoothed value of pixel 9. It will be apparent that use of such a one-dimensional filter achieves computational savings over the 3 x 3 matrix since there are no special cases to be considered at the image edge and corners, there are fewer pixel values (only those which are illustrated hatched) to be accessed, and the weighting calculation is greatly simplified. Experiments have shown that a one dimensional filter applied horizontally to the vertical boundaries and vertically to horizontal boundaries produces very acceptable results, removing discontinuities at block boundaries but not removing too much detail at subjectively important areas such as eyes and mouths whilst retaining details in the centre of blocks since their values are unaffected. In addition, the one dimensional filter proved to be three times faster than the equivalent two dimensional filter. Whilst a three element operator matrix (one dimensional filter) has been specifically described above, a filter with more than three elements, for example five, could alternatively be used. The filtering technique described above may be used, for example, in a video-telephony application. The apparatus basically consists of two distinct elements, the transmitter (Fig. 2) and the receiver (Fig. 3). For video-telephony both elements would be present at each site in order to allow two way video communication. Considering the transmitter (Fig. 2), a camera 20 produces an analogue waveform corresponding to the scene before it. This waveform is digitised by an analogue to digital converter 21 and placed into a digital image memory 22 as a two dimensional data array. A compression processor 23 converts this data from the spatial to the frequency domain. Generally all frequencies are not present within an image and therefore only a limited number of frequencies need be transmitted. Further compression can be achieved by transmitting only those frequencies found to be significant to the human visual system. This reduced frequency data (compressed digital image 24) is coded by variable length codes and transmitted by a transmit MODEM 25 (modulator/demodulator). Considering the receiver, receive MODEM 26 receives the compressed digital image. The frequency information is extracted at 27 from the variable length codes and converted into spatial information representing the image. Filtering, as described above, is then applied at 28 to this reconstructed image. The digital image data at 29 is then converted at 30 to an analogue waveform for display at 31 on a video monitor. Thus the invention proposes applying a one dimensional filter along the block boundaries, both horizontal and vertical, of an image produced by a block compression technique. This allows intra-block image detail to be retained and the greatly reduced memory fetches increase image throughput in comparison with conventional techniques.

Claims: A method of digitally processing an image in the form of a two-dimensional data array having elements arranged in rows and columns, wherein the image is compressed by dividing the array into blocks (2) and performing transformation on the blocks, and wherein the image is filtered by convolution with an operator matrix (6) substantially smaller than the array to smooth discontinuities at boundaries (1, 13, 3, 14) between said blocks resulting from said compression, characterised in that the filtering comprises sequentially scanning over the block boundaries extending in one direction and over the block boundaries extending in a transverse direction, including adjacent corners (5) of the blocks (2), with a one dimensional operator matrix (6). A method as claimed in claim 1 characterised in that the operator matrix is applied first to smooth an array element value on one side (7) of said boundary (1) and then applied to smooth the adjacent array element value on the opposite side (9) of the said boundary (1). A method as claimed in claims 1 or 2, characterised in that the operator matrix (6) is comprised of three elements. A method as claimed in claim 3 wherein the operator matrix (6) serves to apply respective weights to an array element (7) on one side of a said boundary (1), the array element (8) adjacent thereto in the same block (2) and the array element (9) adjacent thereto in the neighbouring block (2), which array elements are disposed in a line orthogonal to the said boundary. A method of operating a video-telephone in which a received compressed digital image is extracted and converted into spatial information representing the image characterised in that filtering is then applied to this information by a method as claimed in any preceding claim and the filtered information is then displayed to reproduce the image.

Inventors: D ASSIS FONSECA JEREMY BENTLEY, DOWNING ANTHONY HAROLD, HADINGHAM ROBERT GEORGE, WHITAKER JOHN, D'ASSIS FONSECA, JEREMY BENTLEY, DOWNING, ANTHONY HAROLD, HADINGHAM, ROBERT GEORGE, WHITAKER, JOHN
Applicants: NORTHERN TELECOM LTD, NORTHERN TELECOM LIMITED
Application year: 1992
Main classification: H04N7
IPC codes: H04N7, G06T9, H04N1, G06T5