Method and apparatus for representing and searching for colour images
Abstract
A method of representing a colour image comprises selecting a region of the image, selecting one or more colours as representative colours for the region and, for a region having two or more representative colours, calculating for each representative colour at least two parameters related to the colour distribution in relation to the respective representative colour and using said parameters to derive descriptors for the image region.

Term
Term ended
Projected expiry passed 28 April 2020, 6.4 years ago.
- Priority
- Filed
- Published
- Projected expiry
- Today
23 claims: 13 independent, 10 dependent
- 1A method of representing a color image, comprising:selecting two or more colors as representative colors for the image or a region of said image;calculating for each representative color a parameter related to the color variance in relation to the respective representative color for said image or the image region having two or more representative colors;and calculating for each representative color a weight parameter representing the relative significance of the representative color in the image or image region, based on the number of pixels corresponding to the representative color in the image or image region;and using said parameters to derive a descriptor for said image or image region, said descriptor including the parameter related to the corresponding color variance and the weight parameters.
- 6The method of any preceding claim, further comprising:selecting the image or image region.
- 7The method of any preceding claim wherein the weight parameter is based on a ratio of the number of pixels corresponding to the representative colour relative to the number of pixels in the image or image region.
- 12A method as claimed in any of claims 9 to 11 wherein the matching function is based on m f = Σi, j v i w j m s (i, j) where m s (a,b) = ∫exp [(-½)(q-m s )( T C a -1 (a-m a )] exp [(-½)(q-m b )( T C b -1 (q-m b )] dq and where m and C are descriptor values representing first and second central moments for color distributions for representative colors.
- 17A method for propagating a signal, comprising:generating a signal including a plurality of images, encoding said images onto said signal using a description language to define at least a color descriptor generated using a predetermined algorithm, including a plurality of fields, for at least one selected image wherein said fields include fields representing the color space description, dominant color description, color variance description, and dominant color weight description for said image.
- 18A system for representing an image, comprising:a detector for determining at least two dominant colors for an image or a region of said image;a controller for determining a color variance and a weight parameter representing the significance of the dominant color relative to other colors within the image or image region, based on a ratio of the number of pixels corresponding to the dominant color relative to the number of pixels in the image or image region for each dominant color to generate a color descriptor based on pixels within said image or the image region;and a memory for storing said color descriptor as a description for said image or image region in a memory.
- 19A system for searching for an image, comprising:an input device for inputting at least one image;a detector for determining at least two dominant colors for said input image or a region of said input image;a controller for determining a color variance with respect to each dominant color and weight parameters representing the significance of each dominant color relative to other colors in the image or image region based on a ratio of the number of pixels corresponding to the dominant color relative to the number of pixels in the image or image region for generating a color descriptor based on pixels within said image or image region;a comparator for comparing said color descriptor for said input image to a color descriptor for an image stored in memory to find at least one substantially matching image;and a display for displaying said at least one substantially matching image.
- 20A machine-readable medium having stored thereon a plurality of executable instructions, the plurality of instructions comprising instructions to:determine at least two dominant colors for an image or a region of said image;determine a color variance with respect to each dominant color and weight parameters representing the significance of each dominant color relative to other colors in the image or image region based on a ratio of the number of pixels corresponding to the dominant color relative to the number of pixels in the image or image region to generate a color descriptor based on pixels within said image or the image region;and store said color descriptor as a description for said image or image region in a memory.
- 21A machine-readable medium having stored thereon a plurality of executable instructions, the plurality of instructions comprising instructions to:receive an input including at least one image;determine at least two dominant colors for said input image or a region of said input image;and determine a color variance with respect to each dominant color and weight parameters representing the significance of each dominant color relative to other colors in the image or image region based on a ratio of the number of pixels corresponding to the dominant color relative to the number of pixels in the image or image region to generate a color descriptor based on pixels within said image or the image region;compare said color descriptor for said input image to a color descriptor for an image stored in memory to find at least one substantially matching image;and display said at least one substantially matching image.
- 22A method of representing a colour image comprising selecting a region of the image, selecting one or more colours as representative colours for the region and, for a region having two or more representative colours, calculating for each representative colour at least two parameters related to the colour distribution in relation to the respective representative colour and using said parameters to derive descriptors for the image region.
Independent claims13
49 paragraphs, as filed
0001The present invention relates to a method and apparatus for representing a colour image or a region of an image for searching purposes, and a method and apparatus for searching for colour images or image regions.
0002Searching techniques based on image content for retrieving still images and video from, for example, multimedia databases are known. Various image features, including colour, texture, edge information, shape and motion, have been used for such techniques. Applications of such techniques include Internet search engines, interactive TV, telemedicine and teleshopping.
0003For the purposes of retrieval of images from an image database, images or regions of images are represented by descriptors, including descriptors based on colours within the image. Various different types of colour-based descriptors are known, including the average colour of an image region, statistical moments based on colour variation within an image region, a representative colour, such as the colour that covers the largest area of an image region, and colour histograms, where a histogram is derived for an image region by counting the number of pixels in the region of each of a set of predetermined colours.
0004A known content-based image retrieval system is QBIC (query by image content) (see US 5579471), MPEG document M4582/P165: Colour Descriptors for MPEG-7 by IBM Almaden Research Center). In one of the modes of operation of that system. each image in a database is divided into blocks. Each block is grouped into subsets of similar colours and the largest such subset is selected. The average colour of the selected subset is chosen as the representative colour of the respective block. The representative colour information for the image is stored in the database. A query in the database can be made by selecting a query image. Representative colour information for the query image is derived in the same manner as described above. The query information is then compared with the information for the images stored in the database using an algorithm to locate the closest matches.
0005MPEG document M4582/P437 and US 5586197 discloses a similar approach, but using a more flexible method of dividing an image into blocks and a different method of comparing images. In another variation, described in MPEG document M4582/P576: Colour representation for visual objects, a single value for each of two representative colours per region are used.
0006Several techniques for representing images based on colour histograms have been developed, such as MPEG document M4582/P76: A colour descriptor for MPEG-7: Variable-Bin colour histogram. Other techniques use statistical descriptions of the colour distribution in an image region. For example, MPEG document M4582/P549: Colour Descriptor by using picture information measure of subregions in video sequences discloses a technique whereby an image is divided into high and low entropy regions and colour distribution features are calculated for each type of region. MPEG document M4852/P319: MPEG-7 Colour Descriptor Proposal describes using a mean and a covariance value as descriptors for an image region.
0007All the approaches described above have important shortcomings. Some of them, in particular colour histogram techniques, are highly accurate, but require relatively large amounts of storage and processing time. Other methods, such as the ones using one or two representative colours, have high storage and computational efficiency but are not precise enough. The statistical descriptors are a compromise between those two types of techniques, but they can suffer from lack of flexibility, especially in case where colours of pixels vary widely within a region.
0008The present invention provides a method of representing an image by approximating the colour distribution using a number of component distributions, each corresponding to a representative colour in an image region, to derive descriptors of the image region.
0009The invention also provides a method of searching for images using such descriptors.
0010The invention also provides a computer program for implementing said methods and a computer-readable medium storing such a computer program. The computer-readable medium may be a separable medium such as a floppy disc or CD-ROM or memory such as RAM.
0011An embodiment of the invention will be described with reference to the accompanying drawings of which: <ul id="ul0001" list-style="none" compact="compact"><li>Fig. 1 is a block diagram of a system according to an embodiment of the invention;</li><li>Fig. 2 is a flow chart of a first search method: and</li><li>Fig. 3 is a flow chart of a second search method.</li></ul>
0012A system according to an embodiment of the invention is shown in Fig. 1. The system includes a control unit 2 such as a computer for controlling operation of the system, a display unit 4 such as a monitor, connected to the control unit 2, for displaying outputs including images and text and a pointing device 6 such as a mouse for inputting instructions to the control unit 2. The system also includes an image database 8 storing digital versions of a plurality of images and a descriptor database 10 storing descriptor information, described in more detail below, for each of the images stored in the image database 8. Each of the image database 8 and the descriptor database 10 is connected to the control unit 2. The system also includes a search engine 12 which is a computer program under the control of the control unit 2 and which operates on the descriptor database 10.
0013In this embodiment, the elements of the system are provided on a single site, such as an image library, where the components of the system are permanently linked.
0014The descriptor database 10 stores descriptors of all the images stored in the image database. More specifically, in this embodiment, the descriptor database 10 contains descriptors for each of a plurality of regions of each image. The descriptors are derived as described below.
0015Each image in the database 8 is divided into a number of nonoverlapping rectangular blocks of pixels. For each block. a colour histogram is then derived, by selecting a predetermined number of colours. and counting the number of pixels in the block of each colour.
0016The colour histogram so obtained shows the colour distribution of the pixels within the block. In general, the region will have one or more dominant colours, and the histogram will have peaks corresponding to those colours.
0017The descriptors for the blocks are based on the dominant colours as identified from the histogram. The descriptor for each block has the following elements: <ul id="ul0002" list-style="none" compact="compact"><li>(1) The number of dominant colours, n, called the degree of the descriptor, where n ≥ 1; and for each dominant colour:</li><li>(2)(a) a weight representing the relative significance of the respective dominant colour in the block. Here, the weight is a ratio of the number of pixels in the block of the relevant colour to the total number of pixels in the block.<maths id="math0001"><img file="EP1445733A2_D0001.tif" /></maths></li></ul> where x, y and z index colour components, for example the red, green and blue colour components of the colour in RGB colour space. Here, the mean value corresponds to the colour components of the respective dominant colour.<maths id="math0002"><img file="EP1445733A2_D0002.tif" /></maths> where c<sub>ii</sub> represents variance of colour component i and c<sub>ij</sub> represents covariance between components i and j. The covariance matrix is symmetrical (c<sub>ij</sub> = c<sub>ji</sub>) so only six numbers are needed to store it.
0018In obtaining the descriptor as discussed above, the colour distribution is treated as n different sub-distributions, where n is the number of dominant colours, each sub-distribution centring about a respective dominant colour as the mean. The ranges of the sub-distributions may well overlap, and a suitable algorithm is used to determine the range of each distribution for calculating the weight, mean and covariance matrix, as will be understood by a person skilled in the art. One way of estimating the descriptor components is to fit Gaussian functions centred at histogram peaks to the histogram by minimising the difference between the actual histogram counts and values estimated from the mixture of Gaussian functions.
0019The descriptor database 10 stores a descriptor as defined above for each block of each image stored in the image database 8. The representation of the colour distribution within each block using the descriptor structure described above contains a large amount of descriptive information, but requires less storage space than, for example, full histogram information.
0020As an example, a colour histogram for a specific block may exhibit three peaks corresponding to three dominant colours. The histogram colour distribution is analysed as three colour sub-distributions and results in a descriptor including the number three indicating the number of dominant colours, three weights, three mean vectors, corresponding to the colour vectors for the three peaks, and three corresponding covariance matrices.
0021The system is used to search for images in the image database using the descriptors stored in the descriptor database. The present embodiment provides two search methods: a single colour based search and a region based search.
0022The single colour based search will be described with reference to the flowchart shown in Fig. 2.
0023In the single colour based search, the user inputs a query by selecting a colour to be searched, using the pointing device 6 and a menu such as a colour wheel or a palette displayed on the display unit 4 (step 102). The control unit 2 then obtains the corresponding colour vector for the query colour, the colour vector having components which are the respective colour components for the query colour, that is, the red, green and blue components (step 104).
0024The control unit 2 then uses the search engine 12 to search for images in the image database 8 that include the query colour. The search engine 12 performs a matching procedure using the query colour vector and the descriptors for the image blocks in the descriptor database 10 (step 106).
0025The matching procedure is performed using the following formula for calculating a matching value M.<maths id="math0003"><img file="EP1445733A2_D0003.tif" /></maths> where q is the query colour vector. A matching value is calculated for each dominant colour in each block using each value of m and C in the descriptor for the block. Thus, for a descriptor of degree n, n matching values are obtained.
0026The matching value can be considered as the value of the probability density function corresponding to each colour sub-distribution in the block at the point defined by the query colour value, modelling the probability density function as a Gaussian function.
0027For a given descriptor, the larger a matching value M, the closer the corresponding block is to a match with the selected colour.
0028When matching values have been calculated for each descriptor in the descriptor database 10, the search engine 12 orders the results by the size of M starting with the largest values of M, considering only the largest value of M for any descriptors of degree greater than one (step 108).
0029The control unit 2 takes the results of the matching procedure from the search engine 12, and retrieves from the image database a predetermined number K of those images which are the closest matches, corresponding to the K highest values of M. Those images are then displayed on the display unit 4 (step 110). The set-up of the control unit 2 determines how many of the closest matches are to be displayed on the display unit. That number can be changed by the user.
0030As will be understood from the above description. the single colour based search retrieves images from the image database 8 which have a block which has a dominant colour which is the same as or close to the colour initially selected by the user.
0031The region based search will be described with reference to the flowchart shown in Fig. 3.
0032In the region based search, the control unit 2 operates to display a predetermined set of search images, which are images from the image database 8, on the display unit 4 (step 202). The search images may be wholly determined by the set-up of the control unit, or may depend on other requirements input by the user. For example, in a larger system supporting keyword-based searches the user might input the word "leaves" which would result in a predetermined set of images depicting leaves being shown as the images for colour based search.
0033Each of the search images is shown with a grid dividing the image into blocks, corresponding to blocks for which the descriptors have been derived. The user then selects, using the pointing device 6, a block on one of the images which shows a colour distribution of interest (step 204).
0034The control unit 2 then retrieves the descriptor for the selected image block from the descriptor database 10 and uses it as a query descriptor (step 206). The descriptor is already available because the search images are taken from the image database 8. The search engine then performs a search comparing that query descriptor with the other descriptors stored in the descriptor database using matching functions (step 208).
0035For a query descriptor having a mean value <b>m</b><sub><b>a</b></sub> and covariance matrix C<sub>a</sub> for one of the dominant colours and another descriptor having a mean value <b>m</b><sub><b>b</b></sub> and covariance matrix C<sub>b</sub> for one of the dominant colours, a matching function is defined as:<maths id="math0004"><img file="EP1445733A2_D0004.tif" /></maths> where <b>q</b> is a 3-d vector akin to a colour vector and where the integral is calculated over the range from (0, 0, 0) to (255, 255, 255) where 255 is the maximum value of a colour component. The range of the integral in other embodiments will depend upon the colour co-ordinate system and representation used.
0036This is equivalent to modelling the corresponding colour sub-distributions for the image blocks as probability mass functions in the form of Gaussian functions, and determining the degree to which they overlap, or in other words determining the similarity between them. The larger the result of the above calculation, the closer are the corresponding colour distributions. In this case, the function determines the degree to which a colour sub-distribution in the query image block and a colour sub-distribution in a stored image overlap.
0037The full matching function for matching one descriptor with another is defined as:<maths id="math0005"><img file="EP1445733A2_D0005.tif" /></maths> where v and w are weights for sub-distributions, and the summation is over all sub-distributions in both regions.
0038Thus, for each dominant colour described in the descriptor of a query image block, a matching value is calculated with respect to each dominant colour in a descriptor from the descriptor database 10. The resulting matching values are weighted and then summed to give a final matching value corresponding to m<sub>f</sub>.
0039Full matching values are calculated as described above for all descriptors in the database with respect to the query descriptor. As in the single colour based search, the results are ordered (step 210), and the K images with the highest matching values, indicating the closest matches, are displayed on the display unit for the user (step 212).
0040A further iteration of a search can be performed by selecting an image region in an image found in the previous search.
0041Matching can be done using other similarity measures than those described above. A further example is given below.
0042For a pair of descriptors, F<sub>1</sub> and F<sub>2</sub>, for two regions. a similarity measure D is defined as follows:<maths id="math0006"><img file="EP1445733A2_D0006.tif" /></maths> where<maths id="math0007"><img file="EP1445733A2_D0007.tif" /></maths> and<maths id="math0008"><img file="EP1445733A2_D0008.tif" /></maths><maths id="math0009"><img file="EP1445733A2_D0009.tif" /></maths><maths id="math0010"><img file="EP1445733A2_D0010.tif" /></maths> Here, i and j index the representative colours; x and y index the descriptors; N<sub>1</sub> is the number of representative colours in the first descriptor; N<sub>2</sub> is the number of representative colours in the second descriptor; p<sub>1i</sub> is the ith weight in the first descriptor, p<sub>2j</sub> is the jth weight in the second descriptor; l, u and v represent colour components, such as red, green and blue colour components in this specific example; and c and v are the dominant colour values (mean values) and colour variances respectively, so c<sub>xil</sub> is the lth component of the ith representative colour value of the xth descriptor, and v<sub>xil</sub> is the lth component of the variance of the ith representative colour of the xth descriptor etc.
0043In contrast with the matching functions described previously, for descriptors F<sub>1</sub> and F<sub>2</sub>, the smaller the value of D, the closer is the match between the regions corresponding to the descriptors F<sub>1</sub> and F<sub>2</sub>. Accordingly, the values D resulting from a search procedure such as described above are ordered in increasing size starting with the smallest value of D. Otherwise, the searching and matching procedure can be carried out substantially as described above, with appropriate modifications to take account of the different similarity measure. It will be noted that this similarity measure uses the variances, and not the covariance matrix. Thus. the descriptor for a region includes the variances but does not need the covariance matrix. Accordingly, the storage requirement is reduced compared with the descriptor described previously.
0044A system according to the invention may, for example, be provided in an image library. Alternatively, the databases may be sited remote from the control unit of the system, connected to the control unit by a temporary link such as a telephone line or by a network such as the Internet. The image and descriptor databases may be provided, for example, in permanent storage or on portable data storage media such as CD-ROMs or DVDs.
0045In the above description, the colour representations have been described in terms of red, green and blue colour components. Of course, other representations can be used, such as a representation using a hue, saturation and intensity, or YUV co-ordinate system, or a subset of colour components in any colour space, for example only hue and saturation in HSI.
0046The embodiment of the invention described above uses descriptors derived for rectangular blocks of images. Other sub-regions of the image could be used as the basis for the descriptors. For example, regions of different shapes and sizes could be used. Alternatively, descriptors may be derived for regions of the image corresponding to objects, for example, a car, a house or a person. In either case, descriptors may be derived for all of the image or only part of it.
0047In the search procedure, instead of inputting a simple colour query or selecting an image block, the user can, for example, use the pointing device to describe a region of an image, say, by encircling it, whereupon the control unit derives a descriptor for that region and uses it for searching in a similar manner as described above. Also, instead of using images already stored in the image database for initiating a search, an image could be input into the system using, for example, an image scanner or a digital camera. In order to perform a search in such a situation, again the system first derives descriptors for the image or regions of the image, either automatically or as determined by the user.
0048Appropriate aspects of the invention can be implemented using hardware or software.
0049In the above embodiments, the component sub-distributions for each representative colour are approximated using Gaussian functions, and the mean and covariances of those functions are used as descriptor values. However, other functions or parameters can be used to approximate the component distributions, for example, using basis functions such as sine and cosine, with descriptors based on those functions.
16 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8 Sheet 9 Sheet 10 Sheet 11 Sheet 12 Sheet 13 Sheet 14 Sheet 15 Sheet 16
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| CN102819582A | Cited by | China | Search report |
| US5751286A | Cites | United States of America | Search report |
| JPH0981591A | Cites | Japan | Search report |
37 members in 9 offices
Priority claims3
| Document | Office | Kind | Date |
|---|---|---|---|
| 9909961 | United Kingdom | – | |
| 9909961 | United Kingdom | A | |
| 00929663 | European Patent Office (EPO) | A |
Members37
| Document | Office | Kind | |
|---|---|---|---|
| GB9909961D0 | United Kingdom | D0 | |
| GB2349460A | United Kingdom | A | |
| WO0067203A1 | World Intellectual Property Organization (WIPO) | A1 | |
| AU4767100A | Australia | A | |
| JP2000348179A | Japan | A | |
| KR20010113903A | Republic of Korea | A | |
| EP1173827A1 | European Patent Office (EPO) | A1 | |
| CN1358296A | China | A | |
| GB2349460B | United Kingdom | B | |
| JP2002543539A | Japan | A | |
| EP1173827B1 | European Patent Office (EPO) | B1 | |
| DE60011603D1 | Germany | D1 | |
| EP1445733A2This record | European Patent Office (EPO) | A2 | |
| US6801657B1 | United States of America | B1 | |
| EP1496473A2 | European Patent Office (EPO) | A2 | |
| DE60011603T2 | Germany | T2 | |
| US7015931B1 | United States of America | B1 | |
| US2006072829A1 | United States of America | A1 | |
| KR20070008729A | Republic of Korea | A | |
| EP1445733A3 | European Patent Office (EPO) | A3 | |
| EP1496473A3 | European Patent Office (EPO) | A3 | |
| CN1322457C | China | C | |
| KR20070086677A | Republic of Korea | A | |
| CN101038595A | China | A | |
| CN101042708A | China | A | |
| KR100809798B1 | Republic of Korea | B1 | |
| KR100860902B1 | Republic of Korea | B1 | |
| KR100863631B1 | Republic of Korea | B1 | |
| US7636094B2 | United States of America | B2 | |
| CN100573525C | China | C | |
| CN100573526C | China | C | |
| JP2010262673A | Japan | A | |
| JP2011146078A | Japan | A | |
| JP2011192316A | Japan | A | |
| JP5121972B2 | Japan | B2 | |
| JP5123998B2 | Japan | B2 | |
| JP5236785B2 | Japan | B2 |
12 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Application deemed to be withdrawnWithdrawn18D | 18D | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWNSTAA | STAA | |
| First examination report despatched17Q | 17Q | |
| Designation fees paidAKX | AKX | |
| Request for examination filed17P | 17P | |
| Designated contracting statesAK | AK | |
| Search report despatchedORIGINAL CODE: 0009013PUAL | PUAL | |
| Party data changed (applicant data changed or rights of an application transferred)RAP1 | RAP1 | |
| Party data changed (applicant data changed or rights of an application transferred)RAP1 | RAP1 | |
| Divisional application: reference to earlier applicationAC | AC | |
| Designated contracting statesAK | AK | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI |
Numbers
- Publication
- 1445733
- Application
- 40762999
Titles3
- German
- Verfahren und Vorrichtung zur Darstellung und Suche von digitalen Farbbildern
- English
- Method and apparatus for representing and searching for colour images
- French
- Méthode et appareil pour représenter et pour rechercher d'images couleurs numériques
Classification
- CPC, 9
- G01J3/50
- G06T7/00
- G01J3/463
- G06F16/5838
- G06V10/56
- Y10S707/99945
- Y10S707/99933
- Y10S707/99936
- G06F16/5862
- IPC, 7
- G06T1 00
- G06T7 90
- G01J3 50
- G06F17 30
- G06V10 56
- H04N1 46
- H04N9 64
Designated states4
- Contracting states, 4
- Germany
- France
- United Kingdom
- Italy