Claims
- 1. A computer-implemented method of accelerating the classification of an unclassified input symbol S into a library of pre-classified templates, said method comprising the steps of:
- a) providing as an input to a processing unit of a computer an input symbol S in the form of an input vector defining an unclassified character having q elements (S=s.sub.1, s.sub.2, s.sub.3, . . . s.sub.k . . . s.sub.j . . . s.sub.q);
- b) storing within a first storage device associated with said commuter a library of T templates (T.sub.1, T.sub.2, T.sub.3, . . . T.sub.i . . . T.sub.T) to be retrieved by the processing unit for correlation with the input vector, each template in the form of a template vector defining a pre-classified character having q elements (T.sub.i =t.sub.1, t.sub.2, t.sub.3, . . . t.sub.k . . . t.sub.j . . . t.sub.q) forming q pairs of corresponding elements with the q elements of the input vector;
- c) storing within a second storage device associated with said commuter a comparison inequality function for correlating the input vector with the template vectors, which function defines an element by element correlation calculation (s,t.sub.i), executes an element calculation cycle for each of the q pairs of corresponding elements of the input vector and each retrieved template vector to yield an element term for each pair of corresponding elements, and sums the element terms from previous calculation cycles of the correlation calculation (s,t.sub.i) to yield a cumulative bound after k calculation cycles and a final bound after the completion of q calculation cycles;
- d) determining an exclusion threshold for excluding the retrieved template if the cumulative bound crosses the exclusion threshold and non-excluding the retrieved template if the cumulative bound does not cross the exclusion threshold;
- e) causing the processing unit to retrieve an initial template from the library of templates;
- f) causing the processing unit to initiate the element by element correlation calculation (s,t.sub.i) for the q pairs of corresponding elements from the input symbol and the retrieval template to yield a cumulative bound;
- g) excluding the retrieved templates if the cumulative bound crosses the exclusion threshold;
- h) repeating steps f) and g) until the retrieved template has been excluded or until the correlation calculation (s,t.sub.i) for the retrieved template has proceeded to completion to yield a final bound;
- i) saving the retrieved template if non-excluded;
- j) causing the processing unit to retrieve a next template from the library of templates;
- k) repeating steps f) through j) until all of the template vectors have been correlated with the input vector; and
- l) classifying the unclassified input symbol against the non-excluded pre-classified templates on the basis of the values of the final bound yielded by the correlation calculations.
- 2. The method of claim 1, wherein the exclusion threshold is cumulative and is determined by replacing an initial exclusion threshold with the final bound of each non-excluded template during the classification process of the input vector with the template vectors.
- 3. The method of claim 2, wherein all of the retrieved templates are excluded during the classification process except for a single non-excluded template.
- 4. The method of claim 3, wherein the cumulative bound progresses montonically toward the final bound of the single non-excluded template.
- 5. The method of claim 3, wherein the initial cumulative bound for each correlation calculation (s,t.sub.i) is high and forms an upper bound which progresses downward toward the final bound.
- 6. The method of claim 2, wherein the initial exclusion threshold is zero.
- 7. The method of claim 6, wherein the correlation calculation (s,t.sub.i) for the initial template yields the first finite exclusion threshold.
- 8. The method of claim 2, wherein the initial exclusion threshold is finite.
- 9. The method of claim 2, wherein the initial exclusion threshold is greater than zero but less than a minimum acceptable final bound.
- 10. The method of claim 1, wherein the comparison inequality function comprises a Leading Partial Correlation sum which increases monotonically and a Residual Intensity sum which decreases monotonically, the Residual Intensity sum representing the image intensity data remaining in the comparison inequality function after the kth calculation cycle.
- 11. The method of claim 10, wherein the correlation calculation (s,t.sub.i) is complete when the Residual Intensity sum decreases to zero.
- 12. The method of claim 1, wherein the comparison inequality function comprises the relationship:
- CIF(S,T.sub.i).ltoreq.LPC+(SRI) (TRI)
- where
- CIF is the comparison inequality function,
- LPC is a Leading Partial Correlation sum,
- SRI is a Symbol Residual Intensity sum representing the symbol image intensity data remaining in the CIF as the correlation calculation proceeds, and
- TRI is a Template Residual Intensity sum representing the template image intensity data remaining in the CIF as the correlation calculation proceeds.
- 13. The method of claim 12, wherein the comparison inequality function is the relationship: ##EQU8##
- 14. The method of claim 1, wherein the comparison inequality function comprises the relationship:
- CIF(S,T.sub.i).ltoreq.LPC+SRI
- where
- CIF is the comparison inequality function,
- LPC is a Leading Partial Correlation sum, and
- SRI is a Symbol Residual Intensity sum representing the symbol image intensity data remaining in the CIF as the correlation calculation proceeds.
- 15. The method of claim 14, wherein the comparison inequality function is the relationship: ##EQU9##
- 16. The method of claim 1, wherein the comparison inequality function comprises the relationship:
- CIF(S,T.sub.i).ltoreq.LPC+TRI
- where
- CIF is the comparison inequality function,
- LPC is a Leading Partial Correlation sum, and
- TRI is a Template Residual Intensity sum representing the template image intensity data remaining in the CIF as the correlation calculation proceeds.
- 17. The method of claim 16, wherein the comparison inequality function is the relationship: ##EQU10##
- 18. The method of claim 16, wherein the value of the LPC sum is determined by the correlation calculation (s,t.sub.i) each calculation cycle, and the value of the TRI sum is pre-calculated based on the template vectors in the template library and is retrieved from the library.
- 19. The method of claim 1, further comprising before the initiating the element by element correlation calculation (s,t.sub.i) step, the additional step of:
- determining a series of sequential exclusion check points with intervals of element calculation cycles therebetween for comparing the cumulative bound to the exclusion threshold as the correlation calculation (s,t.sub.i) proceeds.
- 20. The method of claim 19, wherein the excluding step comprises the substeps of:
- checking for exclusion of the retrieved template at the first exclusion check point by comparing the cumulative bound with the exclusion threshold;
- excluding the retrieved template by terminating the element by element correlation calculation (s,t.sub.i) if the cumulative bound has crossed the exclusion threshold; and
- continuing the element by element correlation calculation (s,t.sub.i) to the next exclusion check point if the cumulative bound has not crossed the exclusion threshold.
- 21. The method of claim 19, wherein the number of element calculation cycles in each interval of calculation cycles between the exclusion check points is fixed.
- 22. The method of claim 21, wherein the fixed number of element calculation cycles in each interval of calculation cycles is one and the checking step occurs after every calculation cycle.
- 23. The method of claim 19, wherein the number of element calculation cycles in each interval of calculation cycles between the exclusion check points is variable.
- 24. The method of claim 23, wherein the number of element calculation cycles in each interval is adaptive as the element by element correlation calculation (s,t.sub.i) proceeds.
- 25. The method of claim 24, wherein the number of element calculation cycles in each interval of calculation cycles becomes smaller as the element by element correlation calculation (s,t.sub.i) proceeds.
- 26. The method of claim 19, wherein the change in the cumulative bound during each interval of element calculation cycles between the exclusion check points is fixed.
- 27. The method of claim 1, wherein the q pairs of corresponding elements in the input vector and the template vector are unsorted and are correlated by the correlation calculation (s,t.sub.i) in sequential order of position within the input vector and the template vector.
- 28. The method of claim 1, wherein the q pairs of corresponding elements in the input vector and the template vector are sorted and are correlated by the correlation calculation (s,t.sub.i) in the order of the sort.
- 29. The method of claim 28, wherein the vector elements in the input vector and the template vector have numerical values, and the sort is by numerical value.
- 30. The method of claim 29, wherein the numerical values are binary values.
- 31. The method of claim 29, wherein the numerical values indicate greyscale levels.
- 32. The method of claim 29, wherein the q pairs of corresponding elements are sorted by the numerical values of the elements forming the input vector.
- 33. The method of claim 29, wherein the q pairs of corresponding elements are sorted by the numerical values of the elements forming the template vector.
- 34. The method of claim 29, wherein elements forming the foreground of the template vectors have discrimination power, and the q pairs of corresponding elements are double sorted;
- first by the numerical values of the elements forming the template vector; and
- second by the discrimination power of the foreground elements forming the template vector.
- 35. The method of claim 29, wherein the q pairs of corresponding elements are sorted by the numerical values of the elements forming the foreground.
- 36. The method of claim 29, wherein the q pairs of corresponding elements are sorted by the numerical values of the elements forming the background.
RELATED APPLICATIONS
This is a continuation of U.S. patent application Ser. No. 08/140,310 filed on Oct. 22, 1993, now abandoned.
US Referenced Citations (8)
Continuations (1)
|
Number |
Date |
Country |
Parent |
140310 |
Oct 1993 |
|