Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
IMAGE PROCESSING APPARATUS AND METHOD FOR ENCODING AN IMAGE DESCRIPTOR BASED ON A GRADIENT HISTOGRAM
Document Type and Number:
WIPO Patent Application WO/2015/011612
Kind Code:
A1
Abstract:
It is described a method for encoding an image descriptor (H) based on gradient histograms (hp ) into a transformed descriptor (V) comprising transformed subdescriptors (vp ), wherein each gradient histogram (hp) comprises a plurality of histogram bins (hi) and each subdescriptor (vp) comprises a set of values (vj), characterised in that said subdescriptors (vp ) are generated according to an element utilisation order list specifying a subdescriptor index (p)of said set of subdescriptors (vp) and an element index (j) of said set of values (vj).

Inventors:
PASCHALAKIS STAVROS (GB)
Application Number:
PCT/IB2014/063158
Publication Date:
January 29, 2015
Filing Date:
July 16, 2014
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SISVEL TECHNOLOGY SRL (IT)
International Classes:
G06T7/40; G06V10/50
Foreign References:
ITTO20120602A12014-01-10
Other References:
MEHMET FIRAT VURAL ET AL: "Registration of multispectral satellite images with Orientation-Restricted SIFT", GEOSCIENCE AND REMOTE SENSING SYMPOSIUM,2009 IEEE INTERNATIONAL,IGARSS 2009, IEEE, PISCATAWAY, NJ, USA, 12 July 2009 (2009-07-12), pages III - 243, XP031631200, ISBN: 978-1-4244-3394-0
VIJAY CHANDRASEKAR ET AL.: "Survey of SIFT Compression schemes", 31 December 2010 (2010-12-31), XP002719362, Retrieved from the Internet [retrieved on 20140128]
MANJUNATH B S ET AL: "Color and Texture Descriptors", IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, IEEE SERVICE CENTER, PISCATAWAY, NJ, US, vol. 11, no. 6, 1 June 2001 (2001-06-01), XP011014212, ISSN: 1051-8215, DOI: 10.1109/76.927424
MA R ET AL: "MI-SIFT: Mirror and Inversion Invariant Generalization for SIFT Descriptor", CIVR, ACM, US, 5 July 2010 (2010-07-05), pages 228 - 235, XP007918135, ISBN: 978-1-4503-0117-6
CHANDRASEKHAR V ET AL: "CHoG: Compressed histogram of gradients A low bit-rate feature descriptor", 2009 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION : CVPR 2009 ; MIAMI [BEACH], FLORIDA, USA, 20 - 25 JUNE 2009, IEEE, PISCATAWAY, NJ, 20 June 2009 (2009-06-20), pages 2504 - 2511, XP031607260, ISBN: 978-1-4244-3992-8
DAVID G. LOWE: "Distinctive image features from scale-invariant keypoints", INTERNATIONAL JOURNAL OF COMPUTER VISION, vol. 60, no. 2, 2004, pages 91 - 110, XP002756976, DOI: doi:10.1023/B:VISI.0000029664.99615.94
Attorney, Agent or Firm:
CAMOLESE, Marco et al. (Via Sestriere 100, to None, IT)
Download PDF:
Claims:
CLAIMS

1. Method for encoding an image descriptor (H) based on gradient histograms (hp) into a transformed descriptor (V) comprising transformed subdescriptors (vp), wherein each gradient histogram (hp) comprises a plurality of histogram bins (hi) and each subdescriptor (vp) comprises a set of values (vj), characterised in that said subdescriptors (vp) are generated according to an element utilisation order list specifying a subdescriptor index (p) of said set of subdescriptors (vp) and an element index (/) of said set of values (vj).

2. Method according to claim 1, wherein said subdescriptors (vp) are grouped into subdescriptor groups according to their distance from an image descriptor centre and wherein, within each subdescriptor group, corresponding values (vj) of a subdescriptor group are all assigned a same encoding priority in said element utilisation order list.

3. Method according to claim 2, wherein said subdescriptors (vp) are grouped into a first group containing all the subdescriptors with the smallest distance to the image descriptor centre and a second group containing all the remaining subdescriptors.

4. Method according to claim 2, wherein said subdescriptors (vp) are grouped into a first group containing the subdescriptors with the greatest distance from the descriptor centre, a second group containing a first set of subdescriptors with the second greatest distance to the descriptor centre, a third group containing a second set of subdescriptors with the second greatest distance to the descriptor centre, and a fourth group containing the subdescriptors with the smallest distance to the descriptor centre.

5. Method according to claim 4, wherein said first, second, third and fourth group contains the same number of subdescriptors.

6. Method according to claim 1, wherein said subdescriptors (vp) are grouped into subdescriptor groups according to their distance from an image descriptor centre and according to their reciprocal distances and wherein, within each subdescriptor group, corresponding values (vj) of a subdescriptor group are all assigned a same encoding priority in said element utilisation order list.

7. Method according to claim 6, wherein said subdescriptors (vp) are grouped into a first group containing the subdescriptors with the greatest distance from the descriptor centre, a second group containing a first set of subdescriptors with the second greatest distance to the descriptor centre, a third group containing a second set of subdescriptors with the second greatest distance to the descriptor centre, and a fourth group containing the subdescriptors with the smallest distance to the descriptor centre.

8. Method according to claim 6, wherein a subdescriptor group does not contain subdescriptors whose distance to each other is below a predetermined threshold.

9. Method according to claim 6, wherein said reciprocal distances comprises maximising the total distance between subdescriptors.

10. Method according to claim 1, wherein said subdescriptors (vp) are grouped into subdescriptor groups according to their distance from an image descriptor centre and are ordered according to their reciprocal distances and wherein, within each subdescriptor group, corresponding values (¾) of a subdescriptor group are all assigned a same encoding priority in said element utilisation order list.

11. Method according to claim 10, wherein a subdescriptor group does not contain consecutive subdescriptors whose distance is below a predetermined threshold.

12. Method according to claim 10, wherein said reciprocal distances comprises maximising the distance between consecutive subdescriptors.

13. Method according to claim 1, wherein said subdescriptors (vp) are grouped into subdescriptor groups according to their distance from an image descriptor centre and the subdescriptors of each group are encoded in a sequence defined according to their corresponding encoding characteristics and wherein, within each subdescriptor group, corresponding values (¾) of a subdescriptor group are all assigned a same encoding priority in said element utilisation order list.

14. Method according to claim 13, wherein said encoding characteristics are corresponding transforms.

15. Method according to claim 14, wherein, for each subdescriptor group, the transform of a first subdescriptor in the group is a first type of transform (A), the transform of a second subdescriptor in the group is said first type of transform (A), the transform of a third subdescriptor in the group is a second type of transform (B) and the transform of a fourth subdescriptor in the group is said second type of transform (B).

16. Method according to claim 13, wherein said encoding characteristics are type and level of quantisation, or combinations thereof.

17. Method according to claim 2, wherein higher priority is given to a specific class of values.

18. Method according to claim 2, wherein higher priority is given to the subdescriptor groups closest to the descriptor centre.

19. Method according to claims 2 to 18, wherein said element utilisation list is stored or transmitted alongside the image descriptor.

20. Method for encoding an image descriptor (H) according to claims 1 to 19, wherein said image descriptor is converted to a descriptor having a reduced length by truncating one or more last elements of said descriptor.

21. Method for encoding an image descriptor according to claim 1, wherein said element utilisation order takes the form of a 16 or 24 or 32 or 128-element ordered list.

22. Image processing apparatus comprising means for carrying out the method according to any one of the claims 1 to 21.

Description:
IMAGE PROCESSING APPARATUS AND METHOD FOR ENCODING AN IMAGE DESCRIPTOR BASED ON A GRADIENT HISTOGRAM

DESCRIPTION

The present invention relates to a method for efficiently encoding, transcoding, decoding and processing image descriptors computed in local regions around image interest keypoints and to an image processing device comprising means for encoding, transcoding, decoding and processing such descriptors.

Such image descriptors have found wide applicability in many computer vision applications including object recognition, content-based image retrieval, and image registration, to name a few.

Existing approaches to the encoding of such descriptors exhibit certain drawbacks.

For example, existing encoding approaches result in descriptors which require parsing of the whole descriptors to perform transcoding, whereby a descriptor of a given descriptor length is converted to a descriptor of a different descriptor length, or to perform decoding and comparison of descriptors of different lengths.

As another example, existing encoding approaches are inefficient in terms of encoding complexity because they ignore the commonalities and redundancies in the operations which are required to produce variable-length image descriptors.

The not yet published Italian patent application no. TO2012A000602 filed by the Applicant itself describes the encoding of local image descriptors, whereby robust, discriminative, scalable and compact image descriptors are computed from image descriptors employing histograms of gradients based on the transformation of said histograms of gradients, where said transformation captures the salient and robust information contained therein in the form of the shape of the distributions and the relationship among their bin values.

In said not yet published Italian patent application encoding methods of said descriptors are disclosed which are more efficient than the prior art methods in terms of producing easily scalable bitstreams.

Such descriptors are disclosed in the above mentioned not yet published Italian patent application no. TO2012A000602 which discloses the computation of robust, discriminative, scalable and compact image descriptors from image descriptors employing histograms of gradients based on the transformation of said histograms of gradients, where said transformation captures the salient and robust information contained therein in the form of the shape of the distributions and the relationship among their bin values.

Important aspects of the computation of robust, discriminative, scalable and compact image descriptors from image descriptors employing histograms of gradients, in particular a SIFT image descriptor, according to the not yet published Italian patent application no. TO2012A000602 are hereinbelow described.

Briefly, with the SIFT method, local image descriptors are formed as follows: first, a search across multiple images scales and locations is performed to identify and localise stable image keypoints that are invariant to scale and orientation; then, for each keypoint, one or more dominant orientations are determined based on local image gradients, allowing the subsequent local descriptor computation to be performed relative to the assigned orientation, scale and location of each keypoint, thus achieving invariance to these transformations. Then, local image descriptors around keypoints are formed as follows: first, gradient magnitude and orientation information is calculated at image sample points in a region around the keypoint; then, these samples are accumulated into orientation histograms summarizing the contents over nxn subregions.

By way of illustration only, an example of a SIFT keypoint descriptor is shown in Figures la and lb, where Figure la shows a subdivision of a local region R into 4x4 subregions SR and Figure lb shows a subdivision of the 360° range of orientations into eight bins for each orientation histogram, with the length of each arrow corresponding to the magnitude of that histogram entry. Thus, a local image descriptor as illustrated in Figure 1 has 4x4x8 = 128 elements. More details of the SIFT technique can be found in David G. Lowe, "Distinctive image features from scale-invariant keypoints," International Journal of Computer Vision, 60, 2 (2004), pp. 91-110.

According to the not yet published Italian patent application no. TO2012A000602, a robust, discriminative, scalable and compact image descriptor may be calculated from a SIFT descriptor as follows.

In the following description, H in an entire SIFT descriptor comprising 16 histograms of gradients h each with eight bins h, whereas V is an entire local descriptor according to the present invention comprising 16 subdescriptors v each with eight elements v.

Let H denote a SIFT local image descriptor comprising 16 histograms of gradients ho - his, as shown in Figure 2a, each histogram comprising eight bin values ho - hi, as shown in Figure 2b. A more robust, discriminative, scalable and compact image descriptor may be computed by transforming each of ho - his of H and then performing scalar quantisation on the resultant transformed values. More specifically, each of ho - his is transformed according to Transform A or Transform B, as shown below, according to the transform utilisation information of Figure 3, i.e. Transform A is applied to ho, h 2 , hs, hz, lis, hio, i3, his and Transform B is applied to hi, I13, h 4 , he, h¾ hn, hi 2 , hi 4 , giving the transformed descriptor V with subdescriptors vo - V15, corresponding to ho - his respectively, and each comprising elements Ό0-Ό7, giving a total of 128 elements.

Transform A (1)

Ό7 = (ho + hi + hi + he) - (hi + h3 + hs + hi)

Transform B (2)

vo = ho- hi

V7 = (ho + hi + hi + ¾3) - (¾4 + ¾5 + h + ¾7)

Then, each element undergoes coarse scalar quantisation, for example ternary (3-level) quantisation, with the quantisation thresholds selected so as to achieve a specific occurrence probability distribution among the quantisation bins for each element. This scalar quantisation produces the quantised descriptor V, with subdescriptors v, ~ o - v, ~ i5, each comprising elements Ό ~Ο-Ό~7, again with a total of 128 elements. This compact descriptor captures the most discriminative and robust information contained in the original histograms of gradients, in the form of the shape of the distributions and the relationship among their bin values.

A key advantage of descriptor V, as well as its quantised version V, , is that it is highly scalable, and its dimensionality may be easily reduced if required by an application's storage requirements or a transmission channel's characteristics by simply eliminating one or more of its elements. For the sake of simplicity, in the description that follows there will be described important aspects of the invention in terms of the encoding of pre-quantised descriptor V with subdescriptors vo - is, each comprising elements Ό0-Ό7 and, unless otherwise stated, it should be understood that the encoding of the quantised descriptor V, proceeds in a similar manner.

Figures 4a-4e show exemplary sets of elements which have been found to produce excellent discriminative power and robustness for five target descriptor lengths, from descriptor length 0 (DLO), the shortest descriptor length utilising only 20 descriptor elements, to descriptor length 4 (DL4), the longest descriptor length utilising all 128 elements. More specifically, Figure 4a shows an exemplary set of elements for descriptor length DLO comprising 20 elements, Figure 4b shows an exemplary set of elements for descriptor length DL1 comprising 40 elements, Figure 4c shows an exemplary set of elements for descriptor length DL2 comprising 64 elements, Figure 4d shows an exemplary set of elements for descriptor length DL3 comprising 80 elements, and Figure 4e shows an exemplary set of elements for descriptor length DL4 comprising all 128 elements. Thus, for each descriptor length, each element of each subdescriptor will or will not be encoded according to the element utilisation sets of Figure 4a-4e.

Key to this scalability property is that the set of utilised elements for each descriptor length must be the same as or a subset of the set of utilised elements for all higher descriptor lengths, as illustrated in Figures 4a-4e. This allows the transcoding and comparison of descriptors of different lengths by simple elimination of the excess elements of the descriptor with the higher descriptor length so that it is reduced to the same set of elements as the descriptor with the lower descriptor length.

A straightforward encoding method of this descriptor comprises calculating and encoding the elements in a "by-subdescriptor" order, i.e. in the general case as i7o,o, ΌΟ,Ι, i7o,7, Όΐ,ο, Όΐ,ι, ..., Όΐ,7, ..., 015,0, 015,1, ..., ϋΐ5,7 where Vi,j denotes element Vj of subdescriptor \ This means encoding elements 00, 01, ..., 07 for transformed histogram vo, then encoding elements 00, 01, ..., Ό7 for transformed histogram vi, etc., using the appropriate transforms, for example as illustrated in Figure 3, and also using the appropriate element utilisation sets for the desired descriptor length, for example as illustrated in Figure 4, to decide which elements should be encoded.

This encoding results, for example for a descriptor length DL0, to a descriptor 170,0, 01,0, 02,0, ϋ ¾0' ¾0, Z¾,0, y ¾6, 06,0, 06,6, 07,0, 08,0, 09,0, 09,6, 010,0, 010,6, 011,0, 012,0, 013,0,

014,0, 0i5,o and for a descriptor length DL1 to a descriptor ΌΟ,Ο, ΌΟ,Ι, ΌΙ,Ο, ΌΙ,Ι, ΌΙ,Ο,

02.1, 03,0, 03,1, 04,0, 04,1, 05,0, 05,1, 05,2, 05,6, 06,0, 06,1, 06,2, 06,6, 07,0, 07,1, 08,0, 08,1, 09,0, 09,1,

09.2, 09,6, 010,0, 010,1, 010,2, 010,6, 011,0, 011,1, 012,0, 012,1, 013,0, 013,1, 014,0, 014,1, 015,0, 015,1.

Figure 5 illustrates the operation of such a straightforward encoder as a sequence of steps. In the following description, as well as in subsequent descriptions of an encoder's operation, unless otherwise specified, such a sequence of steps corresponds to steps which are conceptual and do not correspond to specific hardware of software implementations, components and instructions, but are representative of the overall operation of the encoder. More specifically, Figure 5 illustrates the operation of an encoder for a descriptor length DL c, for example corresponding to one of the descriptor lengths illustrated in Figure 4. In step S100 of Figure 5, the encoding of the descriptor begins at the first subdescriptor, i.e. vo. In step S110, the appropriate transform is selected for the subdescriptor being processed, for example according to the transform utilisation of Figure 3. It should be noted that the computation of descriptor V from descriptor H according to two different transforms as described here is only an example. The computation of descriptor V from descriptor H may also be performed according to a single transform, for example only Transform A or only Transform B, rendering step S110 unnecessary, or according to more than two transforms. In step S120, the encoding of the subdescriptor being processed begins at the first subdescriptor element, i.e. VQ. Then, in step S130, the use or not of the particular element of the particular subdescriptor, i.e. OQ,Q is checked against the element utilisation information for descriptor length DL c, for example using one of the utilisation sets of Figure 4. If the element is not in use, then processing moves to step S150. If the element is in use for the descriptor length DL/c, then its encoding takes place in step S140. Here, as well as in subsequent descriptions of an encoder's operation, unless otherwise specified, the word "encoding" means one or more actions, or combination thereof, that make the element OQ,Q part of the local image descriptor, said actions including, but way of example and without limitation, the calculation according to the appropriate transform function of (1) or (2) seen earlier, the selection of the element for inclusion into the local image descriptor in the case all elements are pre-calculated without knowledge of which elements will be finally used in the descriptor, the quantisation of the element value, the storage of the element in volatile or non-volatile memory and the transmission of the element along a transmission channel. After step S140, or if it was decided that the element is not in use for the descriptor length DL/c in step S130, the processing moves to step S150. In step S150, if the current element is not the last element of the subdescriptor, the processing moves to the next element of the subdescriptor, otherwise the processing moves to step S160. In step S160, if the current subdescriptor is not the last subdescriptor of the local image descriptor, the processing moves to the next subdescriptor of the local image descriptor, otherwise the processing ends. Thus, it is clear that steps S100, S120, S150, and S160 relate to the order in which the processing is performed, while steps S110, S130 and S140 relate to the actual encoding of the local image descriptor.

Another straightforward encoding method of this descriptor comprises calculating and encoding the elements in a "by-element" order, i.e. in the general case as c¾,o, ui,o, ui5,o, ΌΟ,Ι, vi,i, uo,7, ui,7, ui5,7 i.e. encoding element vo for subdescriptors vo, vi,..., is, then encoding element vi for subdescriptors vo, vi,..., is, etc., again using the appropriate transforms, for example as illustrated in Figure 3, and also using the appropriate element utilisation sets for the desired descriptor length, for example as illustrated in Figure 4, to decide which elements should be encoded. Such an encoder may operate in an analogous fashion to the encoder of Figure 5, with the appropriate reordering of steps. In general, neither of the two aforementioned methods offers an advantage over the other method. For the purposes of transcoding, decoding and processing, the decoder must also know the encoding process and the element ordering and utilisation sets to be able to process and compare descriptors, possibly of different lengths, for the purposes of the related computer vision applications. Thus, the element utilisation sets must be either permanently fixed or stored/ transmitted alongside the descriptors. In this context, the straightforward encoding process is disadvantageous.

More specifically, such an encoding ignores the relative importance between different elements in the encoding order. Consequently, in terms of transcoding, whereby a descriptor of a given descriptor length is converted to a descriptor of a different descriptor length, or in terms of decoding and comparing descriptors of different lengths by comparing corresponding elements between the two descriptors, such an encoding necessitates parsing of the descriptors to achieve the desired result.

Furthermore, such an encoding ignores the redundancy patterns in the relative importance between different elements and is unnecessarily complex with regards to deciding whether specific elements should be encoded or not.

It is therefore an object of the present invention to disclose a method for encoding an image descriptor based on a gradient histogram, and relative image processing apparatus, which is more efficient with respect to the prior art methods.

It is a further object of the present invention to disclose a method for encoding an image descriptor based on a gradient histogram, and relative image processing apparatus, which is more flexible.

It is a further object of the present invention to disclose a method for encoding an image descriptor based on a gradient histogram, and relative image processing apparatus, which allows to achieve an optimised encoder implementation.

It is a further object of the present invention to disclose a method for encoding an image descriptor based on a gradient histogram, and relative image processing apparatus, which allows to obtain image descriptors of any length. These and other objects of the invention are achieved through a method for encoding an image descriptor based on a gradient histogram, and relative image processing apparatus, as claimed in the appended claims, which are an integral part of the present description.

Briefly, it is disclosed a method for efficiently encoding image descriptors such as the ones above described by encoding them according to an element utilisation order, resulting in scalable descriptors which can be converted to lower descriptor lengths by simple descriptor truncation instead of parsing. The encoding is carried out according to subdescriptor groups, formed according to the redundancy patterns in the relative importance between the corresponding elements of said subdescriptor groups.

More specifically, said grouping is performed by grouping subdescriptors whose corresponding elements have a similar importance in an ordering of all the elements of the descriptor according to their relative importance in terms of achieving high recognition performance, more specifically by grouping subdescriptors according to their distance from the descriptor centre and additionally by grouping subdescriptors according to the distance between them and/ or additionally by ordering the subdescriptors of a group according to corresponding encoding characteristics and/ or additionally by ordering the subdescriptors of a group according to the distance between them.

The encoding method according to the invention is advantageously more efficient that the prior art ones in terms of efficiency, of computational complexity and/ or of the amount of information needed to generate scalable bitstreams.

Further features of the invention are set out in the appended claims, which are intended as an integral part of the present description.

The above objects will become more apparent from the following detailed description of the method for encoding an image descriptor based on a gradient histogram, and relative image processing apparatus, with particular reference to the annexed drawings, wherein:

- Figure la and lb show an example of a prior art keypoint descriptor;

- Figures 2a and 2b show histograms of gradients of the keypoint descriptor of Figure 1 and bin values related to one of said histogram of gradients, respectively;

- Figure 3 shows exemplary transforms to be applied to the histograms of gradients of Figure 2;

- Figures 4a-4e show exemplary sets of elements for five respective targets descriptor lengths;

- Figure 5 represents a flow-chart illustrating the operation of an encoder using the sets of elements of Figure 4;

- Figure 6 shows an element utilisation order used by a method according to the present invention;

- Figure 7 illustrates the operation of an encoder using the element utilisation order of Figure 6;

- Figure 8 shows the centres of a region and of a subregion of a local image descriptor;

- Figure 9 shows a first grouping of subdescriptors of a local image descriptor according to a first embodiment or a fourth embodiment of a method according to the invention;

- Figures 12 and 14 show second and third exemplary groupings, respectively, of subdescriptors of a local image descriptor according to the first embodiment of a method according to the invention;

- Figures 10, 13 and 15 show first, second and third group-element utilisation orders relating to the groupings of Figures 9, 12, 14 and 17, respectively;

- Figure 11 illustrates the operation of an encoder according to a first, second or fourth embodiment of a method according to the invention;

- Figure 16 shows a fourth exemplary grouping according to a first embodiment of a method according to the invention;

- Figure 17 shows a fifth exemplary grouping of subdescriptors of a local image descriptor according to the second and third embodiment of a method according to the invention;

- Figure 18 illustrates the operation of an encoder using the element utilisation order of Figure 17, according to third embodiment of a method according to the invention;

- Figure 19 illustrates the operation of an encoder according to a fourth embodiment of a method according to the invention;

- Figure 20 shows an exemplary grouping of subdescriptors of a local image descriptor according to a fifth embodiment of a method according to the invention;

- Figures 21a-21e show exemplary sets of elements according to the grouping of Figure 20;

- Figures 22a-22e show the sets of elements of Figures 21a-21e, respectively, when converted into group-element utilisation sets;

- Figure 23 illustrates the operation of an encoder for the encoding of a descriptor for providing the converted sets of elements of Figures 22a-22e;

- Figure 24 illustrates an image processing device suitable for carrying out the method according to the present invention.

According to the invention, rather than encoding according to element utilisation sets for different descriptor lengths, a more efficient encoder may operate according to an element utilisation order, producing a descriptor whose elements are ordered according to the element utilisation order and which can be converted to lower descriptor lengths by simple descriptor truncation. Such an element utilisation order may take the form of a 128-element ordered list, which may be encoded in 112 bytes, each list entry specifying a subdescriptor index and an element index, as illustrated in Figure 6. So, for example, Figure 6 shows an element priority list whereby element c¾,o is given the highest priority, element u¾o is given the second highest priority, etc. Therefore, such an element utilisation order encoder may produce a descriptor of length Z by encoding the top Z elements in the list.

Figure 7 illustrates the operation of such an encoder using the element utilisation order of Figure 6. With the encoder of Figure 7, the encoding of the descriptor begins with the element with the top priority (Priority 1) in the element utilisation order, i.e. element vo of subdescriptor s. In step S200, the appropriate transform is selected according to the subdescriptor to which this element belongs, for example according to the transform utilisation of Figure 3. It should be noted that the computation of descriptor V from descriptor H according to two different transforms as described here is only an example. In different embodiments, the computation of descriptor V from descriptor H may also be performed according to a single transform, for example only Transform A or only Transform B, rendering step S200 unnecessary, or according to more than two transforms. Then, the encoding of the element, i.e. c¾,o, takes place in step S210. Then, in step S220, if a desired number of Z elements of the descriptor has not yet been encoded, the processing moves to the element with the next highest priority in the element utilisation order, otherwise the processing ends. Thus, step S220 relates to the control of how many elements to encode, while steps S200 and S210 relate to the actual encoding of the local image descriptor. Thus, the encoder of Figure 7, using an element utilisation order as in Figure 6, produces descriptors whose elements are ordered according to the element utilisation order and which can be converted to lower descriptor lengths by simple descriptor truncation, i.e. eliminating the last elements of the descriptor, and is more flexible than the encoder of Figure 5 which uses element utilisation sets as in Figure 4. The number of elements Z in the descriptor may be stored/ transmitted alongside the descriptor, possibly at the image level. For the purposes of transcoding, decoding and processing, the decoder must also know the element ordering to be able to process for the purposes of the related computer vision applications. Thus, the element utilisation order must be either permanently fixed or stored/ transmitted alongside the descriptors.

In practice, however, the efficiency of the encoder of Figure 7 can be improved. This is because the element utilisation order illustrated in Figure 6 contains a significant amount of redundancy and is, to some extent, impractical to generate and use.

The reason for this is that the complete set of 128 elements of V do not correspond to a single descriptor whose elements may be ordered according to a single priority list, but to 16 different 8-element subdescriptors, each subdescriptor extracted from a different histogram of gradients according to a specific transform and so that corresponding elements between all subdescriptors capture the relation between bins with the same angular separation.

Thus, it has been found that, in terms of achieving a high recognition performance with a limited set of elements, a descriptor needs to strike a balance between a uniform element distribution, i.e. selecting element(s) from as many subdescriptors as possible, and distance from the descriptor centre, i.e. giving higher priority to subdescriptors which are closer to the descriptor centre. At the same time, it has also been found that the importance of corresponding elements from different subdescriptors is approximately the same when the distance of the subdescriptors to the descriptor centre is the same, while the importance of corresponding elements from different subdescriptors increases as the distance of the subdescriptors to the descriptor centre decreases.

In this context, the distance of a subdescriptor v to the descriptor centre refers to the distance between the centre of the subregion which corresponds to the histogram of gradients h which gives rise to the subdescriptor v and the centre of the region which comprises the subregions, as illustrated in Figure 8. While it is possible to refer back to the dimensions of the image region and subregions to compute said distances, it is not necessary since there is only interest in comparing said distances. Therefore said distances may be computed by assuming that each side of each subregion has, for example, a unit length. Furthermore, in this description said distances are Euclidean distances, although other suitable distance measures may also be used.

Consequently, it is observed that, for the purposes of efficient encoding of an image descriptor, its subdescriptors may be grouped so that corresponding descriptor elements for the subdescriptors of each group are assigned a common importance in the utilisation order and are encoded jointly.

First embodiment

In a first embodiment of the invention, the subdescriptors are grouped according to their distance from the descriptor centre.

For example, one such grouping is illustrated in Figure 9, where there are three groups, namely go = {vo, 3, vi 2 , is}, containing the subdescriptors with the greatest distance to the descriptor centre, gi = {vi, v 2 , v 4 , vz, s, \\\, 13, vi 4 }, containing the subdescriptors with the second greatest distance to the descriptor centre, and g 2 = {vs, v 6 , v¾ vio}, containing the subdescriptors with the smallest distance to the descriptor centre. Within each group, the subdescriptors are ordered in ascending subdescriptor index order, although this is not restrictive and other orders may be used, such as clockwise starting from the top-most left-most subdescriptor in the group. Within each group, the corresponding elements of the subdescriptors of the group are all assigned the same encoding priority.

Based on this grouping, a group-element utilisation order may be generated, which may take the form of a 24-element ordered list, which may be encoded in 15 bytes, each list entry specifying a subdescriptor group and an element index, as illustrated in Figure 10. It should be noted that the group-element utilisation order of Figure 10 is merely an example, and different group-element utilisation orders may be generated by changing the priorities of the entries in the list. Thus, the group-element utilisation order of Figure 10 is much more economical than the element utilisation order of Figure 6, in terms of length and encoding size. So, for example, Figure 10 shows a group-element priority list whereby element vo of group g 2 is given the highest priority, instructing the encoder that the first four elements to encode are 175,0, νβ,ο, V9,o and ΌΙΟ,Ο, element vo of group gi is given the second highest priority, instructing the encoder that the next eight elements to encode are ΌΙ,Ο, ¾o, ¾,o, V7,o, Ό ,Ο, ΌΙΙ,Ο, ΌΙΖ,Ο and OU,O, etc.

Figure 11 illustrates the operation of such an encoder using the group-element utilisation order of Figure 10 and configured to encode the top m groups of elements in said group-element utilisation order. With the encoder of Figure 11, the encoding of the descriptor begins with the group of elements with the top priority (Priority 1) in the group-element utilisation order, i.e. element vo of group g 2 comprising subdescriptors V5, v 6 , v¾ and vio. In step S300, the encoding of the descriptor begins at the first subdescriptor of the group, i.e. V5. In step S310, the appropriate transform is selected for the subdescriptor, for example according to the transform utilisation of Figure 3. It should be noted that the computation of descriptor V from descriptor H according to two different transforms as described here is only an example. In different embodiments, the computation of descriptor V from descriptor H may also be performed according to a single transform, for example only Transform A or only Transform B, rendering step S310 unnecessary, or according to more than two transforms. Then, the encoding of the element, i.e. 175,0, takes place in step S320. In step S330, if the current subdescriptor is not the last subdescriptor in the group, the processing moves to the next subdescriptor, otherwise the processing moves to step S340. Then, in step S340, if the desired number of m groups of elements has not yet been encoded, the processing moves to the group of elements with the next highest priority in the group-element utilisation order, otherwise the processing ends. Thus, steps S300, S330 and S340 relate to the order in which the processing is performed and to the control of how many groups of elements to encode, while steps S310 and S320 relate to the actual encoding of the local image descriptor.

The number of groups m or corresponding number of elements Z in the descriptor may be stored/ transmitted alongside the descriptor, possibly at the image level. The fact that the group-element utilisation order of Figure 10 is more economical than the element utilisation order of Figure 6 results in a more efficient and economical encoder. Furthermore, as seen earlier, for the purposes of transcoding, decoding and processing, the decoder must also know the encoding process and the element utilisation order to be able to process and compare descriptors for the purposes of the related computer vision applications, which means that the element utilisation order must be either fixed or transmitted alongside the descriptors. Different applications may need to change the element utilisation order, possibly at the image or sub-image leveL_ for example by giving higher priority to the subdescriptors closest to the descriptor centre, or by giving higher priority to a specific class of element, e.g. Ό7 as opposed to vi, in order to achieve high recognition performance with a limited set of elements. In this case, the element utilisation order must be stored or transmitted alongside the descriptors. Considering that low-bitrate descriptors are typically a few hundred bytes in size, the group-element utilisation order of Figure 10 represents a much lower overhead than the element utilisation order of Figure 6. Furthermore, the subdescriptor grouping may be fixed and known to both the encoder and the decoder, or may be transmitted alongside the descriptors. For example, for the grouping considered so far, the number of groups and the size of composition of each group may be encoded in less than 10 bytes.

As another example according to a first embodiment of the invention, a different grouping is illustrated in Figure 12, where there are two groups, namely go = {vo, vi, v 2 , 3, v 4 , vz, vs, vu, vi 2 , 13, vi 4 , is}, containing all the peripheral subdescriptors, and gi = {vs, v 6 , ¾ vio}, containing the subdescriptors with the smallest distance to the descriptor centre, i.e. all the central subdescriptors. Thus, with this example, group go contains subdescriptors of varying distances to the descriptor centre, but always further away from the centre than the subdescriptors of group go. Within each group, the corresponding elements of the subdescriptors of the group are all assigned the same encoding priority. Based on this grouping, a group-element utilisation order may be generated, which may take the form of a 16-element ordered list, which may be encoded in 8 bytes, each list entry specifying a subdescriptor group and an element index, as illustrated in Figure 13. The encoder of Figure 11 may then be used again to encode a descriptor according to the group- element utilisation order of Figure 13. It should be noted that the group-element utilisation order of Figure 13 is merely an example, and different group-element utilisation orders may be generated by changing the priorities of the entries in the list.

As another example according to a first embodiment of the invention, a different grouping is illustrated in Figure 14, where there are four groups, namely go = {vo, 3, xri, is}, containing the subdescriptors with the greatest distance to the descriptor centre, gi = {vi, v 2 , v 4 , vz}, containing a set of four subdescriptors with the second greatest distance to the descriptor centre, g 2 = { 8, vii, i3, vi 4 }, containing a set of four different subdescriptors again with the second greatest distance to the descriptor centre, and g3 = { s, v 6 , v¾ vio}, containing the subdescriptors with the smallest distance to the descriptor centre. Thus, with this example, the subdescriptors of groups gi and g 2 are the same distance from the centre of the descriptor. This grouping is obtained from the grouping of Figure 9 by subdividing original group gi into new groups gi and g 2 . The advantage of this is that it results in groups with the same number of subdescriptors, which is desirable in optimised encoder implementations. Within each group, the corresponding elements of the subdescriptors of the group are all assigned the same encoding priority. Based on this grouping, a group-element utilisation order may be generated, which may take the form of a 32-element ordered list, which may be encoded in 20 bytes, each list entry specifying a subdescriptor group and an element index, as illustrated in Figure 15. The encoder of Figure 11 may then be used again to encode a descriptor according to the group-element utilisation order of Figure 15. It should be noted that the group-element utilisation order of Figure 15 is merely an example, and different group-element utilisation orders may be generated by changing the priorities of the entries in the list.

Clearly, the grouping of Figure 14 into four groups is not unique. For example, an alternative grouping is shown in Figure 16, containing groups go = {vo, 3, i2, is}, gi = {vi, 2, V13, V14J, g2 = {v 4/ V7, vs, vu}, and g3 = { 5, e, 9, vio}. Thus, in Figure 16 groups go and g3 are identical to those of Figure 14, but the subdescriptors of gi and g2 have been swapped compared to Figure 14 so that each of those two groups contains one subdescriptor from the upper-left, upper-right, lower-left and lower-right part of the subdescriptor grid.

One difference between the encoder of Figure 7 and the encoder of Figure 11 is that, unlike the former which produces descriptors of any length, the latter allow encoding of descriptors whose length has a granularity decided by the subdescriptor groups. In practice, the latter may be configured to produce descriptors of any length, as will be demonstrated later.

Second embodiment

In a second embodiment of the invention, the subdescriptors are grouped firstly according to their distance from the centre (first condition) and secondly according their reciprocal distances (second condition).

In this context, the distance between subdescriptors may again take the form of a Euclidean distance or another suitable distance measures, such as Manhattan distance.

The second condition may be, for example, that a group should not contain subdescriptors whose distance to each other is below a predetermined threshold. Thus, the predetermined threshold may be set to prevent, for example, grouping neighbouring subdescriptors.

The aim of the secondary condition is to ensure that the subdescriptors of different groups are, whenever possible, drawn from relatively distant positions of the subdescriptor grid, thereby increasing the information content of descriptors of very low numbers of features. It should be noted that the secondary condition may not always be satisfied, e.g. it is not possible to satisfy it for a group which contains all the central subdescriptors s, v 6 , ¾ and vio. For example, one such grouping is illustrated in Figure 17, where there are four groups, namely go = {vo, 3, 12, is}, containing the subdescriptors with the greatest distance to the descriptor centre, gi = {vi, vz, s, vi 4 }, containing a set of four subdescriptors with the second greatest distance to the descriptor centre, g2 = { 2, v 4 , vu, V13}, containing a set of four different subdescriptors again with the second greatest distance to the descriptor centre, and g3 = { s, v 6 , v¾ vio}, containing the subdescriptors with the smallest distance to the descriptor centre. Thus, with this example, the subdescriptors of groups go, gi and g 2 satisfy the condition that they contain no neighbouring subdescriptors. Within each group, the corresponding elements of the subdescriptors of the group are all assigned the same encoding priority. Based on this grouping, a group- element utilisation order such as the one illustrated in Figure 15 may be generated, and an encoder such as the one illustrated in Figure 11 may then be used again to encode a descriptor according to the group-element utilisation order of Figure 15.

Clearly, alternative conditions based on the distance of subdescriptors within a group may also be employed, such as maximising the total distance between subdescriptors, etc.

Third embodiment

In a third embodiment of the invention, the subdescriptors are grouped according to their distance from the centre and the subdescriptors of each group are encoded in a sequence defined according to their corresponding encoding characteristics, such as their corresponding transforms.

For example, considering the grouping of Figure 17 of the second embodiment of the invention in conjunction with the transform deployment pattern of Figure 3, it can be seen that, within each group, two subdescriptors are transformed according to transform A and two subdescriptors are transformed according to transform B. Therefore, it is possible to set a common encoding sequence condition that, for each group, the transform utilisation sequence must be "A A B B", i.e. an encoding sequence whereby, for each subdescriptor group, the transform of the first subdescriptor in the group is transform A, the transform of the second subdescriptor in the group is also transform A, the transform of the third subdescriptor in the group is transform B, and the transform of the fourth subdescriptor in the group is also transform B. Thus, there are groups go = {vo, is, 3, vi 2 }, containing the subdescriptors with the greatest distance to the descriptor centre, gi = {vz, s, vi, vi 4 }, containing a set of four subdescriptors with the second greatest distance to the descriptor centre, g 2 = {v 2/ i3, 4, ii}, containing a set of four different subdescriptors again with the second greatest distance to the descriptor centre, and g3 = { s, vio, v 6 , 9}, containing the subdescriptors with the smallest distance to the descriptor centre. Within each group, the corresponding elements of the subdescriptors of the group are all assigned the same encoding priority. Furthermore, within each group, the transform utilisation information for the four subdescriptors in the group is always "A A B B", which means than an efficient encoder implementation does not need to identify the applicable transform of each subdescriptor.

Figure 18 illustrates the operation of such an encoder using the group-element utilisation order of Figure 15 and configured to encode the top m groups of elements in said group-element utilisation order. With the encoder of Figure 18, the encoding of the descriptor begins with the group of elements with the top priority (Priority 1) in the group-element utilisation order, i.e. element vo of group g3 comprising subdescriptors s, vio, v 6 , and V9. In step S400, the encoding of the descriptor begins at the first subdescriptor of the group, i.e. vs. Given that all groups have a common and fixed transform utilisation order, processing moves to step S410 where the encoding of the element, i.e. 175,0, takes place. In step S420, if the current subdescriptor is not the last subdescriptor in the group, the processing moves to the next subdescriptor, otherwise the processing moves to step S430. Then, in step S430, if the desired number of m groups of elements has not yet been encoded, the processing moves to the group of elements with the next highest priority in the group-element utilisation order, otherwise the processing ends. Thus, steps S400, S420 and S430 relate to the order in which the processing is performed and to the control of how many groups of elements to encode, while only step S410 relates to the actual encoding of the local image descriptor.

In the above description, the common encoding sequence condition is defined on the transforms which are utilised within each group, but this condition may also be defined on other encoding characteristics, such as the type and level of quantisation, or combinations thereof.

Clearly, if required, different encoding sequence conditions may be applied to different groups of subdescriptors. For example, in the first embodiment of the invention, the grouping according to Figure 9 results in three groups, namely go, containing the four subdescriptors with the greatest distance to the descriptor centre, gi, containing the eight subdescriptors with the second greatest distance to the descriptor centre, and g 2 , containing the four subdescriptors with the smallest distance to the descriptor centre. In this case, because of the different group size, an encoding sequence condition that the transform utilisation sequence must be "A A B B" may be applied to groups go and g 2 , and a different encoding sequence condition that the transform utilisation sequence must be "A A A A B B B B" may be applied to group gi.

Fourth embodiment

In a fourth embodiment of the invention, the subdescriptors are grouped according to their distance from the centre and the subdescriptors of each group are ordered according to their distances between them.

The ordering condition may be, for example, that the distance between consecutive subdescriptors within a group should not be below a predetermined threshold. Thus, the predetermined threshold may be set to prevent, for example, consecutive neighbouring subdescriptors within a group. A different ordering condition may be, for example, that the distance between consecutive subdescriptors within a group is maximised.

This ordering is particularly useful when employing large subdescriptor groups, to reduce the size of the group-element utilisation order, and partial group encoding, as explained below. It should be noted that this type of ordering may not always be possible, e.g. it is not possible to not have consecutive neighbouring descriptors for a group which contains all the central subdescriptors s, v 6 , v¾ and vio.

For example, considering the grouping illustrated in Figure 9, it can be seen that the subdescriptors within each group may be ordered to maximise the distance between consecutive subdescriptors, starting from the subdescriptor with the lowest index within the group, resulting in groups go = {vo, is, 3, vi 2 }, gi = {vi, i4, v 2 , i3, 7, vs, vn, v 4 }, and g 2 = {vs, vio, 6, vg}. Within each group, the corresponding elements of the subdescriptors of the group are all assigned the same encoding priority.

Based on this grouping and ordering of subdescriptors within each group, a group-element utilisation order such as the one illustrated in Figure 10 may be generated, and an encoder such as the one illustrated in Figure 11 may then be used again to encode a descriptor according to the group-element utilisation order of Figure 10. Alternatively, an encoder such as the one illustrated in Figure 19 may be employed.

More specifically, one difference between the encoder of Figure 7 and the encoders of Figure 11 and Figure 18 is that, unlike the former which produces descriptors of any length, the latter allow encoding of descriptors whose length has a granularity decided by the subdescriptor groups. In practice, however, each of the encoders of Figures 11 and 18 may be easily configured to encode descriptors of any length by partial encoding of the last group of elements when the desired descriptor length has been reached. In this context, Figure 19 shows such a modification of the encoder of Figure 11. In essence, the encoder of Figure 19 is obtained by simply swapping steps S330 and S340 of the encoder of Figure 11, allowing the encoder of Figure 19 to terminate the encoding of a group as soon as the desired number of elements has been encoded. Clearly, an analogous modification is also applicable to the encoder of Figure 18.

In this context, the ordering of the subdescriptors within a group according to the distances between them is highly advantageous since it results in consecutive elements being drawn from relatively distant positions of the subdescriptor grid which, in the event of the partial encoding of a group, increases the information content of descriptors with a low number of features.

Fifth embodiment

The previous embodiments of the invention demonstrate efficient encoding of image descriptors according to a group-element utilisation order resulting from the grouping of subdescriptors into subdescriptor groups based on their distances from the descriptor centre and/ or their distances to each other.

In an alternative embodiment of the invention, subdescriptors may be grouped so that each subdescriptor within a group has an identical element utilisation set to all the other subdescriptors within a group. For example, consider the grouping of Figure 20, where there are four groups, namely go = { s, v 6 , v 9 , vio}, gi = {vi, w, vs, v 14 }, g 2 = {v 2 , v 4 , vn, 13}, and g3 = {vo, 3, vi 2 , V15}. This is the same grouping as in Figure 17, but with group indexes reassigned (i.e. go and g3 have been swapped) so that groups with lower indexes contain subdescriptors which are closer to the descriptor centre. Combining this grouping with the element utilisation sets of Figure 4a-4e leads to the group-element utilisation sets of Figure 21a-21e.

Since the set of utilised elements for each descriptor length must be the same as or a subset of the set of utilised elements for all higher descriptor lengths, the group-element utilisation sets of Figure 21a-21e may be converted into incremental group-element utilisation sets as illustrated in Figure 22a-22e where, for each descriptor length (for example DL2 of Figure 22c), the corresponding element utilisation set shows only the additional elements which make up the descriptor of said descriptor length compared to the immediately lower descriptor length (for example DL1 of Figure 22b).

Based on the incremental group-element utilisation sets of Figure 22a-22e, an encoder may generate descriptors which can be converted to lower descriptor lengths by simple descriptor truncation.

Figure 23 illustrates the operation of such an encoder for the encoding of a descriptor of length DL . More specifically, in step S600, the processing begins by encoding a descriptor of the lowest descriptor length, i.e. DL0. In step S610, the encoding of the DL0 descriptor begins with the encoding of the first subdescriptor group, i.e. go, and in step S620 the encoding of the first subdescriptor group begins with the encoding of the first element, i.e. vo. In step S630, if element vo is not in use for go at descriptor length DL0 according to the incremental group-element utilisation sets of Figure 22, the processing moves to step S680, otherwise the processing moves to step S640. In step S640 the first subdescriptor of group go is selected, i.e. s, and in step S650 the appropriate transform function is selected, for example according to Figure 3. It should be noted that the computation of descriptor V from descriptor H according to two different transforms as described here is only an example. In different embodiments, the computation of descriptor V from descriptor H may also be performed according to a single transform, for example only Transform A or only Transform B, rendering step S650 unnecessary, or according to more than two transforms. Then in Step 660, the encoding of element OS,O takes place. In step S670, if the current subdescriptor is not the last subdescriptor in the group, the processing moves to the next subdescriptor in the group, otherwise the processing moves to step S680. In step S680, if the current element is not the last element, i.e. vi, the processing moves to the next element, otherwise the processing moves to step S690. In step S690, if the current subdescriptor group is not the last subdescriptor group, the processing moves to the next subdescriptor group, otherwise the processing moves to step S695. In step S695, if the current subdescriptor length is not the target subdescriptor length, the processing moves to the next subdescriptor length, encoding the additional elements specified by the incremental group-element utilisation sets. Otherwise, the processing ends.

Although aspects and embodiments of the present invention are presented in detail for the computation of robust, discriminative, scalable and compact image descriptors from a SIFT image descriptor, the invention is applicable to other image descriptors based on histograms of gradients, as outlined in the not yet published Italian patent application no. TO2012A000602.

By way of example only, Figure 24 illustrates a conceptual image processing apparatus for carrying out the method according to the present invention. More specifically, processing apparatus 1100 receives input, which may comprise visual data, such as image or video data, pre-calculated descriptors based on histograms of gradients, pre-calculated compact descriptors according to the method of the present invention, programming instructions, or user input, from input apparatus 1000, which may take the form of a user input apparatus, a media reader, or a receiver of transmitted signals. The processing apparatus 1100 comprises the main processing blocks of a central processing unit 1110 which controls the operations of the other processing blocks, volatile memory 1120, non-volatile memory 1130, optionally a descriptor extractor block 1140 configured to generate descriptors based on histograms of gradients, a compact descriptor encoder block 1150 configured to carry out the method according to the present invention, and optionally a compact descriptor processor block 1160 configured to process said compact descriptors, for example to establish or verify visual correspondences. Processing apparatus 1100 is connected to output apparatus 1900, which may take the form of a visual display unit, a media writer, or a transmitter of signals, which provides output which may comprise annotated visual data, such as image or video data, processing information such as established or verified visual correspondences, or compact descriptors according to the method of the present invention. It should be understood that the processing blocks and architecture shown in Figure 24 are only conceptual and may not correspond exactly to every apparatus implementing the method according to the invention.

The method for encoding an image descriptor based on a gradient histogram and a relative image processing apparatus described herein by way of example may be subject to many possible variations without departing from the novelty spirit of the inventive idea; it is also clear that in the practical implementation of the invention the illustrated details may have different shapes or be replaced with other technically equivalent elements.

It can therefore be easily understood that the present invention is not limited to a method for encoding an image descriptor based on a gradient histogram and a relative image processing apparatus, but may be subject to many modifications, improvements or replacements of equivalent parts and elements without departing from the inventive idea, as clearly specified in the following claims.