Claims
- 1. A method for correlating a test image with a template to identify a specific object wherein both the test image and the template are comprised of a plurality of pixels representative of respective predetermined gray levels, and wherein the template is partitioned into a plurality of labels comprised of at least one pixel, the method comprising the steps of:
- dividing the template into a plurality of pieces;
- comparing each piece of the template to a predetermined region of the test image such that at least some of the pixels of each piece of the template correspond to respective pixels of the test image and such that at least some deformation between the pieces of the template is permitted;
- separately determining, for each piece of the template and for each of a plurality of predetermined gray levels j, the number of pixels of the test image N.sub.j,i representative of a predetermined gray level j which correspond to a predetermined label i of the respective piece of the template;
- separately determining, for each piece of the template and for each of a plurality of predetermined gray levels j, the number of pixels of the test image N.sub.j representative of a predetermined gray level j which correspond to the respective piece of the template to identify said object; and
- separately determining the correlation X between each piece of the test image and the template according to: ##EQU4## wherein N.sub.T is the total number of pixels which comprise the respective piece of the template, N.sub.i is the number of pixels which form each of the plurality of labels i of the respective piece of the template, i.sub.min and i.sub.max are the minimum and maximum label designations, respectively, and j.sub.min and j.sub.max are the minimum and maximum gray levels, respectively.
- 2. A method according to claim 1 further comprising the step of determining an overall correlation between the test image and the template, said overall correlation determining step comprising the step of summing the respective correlation determined for each piece of the template.
- 3. A method according to claim 1 further comprising the step of creating a plurality of relative offsets between the pieces of the template and the test image, wherein said comparing step comprises the step of comparing the pieces of the template to the test image at each relative offset, wherein said N.sub.j,i determining step comprises the step of determining, for each piece of the template and at each relative offset, the number of pixels of the test image N.sub.j,i representative of a predetermined gray level j which correspond to a predetermined label i of the respective piece of the template, wherein said N.sub.j determining step comprises the step of determining, for each piece of the template and at each relative offset, the number of pixels of the test image N.sub.j representative of a predetermined gray level j which correspond to the respective piece of the template, and wherein said correlation determining step comprises the step of determining the correlation X between the test image and each piece of the template at each relative offset.
- 4. A method according to claim 3 further comprising the step of separately determining the relative offset between the test image and each piece of the template which provides the greatest correlation therebetween.
- 5. A method according to claim 4 further comprising the step of determining an overall correlation between the test image and the template, said overall correlation determining step comprising the step of summing the respective greatest correlation determined for each piece of the template.
- 6. A method according to claim 3 wherein said relative offset creating step comprises creating respective relative offsets for each piece of the template which permit adjacent pieces of the template to partially overlap.
- 7. A method according to claim 3 wherein said relative offset creating step comprises creating respective relative offsets for each piece of the template which permit adjacent pieces of the template to be spaced apart by a predetermined gap.
- 8. An apparatus for correlating a test image and a template to identify a specific object wherein both the test image and the template are comprised of a plurality of pixels representative of respective predetermined gray levels, and wherein the template is partitioned into a plurality of labels comprised of at least one pixel, the apparatus comprising:
- an image processor for dividing the template into a plurality of pieces;
- comparison means, responsive to said image processor, for comparing each piece of the template to a predetermined range of the test image such that at least some of the pixels of each piece of the template correspond to respective pixels of the test image and such that at least some deformation between the pieces of the template is permitted, wherein said comparison means comprises:
- means for separately determining, for each piece of the template and for each of a plurality of predetermined gray levels j, the number of pixels of the test image N.sub.j,i representative of a predetermined gray level j which correspond to a predetermined label of the respective piece of the template;
- means for separately determining, for each piece of the template and for each of a plurality of predetermined gray levels j, the number of pixels of the test image N.sub.j representative of a predetermined gray level j which correspond to the respective piece of the template; and
- correlation means, responsive to said template processing means and said comparison means, for separately determining the correlation X between the test image and each piece of the template to identify said object according to: ##EQU5## wherein N.sub.T is the total number of pixels which comprise the respective piece of the template, N.sub.i is the number of pixels which form each of the plurality of labels i of the respective piece of the template, i.sub.min and i.sub.max are the minimum and maximum label designations, respectively, and wherein j.sub.min and j.sub.max are the minimum and maximum gray levels, respectively.
- 9. An apparatus according to claim 8 further comprising the means, responsive to said correlation means, for determining an overall correlation between the test image and the template, said overall correlation determining means comprising means for summing the respective correlation determined for each piece of the template.
- 10. An apparatus according to claim 8 further comprising offset means for creating a plurality of relative offsets between the pieces of the template and the test image, wherein said comparison means is responsive to said offset means for comparing the pieces of the template to the test image at each relative offset, wherein said N.sub.j,i determining means comprises means for determining, for each piece of the template and at each relative offset, the number of pixels of the test image N.sub.j,i representative of a predetermined gray level j which correspond to a predetermined label i of the respective piece of the template, wherein said N.sub.j determining means comprises means for determining, for each piece of the template and at each relative offset, the number of pixels of the test image N.sub.j representative of a predetermined gray level j which correspond to the respective piece of the template, and wherein said correlation means comprises means for determining the correlation X between the test image and each piece of the template at each relative offset.
- 11. An apparatus according to claim 10 further comprising means, responsive to said correlation means, for separately determining the relative offset between the test image and each piece of the template which provides the greatest correlation therebetween.
- 12. An apparatus according to claim 11 further comprising the means, responsive to said greatest correlation determining means, for determining an overall correlation between the test image and the template, said overall correlation determining means comprising means for summing the respective greatest correlation determined for each piece of the template.
- 13. An apparatus according to claim 10 wherein said offset means creates respective relative offsets for each piece of the template which permit adjacent pieces of the template to partially overlap.
- 14. An apparatus according to claim 10 wherein said offset means creates respective relative offsets for each piece of the template which permit adjacent pieces of the template to be spaced apart by a predetermined gap.
Parent Case Info
This is a divisional of U.S. patent application Ser. No. 08/583,598, now U.S. Pat. No. 5,809,171.
US Referenced Citations (4)
Number |
Name |
Date |
Kind |
4581760 |
Schiller et al. |
Apr 1986 |
|
4597009 |
Ballmer et al. |
Jun 1986 |
|
5067162 |
Driscoll, Jr. et al. |
Nov 1991 |
|
5509083 |
Abtahi et al. |
Apr 1996 |
|
Foreign Referenced Citations (1)
Number |
Date |
Country |
0463242A1 |
Dec 1992 |
EPX |
Divisions (1)
|
Number |
Date |
Country |
Parent |
583598 |
Jan 1996 |
|