Claims
- 1. A segmented layered image system, comprising:
a pixel energy component adapted to calculate pixel energy for a region of a document image, the pixel energy component further adapted to calculate a partition of the region based at least in part upon minimization of pixel energy of at least one of a foreground and a background; a region merge component that merges pairs of regions of the document image based, at least in part, upon minimization of pixel energy; and, a mask storage component adapted to store information associated with the partition in a mask.
- 2. The segmented layered image system of claim 1, the pixel energy component calculating energy variances utilizing the equations:
- 3. The segmented layered image system of claim 1, the pixel energy component calculating energy utilizing the equations:
- 4. The segmented layered image system of claim 1, the region merge component evaluating combinations of foregrounds and backgrounds of the two regions, and selecting the combination with a least cumulative energy.
- 5. The segmented layered image system of claim 1, the region merge component evaluating a restricted subset of combinations of foregrounds and backgrounds of the two regions, based on an approximation ƒ over the given regions, and selecting the combination with a least cumulative energy.
- 6. A photocopier employing the segmented layered image system of claim 1.
- 7. A document scanner employing the segmented layered image system of claim 1.
- 8. An optical character recognition system employing the segmented layered image system of claim 1.
- 9. A personal digital assistant employing the segmented layered image system of claim 1.
- 10. A fax machine employing the segmented layered image system of claim 1.
- 11. A digital camera employing the segmented layered image system of claim 1.
- 12. A digital video camera employing the segmented layered image system of claim 1.
- 13. A video game system employing the segmented layered image system of claim 1.
- 14. A method for generating a mask employed in a segmented layered image system, comprising:
calculating pixel energy for a region; partitioning the region based at least in part upon the calculated pixel energy of at least one of a foreground and a background of the region; merging adjacent pairs of regions based upon minimization of energy of at least one of the foreground and the background; and, storing the partitioning information in a mask.
- 15. The method of claim 14, calculating pixel energy for a region further comprising:
calculating a sum of pixel values for a foreground; calculating a sum of pixel values for a background; and, calculating a sum of squares distances for substantially all of the pixels in the region.
- 16. A mask separator component, comprising:
a pixel energy component adapted to calculate pixel energy for a region of a document image, the pixel energy component further adapted to calculate a partition of the region based at least in part upon minimization of pixel energy of at least one of a foreground and a background; a merge region component adapted to merge pairs of regions of the document image based at least in part upon a determination of whether the merged region would exceed a first threshold energy, the merge component further adapted to partition the merged region into a new foreground and a new background; and, a mask storage component adapted to store information associated with the partition in a mask.
- 17. The mask separator component of claim 16, the document image comprising at least one of a YUV, RGB and binary representation of a document.
- 18. The mask separator component of claim 16, the mask being a binary representation of information associated with the partition of the foreground and the background.
- 19. The mask separator component of claim 16, the pixel energy component calculating pixel energy variances for a region utilizing at least in part a K-means clustering algorithm, where K=2.
- 20. The mask separator component of claim 16, the pixel energy component calculating energy variances utilizing the equations:
- 21. The mask separator component of claim 16, the pixel energy component at least temporarily storing at least some of the information associated with calculating pixel energy.
- 22. The mask separator component of claim 16, the pixel energy component calculating pixel energy for the region based at least in part upon a polynomial regression of the region.
- 23. The mask separator component of claim 16, partitioning of the region merge component being based at least in part upon an average of pixel values of the merged region.
- 24. The mask separator component of claim 23, a pixel value greater than the average being assigned to the foreground.
- 25. The mask separator component of claim 23, a pixel value greater than the average being assigned to the background.
- 26. The mask separator component of claim 16, the document image being a YUV representation and the pixel energy component utilizing at least the Y component in calculating pixel energy.
- 27. A method for generating a mask partitioning a document image into a background and a foreground, comprising:
calculating pixel energy for a region; partitioning the region based at least in part upon the calculated pixel energy of at least one of a foreground and a background of the region; merging adjacent pairs of regions if a threshold energy associated with a new foreground and background would not be exceeded in the merged region; partitioning the merged region into the new foreground and the new background based; and, storing the partitioning information in a mask.
- 28. The method of claim 27, calculating pixel energy for a region further comprising:
calculating a sum of pixel values for a foreground; calculating a sum of pixel values for a background; and, calculating a sum of squares distances for substantially all of the pixels in the region.
- 29. The method of claim 27, calculating pixel energy for a region being based at least in part upon a polynomial regression of the region.
- 30. The method of claim 27, partitioning the region further comprising minimizing pixel energy of at least one of a foreground and a background.
- 31. The method of claim 27, partitioning the merged region further comprising calculating an average of pixel values of the merged region.
- 32. The method of claim 27, partitioning the merged region further comprising the following acts:
calculating an average pixel value of the foreground of the merged region; calculating an average pixel value of the background of the merged region; assigning pixels to one of the foreground and the background if the difference between the average pixel value of the foreground and the average pixel value of the background is greater than a third threshold.
- 33. The method of claim 27, partitioning the region further comprising the following acts:
calculating an energy for the region; and, assigning pixels of the region to one of the foreground and the background if the energy is less than a second threshold energy
- 34. A document image compression system, comprising:
a document transformation component adapted to receive a document image and output a transformed representation of the document image; and, a mask separator component comprising a pixel energy component adapted to determine pixel energy for a region of the transformed representation, the pixel energy component further adapted to determine a partition of the region based at least in part upon minimization of energy of at least one of a foreground and a background, the mask separator component further comprising a merge region component adapted to merge pairs of regions, if a first threshold energy has not been exceeded, the merge region component further adapted to partition pixels of merged regions into a new foreground and a new background based at least in part upon minimization of energy of pixels comprising the new foreground and new the background, the mask separator component further comprising a mask storage component adapted to store partition information in a mask.
- 35. The document image compression system of claim 34, further comprising a foreground/background segmenter component adapted to separate the transformed representation into a foreground image and a background image based at least in part upon information stored in the mask.
- 36. The document image compression system of claim 34 further comprising at least one of a foreground encoder, a background encoder and a mask encoder.
- 37. The document image compression system of claim 34, the document transformation component adapted to receive an RGB document image and output a YUV representation of the RGB document image.
- 38. A data packet adapted to be transmitted between two or more computer processes, the data packet comprising:
information associated with a mask, the mask assigning pixels to at least one of a foreground and a background of a document image, the mask being based at least in part upon calculation of minimization of energy of pixels in a region of the document image.
- 39. A computer readable medium having computer usable components for a mask separation component, comprising:
a pixel energy component adapted to calculate pixel energy for a region of a representation of a document image, the pixel energy component further adapted to calculate a partition of the region based at least in part upon minimization of energy of at least one of a background and a foreground; a merge region component adapted to merge pairs of regions of the representation of the document image based at least in part upon a determination of whether the regions to be merged would exceed a threshold energy, the merge component further adapted to partition the merged region into a foreground and a background based at least in part upon minimization of energy of pixels of at least one of the foreground and the background; and, a mask storage component adapted to store information associated with partitioning of the foreground and the background in a mask.
- 40. A mask separation component, comprising:
means for calculating pixel energy for a region of a representation of a document image; means for calculating a partition of the region based at least in part upon minimization of energy of at least one of two planes; means for merging pairs of regions of the representation of the document image based at least in part upon a determination of whether the regions to be merged would exceed a threshold energy; means for partitioning pixels of regions into a foreground and a background based at least in part upon minimization of energy of pixels comprising at least one of the foreground and the background; and, means for storing information associated with the partition in a mask.
REFERENCE TO RELATED APPLICATIONS
[0001] This application is a continuation-in-part of U.S. Utility application Ser. No. 10/133,842 which was filed Apr. 25, 2002, entitled ACTIVITY DETECTOR, U.S. Utility application Ser. No. 10/133,558 which was filed Apr. 25, 2002, entitled CLUSTERING, and of U.S. Utility application Ser. No. 10/133,939 which was filed Apr. 25, 2002, entitled LAYOUT ANALYSIS.
Continuation in Parts (3)
|
Number |
Date |
Country |
Parent |
10133842 |
Apr 2002 |
US |
Child |
10180771 |
Jun 2002 |
US |
Parent |
10133558 |
Apr 2002 |
US |
Child |
10180771 |
Jun 2002 |
US |
Parent |
10133939 |
Apr 2002 |
US |
Child |
10180771 |
Jun 2002 |
US |