CA2269820A1 - Vector quantisation codebook generation method - Google Patents

Vector quantisation codebook generation method Download PDF

Info

Publication number
CA2269820A1
CA2269820A1 CA002269820A CA2269820A CA2269820A1 CA 2269820 A1 CA2269820 A1 CA 2269820A1 CA 002269820 A CA002269820 A CA 002269820A CA 2269820 A CA2269820 A CA 2269820A CA 2269820 A1 CA2269820 A1 CA 2269820A1
Authority
CA
Canada
Prior art keywords
vectors
space
vector
index
sample
Prior art date
Legal status (The legal status 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 status listed.)
Abandoned
Application number
CA002269820A
Other languages
French (fr)
Inventor
William Paul Cockshott
Robert Bartholemew Lambert
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Strathclyde
Original Assignee
Individual
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 Individual filed Critical Individual
Publication of CA2269820A1 publication Critical patent/CA2269820A1/en
Abandoned legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/94Vector quantisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/008Vector quantisation
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/3082Vector coding

Abstract

A data compression system using vector quantisation utilises a codebook or index tables constructed by finding a small set of points in an n-dimensional space which are representative of a much larger population. The space is partitioned such that the integrals of the probability density functions over all the subspaces are approximately equal and thereafter the centre of gravity of each subspace is taken to represent the subspace population. The partitioning is effected sequentially to map n-dimensional space into one dimensional code space.

Description

VECTOR QUANTISATION CODEBOOK GENERATION METHOD
The present invention relates to vector quantisation data compression and in particular to a method of constructing a codebook for use in vector quantisation data compression and to codebooks so constructed.
' When storing or transmitting large amounts of digital data it is often desirable to be able to compress the data to a significant extent to reduce storage space or transmission time. This need for compression is particularly acute when dealing with digital video which tends to involve extremely large amounts of data which must be handled at high speed (particularly for real-time applications such as video phone communication).
i5 One technique used for compressing digital video is known as 'vector quantisation', where a codebook of reference patches (e. g. relatively small portions taken from one or more 'library' or 'archetypal' images) is utilised. In the simplest form of this technique, each image to be compressed is partitioned into a number of image patches and a matching (i.e. similar) reference patch selected for each image patch from the codebook by comparing patches on a pixel by pixel basis. The codebook index for each chosen reference patch is stored, together with the corresponding position vectors of the image patches (i.e. their position in the original image), to provide a compressed representation of the image. Provided that a copy of the codebook is available, an approximation to the original image can be constructed by using the 30, stored codebook indices to recover the required set of reference patches and inserting these into an image frame using the respective stored image patch position vectors.
The achievable degree of compression is a function o= the size of the image patches into which the image is partitioned, larger patches allowing higher compression.
Simple vector quantisation techniques require an exhaustive search of the codebook for each image patch, a process which is extremely computationally expensive where WO 98I18262 PCTIGB97102841 , large codebooks are used to maximise the quality of the compressed images and where large patches, necessitating a large number of pixel comparisons, are generated to maximise the compression ratio. One technique used to reduce this search overhead is known as 'hierarchical vector quantisation' (HVQ). This technique is described in 'Hierarchical vector Quantisation of Perceptually Weighted Block Transforms'; N Chadda, M Vishwanath, and P A Chou;
Proceedings of the Data Compression Conference; IEEE, 1995, l0 pp3-12.
To illustrate HVQ, consider that it is desired to compress an individual digitised frame of a black and white video sequence where the frame is composed of an array of pixels each having an intensity value in the form of a byte-integer. Suppose that the frame is divided into patches formed by pairs of horizontally adjacent pixels (so that each pair is represented by a pair of intensity values or a 2-D vector [i,j]) and a codebook Bo is provided which contains a number of reference patches, each reference patch consisting of a pair of horizontally adjacent pixels and the number of reference patches in the codebook (e. g.
2S5) being considerably less than the total number of possible pixel pair patches. An index table To is provided which maps every possible value of the 2-D vectors to associated codebook addresses, such that To[i,j] addresses the closest entry in Bo (i.e. Bo[To[i,j]]) to the vector [i,j]. Finding the closest entry in the codebook to a given input vector can then be determined simply by looking up the table To .
Consider now that the frame to be compressed is sub-divided into patches of 2 X 2 pixels so that each patch is represented by a four dimensional vector of intensity .
values [i,j,k,l]. Each of these 4-D vectors is split into two 2-D vectors and, using tables To, can be mapped to a further 2-D vector [To [i, j] , To [k, 1] ] . Suppose that a second codebook B1 contains a number of 4-D vectors [p, q, r, s] which correspond to a set of four pixel patches WO 98/182b2 PGT/GB97102841 (where again the number of patches is considerably less than the total number of possible four bit patches). A
second level index table Tl is constructed such that $1 [T1 [To [i, j] , To [k, lJ ] ] is the closest entry in Bl to (Bo LTo [i, j] ] , Bo [To [k,1] ] ] . Finding the closest entry in the codebook B1 to a given input vector can then be determined by looking up the table To for pixel pairs [i, j] and [k, 1] , and then applying the resultant 2-D vectors To[i, j]
, To [k, 1] to the table Tl . This process is illustrated in Figure 1.

In a non-HVQ process, it is necessary to provide a codebook containing 4 -D vectors and, f or each 4 -D vector (or patch) in an image to be compressed, to compare each entry in that vector against the corresponding entry in each vector in the codebook. Such an exhaustive search process requires n X m comparison operations to find a matching vector, when n is the number of elements in the vector and m is the number of entries in the codebook. The HVQ process in contrast requires n-1 look-up steps to find a matching vector. Given that comparisons and look-ups are of approximately the same computational cost, it will be appreciated that n X m is much greater than n-1 for reasonable values of m and that the HVQ look-up process will be approximately m times faster than the exhaustive search.

Fox each further level of the index table (TZ,T3 etc) added in the HVQ process, the compression ratio is increased further. It is noted that in practice, only the final level codebook B need be retained as the intermediate codebooks are not essential to carrying out the HVQ
process.
Hierarchical vector quantisation may be used to compress colour images by separating out the three components of colour images (e.g. red, blue, green) and compressing them separately, and recombining the three sets of codebook reference patches to produce a decompressed image.
It will be clear that in order to use HVQ effectively, it is necessary to construct a series of tables To,l...m and codebooks Bo,l...m. where m is loge of the number of pixels in the largest patch used for compression. The conventional HVQ approach is to develop codebooks first, e.g. by extracting reference patches from a number of archetypal image frames, and then to derive the tables from the codebooks.
Since the patches at the final level m are twice the size of the patches at level m-1, the index table Tm is constructed by taking a11 possible pairs of patches at level m-1 and by conducting an exhaustive search of patches in the codebook at level m to identify the patch at level m which is most similar. Thus, if the level m-1 patches 7 and 13 when placed together most closely resemble level m patch 100, Tm[7,13] would be set to 100. This process is propagated back thorough the levels to create a codebook and an index table at each level.
In this approach, the selection of level m codebook patches taken from the archetypal image frames is essentially arbitrary. The result is that certain ones of these patches may never or only infrequently be selected as a match for a patch from an image to be compressed, resulting in an inefficient codebook.
It is an object of the present invention to overcome or at least mitigate disadvantages of conventional vector quantisation codebooks.
It is a second object of the present invention to provide a method of generating a vector quantisation codebook, wherein the entries in the codebook are used with substantially equal frequency when compressing data whose statistical properties mirror those of the training data used to construct the codebook.
According to a first aspect of the present invention there is provided a method of constructing a vector quantisation codebook from at least one archetypal data array composed of a set of data values, the method comprising:

1) selecting from the data arrays) a first multiplicity of n-dimension sample vectors, each sample vector consisting of a set of data values which are contiguous in the arrays) and each sample vector defining a point in a finite n-dimensional space;

2) partitioning said space into a predetermined number of regions, each region containing substantially the same number of sample vectors;

3) assigning to each said region a unique index, where the indices are selected to codify the partitioning process carried out in step 2);

4) determining for substantially all possible points within said space, the regions in which these points are located, and constructing a look-up index table mapping substantially a11 possible points to the respective region indices;

5) selecting from the data arrays) a second multiplicity of n-dimension sample vectors, each sample vector consisting of a set of contiguous data values, and replacing each of these sample vectors with the associated region index obtained by looking up the index table generated in step 4) to create a further data array or arrays;
6) iteratively repeating steps 1) to 5) for the further data arrays) and any subsequently generated further data array(s), wherein each index generated in the final iteration is derived from a set of n'" dimension sample vectors in the archetypal data array(s), where m is the number of iterations carried out;
7) for each index generated in the final iteration, creating an n'" dimension reference vector which is representative of the associated set of n'" dimension sample vectors in the archetypal data array; and 8) constructing a codebook containing the reference vectors, where each index generated in the final iteration points to the location in the codebook of the corresponding WO 98/18Z62 PCT/GB97~2841 , reference vector.
The approach adopted is to find a small set of points in an n dimensional space which are representative of a much larger population. For an efficient coding all of these representative points should be equally frequently used. Assume that we have some information about the population to be represented, for instance an encoding of its probability density function over a regular grid in the n dimensional space. The task can then be split into two parts:
a) derive a partitioning of the n dimensional space into subspaces such that the integrals of the probability density functions over a11 of the subspaces are approximately equal; and b) find the 'centre of gravity' of each subspace and use this to represent the population within the subspace.
The problem is computationally difficult when one is working with high dimensional spaces of the type used for image compression - 16 dimensions and up. The theory behind the present invention is that step a) can be made easier if it is performed on spaces of low dimensions (typically 2), which implies that the whole task would be easy if there were some way of splitting the partitioning problem in n dimensions down into a series of problems in lower dimensions. This approach of splitting things up becomes possible if as a result of performing a partitioning on say a 2 dimensional space we are able to perform an approximately distance preserving projection from 2-dimensional sub-manifolds of the original n-dimensional space into a 1-dimensional code space which is itself a metric spice. Thus by repeated pairwise application of the submanifold reduction, we can transform say a 16 dimensional metric space into an 8 dimensional metric code space. Repeated application of the submanifold , reduction process can then allow us to map 16 dimensional spaces onto one dimensional code spaces.

WO 98/18262 PCT/GB97/02841 , Preferably, in step 1), the selected vectors are distributed substantially evenly about said data array(s).

More preferably, every data value is contained within at least one vector.

Preferably, step 5) comprises sub-dividing the data arrays) into said second multiplicity of sample vectors, so that every entry is contained within at least one vector. Alternatively however, the selected vectors may encompass only a fraction of the data array, where that fraction coincides with those areas from which the first multiplicity of sample vectors are subsequently chosen.

In one embodiment of the present invention, step 2) comprises: (a) determining the mean and variance of the distribution of vectors for each dimension of said space;

(b) identifying that dimension for which the vectors have the greatest variance; and (c) dividing the space into two regions, a first region containing those vectors which have a value for the selected dimension which exceeds the mean value and a second region containing those vectors which do not. For each region, steps (a) to (c) are recursively repeated until the required number of regions is obtained.

This number is determined by the desired size of the look-up index tables.

In an alternative embodiment of the invention, step 2) comprises determining the Principal Component (or regression line) of the vector distribution and then determining the mean of the Principal Component. The space is then split into two by a line perpendicular to the Principal Component and passing through the mean thereof to create two regions or sub-spaces. Each of these regions is in turn split, with _the process continuing recursively until a desired number of regions is achieved.

Whilst the two partitioning operations set out above involve repeated applications of the same partitioning step, this is not an essential feature of the invention.

In an alternative embodiment, two different partitioning steps could be applied alternatively in each partitioning WO 98/18262 PCT/GB97/02841 y _g_ operation.
The number of regions created by the partitioning operation is typically less than 1000 to 4000, e.g. 128 or _ 256. For higher numbers of regions, the computational complexity may be unmanageable.
Preferably, for each repeat of steps 1) to 4), the sequence in which the regions are created is used to determine the assignment of indices. In particular (for binary indices), the first split determines the most l0 significant bit of the index, the second split the next most significant bit etc. The appropriate bit is set to 1 for the region containing vectors exceeding the mean and to 0 for the region containing vectors below the mean. It will be appreciated that a similar result can be achieved by replacing 1's with 0's and 0's with 1's.
Preferably, in step 3), the result of assigning the indices is that the indices preserve the order of the regions having regard to the average value of data values making up the vectors of each region.
The present invention is particularly applicable to creating codebooks for use in compressing digital images which comprise an array of image pixels, each defined by an intensity value. The vectors at the first level represent patches of contiguous pixels in an archetypal image frame whilst the vectors at the higher levels correspond to patches in a shrunk image. At each level, the regions are assigned indices which preserve the subjective order of the regions. For example, regions containing relatively dark patches are assigned relatively low indices whilst regions 3~0 containing relatively bright patches are assigned relatively high indices.
Preferably, in step 1) of the above method, n - 2.
More preferably, in the first iteration, every pair of horizontally adjacent data values in the archetypal data .
arrays) is selected to provide the vectors for use in step 2) so that substantially a11 data values appear in two data value pairs. In step 5), the or each data array is sub-WO 98i18262 PCT/GB97/02841 , _g_ divided into horizontally adjacent pairs of data values so that each pair abuts the neighbouring pair(s). In the second iteration, in step 1) every pair of vertically adjacent data values are extracted whilst in step 5) [if the process comprises three or more iterations] the or each further data array is sub-divided into vertically adjacent pairs of data values. For each subsequent iteration, horizontally and vertically adjacent pairs of data values are chosen alternately.

Whilst the sample vectors of the first and second multiplicities preferably a11 have the same orientation, this is not essential. For example, there may be a mixture of horizontal and vertical patches in either of the multiplicities.

The above method is capable of producing optimised codebooks for use in any vector quantisation process.

However, it is particularly suited to producing codebooks for use in hierarchical vector quantisation (HVQ) processes given that index look-up tables for each level, and which are necessary for HVQ, are an inherent product of the codebook creation method.

In certain embodiments of the above method, it may be desired to additionally carry out steps 7) and 8) at the end of each iteration so as to create a codebook at each level. This may be necessary, for example, where an image is to be compressed using variable sized reference vectors.

According to a second aspect of the present invention there is provided a method of constructing a vector quantisation codebook from at least one archetypal data array composed of a set of data values, the method comprising:

1) selecting from the data arrays) a first multiplicity of n-dimension sample vectors, each sample vector -consisting of a set of data values which are ' 35 contiguous in the arrays) and each sample vector defining a point within a finite n-dimensional space;

2) partitioning said space containing said sample vectors into a predetermined number of regions containing substantially the same number of vectors;
3) assigning to each said region a unique index, where the indices are selected to codify the partitioning process carried out in step 2);
4) determining for substantially all possible points within said space the regions in which these points are located, and constructing a look-up index table mapping substantially a11 such possible points to the respective region indices;
5) for each region, determining a reference vector which is representative of the sample vectors in that group; and 6) constructing a codebook containing the reference vectors, where each index points to the location in the codebook of the corresponding reference vector.
According to a third aspect of the present invention there is provided a method of constructing a set of index tables for use in a hierarchical vector quantisation process, the tables being constructed from at least one archetypal data array composed of a set of data values, the method comprising:
1) selecting from the data arrays) a first multiplicity of n-dimension sample vectors, each sample vector consisting of a set of data values which are contiguous in the arrays) and each sample vector defining a point in a finite n-dimensional space;
2) partitioning said space into a predetermined number of regions, each region containing substantially the 3~0 same number of sample vectors;
3) assigning to each said region a unique index, where the indices are selected to codify the partitioning process carried out in step 2);
4) determining for substantially a11 possible points within said space, the regions in which these points are located, and constructing a look-up index table mapping substantially a11 possible points to the respective region WO 9811$262 PGT/GB97I02841 y indices;
5) selecting from the data arrays) a second multiplicity of n-dimension sample vectors, each vector consisting of a set of contiguous data values, and replacing each of these sample vectors with the associated region index obtained by looking up the index table generated in step 4) to create a further data array or arrays; and 6) iteratively repeating steps 1) to 5) for the further data arrays) and any subsequently generated further data array(s), wherein each index generated in the final iteration is derived from a set of n"' dimension sample vectors in the archetypal data array(s), where m is the number of iterations carried out.
The method of the above third aspect of the present invention is able to generate a set of index tables for. use in applications where it is desired to encode data but where it is not necessary to be able to reconstruct the original data from the encoded data, i.e. where a codebook is unnecessary.
The term 'archetypal' used above encompasses real images captured, fox example, using a camera. However, the term also encompasses artificially generated images such as pre-existing codebooks.
For a better understanding of the present invention and in order to show how the same be carried into effect reference will now be made, by way of example, to the accompanying drawings, in which:
Figure 1 illustrates schematically a two layer hierarchical vector quantisation process.
Figure 2 illustrates a 2-D digital image frame for compression;
Figure 3 shows a first level frequency map obtained from the image frame of Figure 2;
' 35 Figure 4 shows a first level shrunk image frame obtained from the image frame of Figure 2 using the frequency map of Figure 3;

Figure 5 shows a second level frequency map obtained from the image of Figure 4; and Figure 6 shows a second level shrunk image frame obtained from the image frame of Figure 2 using the frequency map of Figure 5:
There is shown in Figure 2 a two dimensional black and white digital image which is composed of 320 x 200 pixels.
The brightness level or intensity of each pixel is defined within the range 0 to 256 (i.e. by an 8-bit binary integer). Suppose that it is desired to compress the image of Figure 2 by a factor of 4 using a hierarchical vector quantisation process. This process is illustrated in Figure 1 and has been described above. The image is firstly sub-divided into regular 2 x 2 pixel image patches.
Each of these patches is then divided into upper and lower pixel pairs. For each patch in turn, the upper and lower pairs are fed in parallel to identical first level look-up tables To to derive the first level indices for each pair.
The resulting pair of indices are then fed to a second level look-up table T1 to derive a second level index which addresses a reference patch in a codebook. A compressed representation of the image is created by storing only the positions in the image of each of the image patches and the respective indices. In order to decompress the data, it is only necessary to access the codebook, or a copy of the codebook, using the indices and to correctly order the resulting reference patches.
It follows from a basic concept of information theory that the most efficient codebook is that which contains only patches which are likely to occur in an image to be compressed with equal. frequency. In contrast) a codebook which contains patches which are never, or only infrequently, used when compressing images will be extremely inefficient. As noted above, codebooks are generally created using a set of test or archetypal images which are expected to be typical of images to be compressed. Therefore, if the patches in the codebook WO 98118262 PCT/GB97/02841 , occur with substantially equal frequency in the test images, it is likely that these patches will also occur with equal frequency in images to-be compressed.

- The first step in constructing a codebook of 2 x 2 pixel patches suitable for compressing the image frame of Figure 2, is to extract every pair of horizontally adjacent pixels from a digital archetypal image (in this case the image frame of Figure 2 may be considered an archetypal image) such that every pixel, other than pixels at the edges of the frame, appear in two different pairs. As already noted, the archetypal image is selected to have similar properties to images to be compressed. The intensities of the right and left pixels of each pair are then plotted against each other in a two dimensional space to obtain a first level frequency map (or occurrence map) which shows the intensity distribution of the pixel pairs.

The map for the image of Figure 2 is shown in Figure 3 where, for the purpose of illustration, bright areas correspond to a high density of similar pixel pairs whilst dark areas correspond to a low density of similar pixel pairs. In a typical image, adjacent pairs of pixels will tend to have similar intensities (except where a pixel pair straddles a sharp edge) resulting in a high intensity band running across a diagonal of the frequency map from the bottom left of the map to the top right.

The intensity distribution is then determined for both axes of the map. The distribution for the x-axis is illustrated alongside the x-axis. From the distributions, it is possible to determine the mean, and hence the variance, of the distribution with respect to each axis.

The frequency map is then partitioned into two regions by a partitioning line (in this case it is the line denoted A) parallel to the axis having the least variance and passing through the mean intensity of the other axis to create two ' 35 new sub-maps. It will be apparent that both of these sub-maps will contain approximately the same number of pixel pairs. Taking each of the new sub-maps separately, and by WO 98/18Z62 PCTlGB97102841 , way of illustration the intensity distribution for the y-axis of one of the sub-maps is shown in Figure 3, this process is repeated recursively so as to create further frequency sub-maps (by partitioning along the appropriate partitioning lines B, C and D) each of which again contains approximately the same number of pixel pairs. The process is repeated until the number of sub-maps or groups equals the desired number of entries in the first level codebook, e.g. 256.
As the sub-map creation process proceeds, indices or identifiers are dynamically assigned to the sub-maps to codify the partitioning process . For the case where 256 sub-maps are to be created, 8-bit binary indices are required. The first split in the process determines the most significant bit of the index, the second split the next most significant bit etc. Also, where a horizontal split occurs, e.g., by partitioning line A, the relevant bit for the upper sub-map is set to 1 and that for the lower sub-map is set to 0. Where a vertical split occurs, e.g., by partitioning line D, the relevant bit for the right sub-map is set to 1 whilst that for the left sub-map is set to 0. The result is a set of indices which tend to preserve the subjective intensity of the maps. For example, the sub-map at the top right of Figure 3 will have the highest index, corresponding to a high intensity, whilst that at the bottom left will have the lowest index, corresponding to a low intensity.
Each of the sub-maps or groups encompasses a region of the frequency map and each point within the total space falls within a sub-map. A first level look-up index table To is created which contains every possible point in the space, where each point is mapped to the index for the sub-map in which that point is located. For example, where the pixel intensities range from 0 to 255, the index table To will contain 256 X 256 entries.
For each sub-map, a 2 X 1 pixel reference patch is then created by obtaining the mean intensity values for the wo ms~s2 rcTics9~roz8ai , right and left pixels of all of the pixel pairs which comprise that sub-map. These reference patches are then stored as a first level codebook Bo, where the location in the codebook of a reference patch is pointed to by the -5 associated index.
The next step in the codebook creation process is to sub-divide the test image into pairs of horizontally adjacent pixels and to replace each of these pairs with the associated first level index. This results in an image which is shrunk from left to right as shown in Figure 4.
An important point to note is that, because the indices preserve the intensity order of the sub-maps, the first level shrunk image remains recognisable.
A second level frequency map is next created from the first level shrunk image, only this time every pair of vertically adjacent pixels are extracted and the intensities of the upper and lower pixels plotted against each other. This is illustrated in Figure 5, which also shows the result of partitioning the map in the way set out above. Indices are again dynamically assigned.
It will be appreciated that each pixel in the f first level shrunk image is an index which is mapped to a two pixel reference patch in the first level codebook Bo and that each entry in the second level frequency map therefore corresponds to a 2 X 2 patch of pixels . For each map of the second level frequency map therefore, a 2 X 2 pixel reference patch can be created by determining the mean values for the four pixels from each of the patches in that map. A second level index look-up table To is constructed which contains every possible combination of vertically adjacent first level indices together with the associated second level indices. A second level codebook is then constructed to contain the reference patches, where the location of a reference patch is pointed to by the associated second level index.
If it is desired to achieve a higher compression ratio than can be achieved with 2 X 2 pixel codebook patches, the WO 98/18262 PGT/GB9'1102841 , process can be iteratively repeated to create a third level codebook (4 X 2 pixel patches), a fourth level codebook (4 X 4 pixel patches) etc.
A surprising advantage of the present invention is that it may provide a compressed representation of a data array which is tolerant to the loss of least significant bit (lsb) data from index byte-integers. This is because these indices preserve the subjective order of the codebook patches which they represent. Thus, the patches pointed to by indices 00110010 and 00110011 will tend to be similar so that an error in the lsb of an index, whilst resulting in the selection of the incorrect patch for the decompressed image, will not substantially distort that image. It is common in many digital transmission systems to only transmit error correction codes for the most significant bits of digital data (e. g. GSM cellular phones). It will be apparent therefore that the method of the present invention is ideally suited to transmission by such transmission systems. Furthermore, the tolerance of the compressed representations resulting from the present invention enables increased compression ratios to be obtained merely by removing one or more lsb's from the indices.
The method set out above involves repeatedly partitioning the frequency maps at each level into two using either a horizontal or a vertical axis. By performing the partitioning along the axis of greatest variance it is ensured that the expected distances between the map entries and the means of the new sub-maps is lower than would be the case if the sub-maps are partitioned along the axis of least variance. This principle can be exploited further by determining the variance along more than two axes. One practical method of achieving this is to calculate the Principal Component of the frequency map.
This is described in 'Negative feedback as an organising principle for Artificial Neural Nets', Ph. D. Thesis, Strathclyde University, UK. The map is partitioned by a WO 98J18262 PCTJGB97102841 s line extending at right angles to the Principal Component and passing through the mean of the Component. The process is repeated for each sub-map.

It will be appreciated that various modifications may be made to the above described embodiment without departing . from the scope of the present invention. For example, colour image frames may be compressed by considering each primary colour separately. The same codebook may be used for each colour.

In some vector quantisation methods, compression is performed on image patches whose mean and variance values have been pre-normalised. In order to reconstruct the original image, the codebook indices are stored/transmitted along with the mean and variance values of the original patches. Codebooks for use with these methods comprise reference patches which also have their mean and variance values normalised. When preparing codebooks of this type it is appropriate to avoid biasing the frequency map with a lot of entries drawn from patches having a low variance since, when a patch of low variance is sent, most of the transmitted information is encoded in the value for the mean of the patch. The construction of codebooks can therefore be improved by pre-processing the training set to remove patches having a low variance. This can readily be done by making the probability that a patch is retained in the training set to be some increasing function of its variance.

For certain applications it may only be necessary to construct the look-up index tables, the actual codebooks being unnecessary. Consider for example the situation where it is desired to recognise a human face for the - purpose of security. A set of index tables are generated as described above. Using a HVQ process, images of the faces of persons having security clearance are encoded, the result for each image being an array of indices at the final level. (If a codebook had been created, these indices would address respective patches in the codebook.]

These arrays are stored in a database. When a person requires security clearance, an image of their face is obtained and is encoded using the HVQ process. The resulting array of indices is then compared against those S stored in the database.

Claims (13)

1) A method of constructing a vector quantisation codebook from at least one archetypal data array composed of a set of data values, the method comprising:
1) selecting from the data array(s) a first multiplicity of n-dimension sample vectors, each sample vector consisting of a set of data values which are contiguous in the array(s) and each sample vector defining a point in a finite n-dimensional space;
2) partitioning said space into a predetermined number of regions, each region containing substantially the same number of sample vectors;
3) assigning to each said region a unique index, where the indices are selected to codify the partitioning process carried out in step 2);
4) determining for substantially all possible points within said space, the regions in which these points are located, and constructing a look-up index table mapping substantially all possible points to the respective region indices;
5) selecting from the data array(s) a second multiplicity of n-dimension sample vectors, each sample vector consisting of a set of contiguous data values, and replacing each of these sample vectors with the associated region index obtained by looking up the index table generated in step 4) to create a further data array or arrays;
6) iteratively repeating steps 1) to 5) for the further data array(s) and any subsequently generated further data array(s), wherein each index generated in the final iteration is derived from a set of n m dimension sample vectors in the archetypal data array(s), where m is the number of iterations carried out;
7) for each index generated in the final iteration, creating an n m dimension reference vector which is representative of the associated set of n m dimension sample vectors in the archetypal data array; and 8) constructing a codebook containing the reference vectors, where each index generated in the final iteration points to the location in the codebook of the corresponding reference vector.
2) The method of claim 1 wherein, in step 1, the selected vectors are distributed substantially evenly about said data array(s).
3) The method of claim 1, wherein step 5) comprises sub-dividing the data arrays) into said second multiplicity of sample vectors, so that every entry is contained within at least one vector.
4) The method of any preceding claim, wherein step 2) comprises: (a) determining the mean and variance of the distribution of vectors for each dimension of said space;
(b) identifying that dimension for which the vectors have the greatest variance; and (c) dividing the space into two regions, a first region containing those vectors which have a value for the selected dimension which exceeds the mean value and a second region containing those vectors which do not.
5) The method of claims 1 - 3, wherein step 2) comprises determining the Principal Component (or regression line) of the vector distribution in the space, and then determining the mean of the Principal Component, then splitting the space into two by a line perpendicular to the Principal Component and passing through the mean thereof to create two regions or sub-spaces.
6) The method of claim 4, wherein in alternative repetitions, step 2) comprises determining the Principal Component (or regression line) of the vector distribution in the space, and then determining the mean of the Principal Component, then splitting the space into two by a line perpendicular to the Principal Component and passing through the mean thereof to create two regions or sub-spaces.
7) The method of claim 5, wherein in alternative repetitions step 2) comprises: (a) determining the mean and variance of the distribution of vectors for each dimension of said space; (b) identifying that dimension for which the vectors have the greatest variance; and (c) dividing the space into two regions, a first region containing those vectors which have a value for the selected dimension which exceeds the mean value and a second region containing those vectors which do not.
8) The method of any preceding claim, wherein for each repeat of steps 1) to 4), the sequence in which the regions are created is used to determine the assignment of indices.
9) The method of claim 8, wherein in alternative repetitions for binary indices, the first split determines the most significant bit of the index, the second split the next most significant bit and so on.
10) A method of constructing a vector quantisation codebook from at least one archetypal data array composed of a set of data values, the method comprising:
1) selecting from the data array(s) a first multiplicity of n-dimension sample vectors, each sample vector consisting of a set of data values which are contiguous in the array(s) and each sample vector defining a point within a finite n-dimensional space;
2) partitioning said space containing said sample vectors into a predetermined number of regions containing substantially the same number of vectors;
3) assigning to each said region a unique index, where the indices are selected to codify the partitioning process carried out in step 2);
4) determining for substantially a11 possible points within said space the regions in which these points are located, and constructing a look-up index table mapping substantially all such possible points to the respective region indices;
5) for each region, determining a reference vector which is representative of the sample vectors in that group; and 6) constructing a codebook containing the reference vectors, where each index points to the location in the codebook of the corresponding reference vector.
11) A method of constructing a set of index tables for use in a hierarchical vector quantisation process, the tables being constructed from at least one archetypal data array composed of a set of data values, the method comprising:
1) selecting from the data arrays) a first multiplicity of n-dimension sample vectors, each sample vector consisting of a set of data values which are contiguous in the array(s) and each sample vector defining a point in a finite n-dimensional space;
2) partitioning said space into a predetermined number of regions, each region containing substantially the same number of sample vectors;
3) assigning to each said region a unique index, where the indices are selected to codify the partitioning process carried out in step 2);
4) determining for substantially a11 possible points within said space, the regions in which these points are located, and constructing a look-up index table mapping substantially all possible points to the respective region indices;
5) selecting from the data array(s) a second multiplicity of n-dimension sample vectors, each vector consisting of a set of contiguous data values, and replacing each of these sample vectors with the associated region index obtained by looking up the index table generated in step 4) to create a further data array or arrays; and 6) iteratively repeating steps 1) to 5) for the further data arrays) and any subsequently generated further data array(s), wherein each index generated in the final iteration is derived from a set of n m dimension sample vectors in the archetypal data array(s), where m is the number of iterations carried out.
12) A data comparison codebook when constructed by the method of any one of claims 1 -10.
13) A set of index tables when constructed by the method of claim 11.
CA002269820A 1996-10-23 1997-10-15 Vector quantisation codebook generation method Abandoned CA2269820A1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
GB9622055.3 1996-10-23
GBGB9622055.3A GB9622055D0 (en) 1996-10-23 1996-10-23 Vector quantisation
PCT/GB1997/002841 WO1998018262A1 (en) 1996-10-23 1997-10-15 Vector quantisation codebook generation method

Publications (1)

Publication Number Publication Date
CA2269820A1 true CA2269820A1 (en) 1998-04-30

Family

ID=10801837

Family Applications (1)

Application Number Title Priority Date Filing Date
CA002269820A Abandoned CA2269820A1 (en) 1996-10-23 1997-10-15 Vector quantisation codebook generation method

Country Status (10)

Country Link
US (1) US6438268B1 (en)
EP (1) EP0934662B1 (en)
JP (1) JP2001505730A (en)
KR (1) KR20000052771A (en)
CN (1) CN1238100A (en)
AT (1) ATE223636T1 (en)
CA (1) CA2269820A1 (en)
DE (1) DE69715233D1 (en)
GB (1) GB9622055D0 (en)
WO (1) WO1998018262A1 (en)

Families Citing this family (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6941287B1 (en) * 1999-04-30 2005-09-06 E. I. Du Pont De Nemours And Company Distributed hierarchical evolutionary modeling and visualization of empirical data
KR100613106B1 (en) 1999-09-17 2006-08-17 삼성전자주식회사 An index assignment method for coding based on Tree-Structured Vector Quantization
GB0002623D0 (en) * 2000-02-05 2000-03-29 Res Councils Improvements in or relating to data compression
US7668362B2 (en) 2000-05-03 2010-02-23 Aperio Technologies, Inc. System and method for assessing virtual slide image quality
US7518652B2 (en) * 2000-05-03 2009-04-14 Aperio Technologies, Inc. Method and apparatus for pre-focus in a linear array based slide scanner
US6711283B1 (en) 2000-05-03 2004-03-23 Aperio Technologies, Inc. Fully automatic rapid microscope slide scanner
US7738688B2 (en) * 2000-05-03 2010-06-15 Aperio Technologies, Inc. System and method for viewing virtual slides
US7236640B2 (en) * 2000-08-18 2007-06-26 The Regents Of The University Of California Fixed, variable and adaptive bit rate data source encoding (compression) method
JP4393720B2 (en) * 2001-01-31 2010-01-06 富士通株式会社 Pattern recognition apparatus and method
US8023563B2 (en) * 2002-10-04 2011-09-20 Stmicroelectronics S.R.L. Method and system for processing signals via perceptive vectorial quantization, computer program product therefor
US7116440B2 (en) 2003-02-28 2006-10-03 Aperio Technologies, Inc. Image processing and analysis framework
US7257268B2 (en) * 2003-02-28 2007-08-14 Aperio Technologies, Inc. Systems and methods for image pattern recognition
US20050201470A1 (en) * 2004-03-12 2005-09-15 John Sievers Intra block walk around refresh for H.264
EP1756750A4 (en) 2004-05-27 2010-10-20 Aperio Technologies Inc Systems and methods for creating and viewing three dimensional virtual slides
EP1771841B1 (en) * 2004-07-23 2010-04-14 Telecom Italia S.p.A. Method for generating and using a vector codebook, method and device for compressing data, and distributed speech recognition system
EP1851726B1 (en) 2005-01-27 2018-11-28 Leica Biosystems Imaging, Inc. Systems and methods for viewing three dimensional virtual slides
US8164622B2 (en) 2005-07-01 2012-04-24 Aperio Technologies, Inc. System and method for single optical axis multi-detector microscope slide scanner
FR2893432B1 (en) * 2005-11-16 2008-01-04 Atmel Corp VECTOR QUANTIFIER BASED ON SPACE DICHOTOMY WITH N DIMENSIONS
US7602745B2 (en) * 2005-12-05 2009-10-13 Intel Corporation Multiple input, multiple output wireless communication system, associated methods and data structures
TWI323129B (en) * 2006-05-17 2010-04-01 Novatek Microelectronics Corp Block truncation coding (btc) method and apparatus
US8010555B2 (en) * 2006-06-30 2011-08-30 Aperio Technologies, Inc. System and method for managing images over a network
WO2008005868A2 (en) 2006-06-30 2008-01-10 Aperio Technologies, Inc. Method for storing and retrieving large images via dicom
WO2008137667A1 (en) 2007-05-04 2008-11-13 Aperio Technologies, Inc. System and method for quality assurance in pathology
CN101163239B (en) * 2007-11-28 2010-12-08 天津大学 Novel vector quantization inceptive code book generating method
EP2274833B1 (en) 2008-04-16 2016-08-10 Huawei Technologies Co., Ltd. Vector quantisation method
CN101281750B (en) * 2008-05-29 2010-12-22 上海交通大学 Expanding encoding and decoding system based on vector quantization high-order code book of variable splitting table
US8743195B2 (en) 2008-10-24 2014-06-03 Leica Biosystems Imaging, Inc. Whole slide fluorescence scanner
TWI376960B (en) * 2009-07-31 2012-11-11 Univ Nat Pingtung Sci & Tech Codebook generating method for image compression
US8098247B2 (en) * 2009-09-24 2012-01-17 Crucs Holdings, Llc Systems and methods for geometric data compression and encryption
JP5786110B2 (en) 2009-12-11 2015-09-30 ライカ バイオシステムズ イメージング インコーポレイテッドAperio Technologies, Inc. Improvement of signal-to-noise ratio in digital pathological image analysis
US8749408B1 (en) * 2012-12-27 2014-06-10 Mediatek Singapore Pte. Ltd. Methods for simplified MMI VQ based HARQ buffer reduction for LTE
US9710695B2 (en) 2013-03-15 2017-07-18 Sony Corporation Characterizing pathology images with statistical analysis of local neural network responses
JP6434162B2 (en) * 2015-10-28 2018-12-05 株式会社東芝 Data management system, data management method and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3382806T2 (en) * 1982-06-11 1996-11-14 Mitsubishi Electric Corp Vector quantizer
US5300931A (en) 1987-09-04 1994-04-05 Unisys Corporation Memory based vector quantization
US5371544A (en) * 1992-02-07 1994-12-06 At&T Corp. Geometric vector quantization

Also Published As

Publication number Publication date
DE69715233D1 (en) 2002-10-10
ATE223636T1 (en) 2002-09-15
EP0934662A1 (en) 1999-08-11
GB9622055D0 (en) 1996-12-18
EP0934662B1 (en) 2002-09-04
JP2001505730A (en) 2001-04-24
KR20000052771A (en) 2000-08-25
WO1998018262A1 (en) 1998-04-30
CN1238100A (en) 1999-12-08
US6438268B1 (en) 2002-08-20

Similar Documents

Publication Publication Date Title
EP0934662B1 (en) Vector quantisation codebook generation method
Jacquin Fractal image coding based on a theory of iterated contractive image transformations
Jacquin Image coding based on a fractal theory of iterated contractive image transformations
Kunt et al. Second-generation image-coding techniques
EP0628232B1 (en) Fractal coding of data
EP0387051A2 (en) Method and apparatus for coding image information, and method of creating code book
Geman et al. Invariant statistics and coding of natural microimages
Caso et al. Fast methods for fractal image encoding
Verevka Color image quantization in windows systems with local k-means algorithm
Kubrick et al. Classified vector quantisation of images: codebook design algorithm
Tushabe et al. Color processing using max-trees: A comparison on image compression
Li et al. Fractal color image compression
Hu et al. Colour palette generation schemes for colour image quantization
CN111954000A (en) Lossless compression method for high-speed toll collection picture set
US20050180630A1 (en) Scalable encoding method of color histogram
Riccio et al. Deferring range/domain comparisons in fractal image compression
Ong et al. A simple partitioning approach to fractal image compression
Agahian et al. Spectral compression using subspace clustering
Markas et al. Image compression methods with distortion controlled capabilities
El-Omari et al. Text-image segmentation and compression using adaptive statistical block based approach
JPH10173538A (en) Method for speeding up vector quantization compression
Chang et al. Image coding by a neural net classification process
Chao et al. Codebook design for vector quantization of images based on the fuzzy C-means clustering algorithm
Tsay et al. Image compression using VQ and fuzzy classified algorithm
Jaseela et al. A new approach to fractal image compression using DBSCAN

Legal Events

Date Code Title Description
FZDE Discontinued