USPatent applicationPatented

Mask generation for multi-layer image decomposition

Granted 14 Oct 2003 · 1 office action

Current assignee: Rakuten Group, Inc. · originally Sharp Corporation

Law firm: Law firm · Log in to unlock

Attorney: Attorney · Log in to unlock

Inventors: Kristine Elizabeth Matthews · Examiner: Daniel G. Mariam · AU 2621 · TC 2600

Application· this page
9541142
filed 31 Mar 2000
Publication
Not published
not published
Patent
US 6,633,670
granted 14 Oct 2003

Life of the application

9 dated events
⤢ drag to zoom20002002200420062008201020122014201620182020ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

To improve compression efficiency and decompressed image quality, images are decomposed into separate layers each containing a limited number of image element types (text, line art, or photographic). Each layer can then be compressed separately with a process that is optimal for the type of image element included in the layer. Images are decomposed into foreground, background, and mask layers. The value of a pixel in the mask layer designates whether the spatially corresponding pixel of the recomposed image will be selected from the spatially corresponding pixels of either the foreground or the background layer. The present invention provides a method of determining the value of a pixel for a mask layer. The image is partitioned into large and small sub-images or blocks. A sub-image mask is created for each sub-image by sorting pixels of the sub-image into clusters centered on the luminance of pixels of a pair of pixels of maximum luminance gradient. The value of a pixel in the mask layer is determined by a relationship of the sub-image mask values of the pixels larger and smaller sub-images of which the pixel being evaluated is a member.

Description

5 parts
›BACKGROUND OF THE INVENTION

The present invention relates to layered decomposition of images arid, more particularly, to the creation of a mask for layers of the digitally decomposed image.

The large size of digital data files required to represent images makes data compression an imperative when storing or transmitting images. On the other hand, compression can be problematic because many images comprise a combination of text, line-art graphics elements, and photographic elements and compression processes are commonly designed to be more effective with one type of image element than another. For example, the JPEG (Joint Photographic Experts Group) standard (ISO 10918) is designed to effectively compress the complex multi-color matrix of photographic elements. Annoying artifacts can appear in decompressed images, especially in the vicinity of sharp transitions which are common characteristics of graphical and textual elements. On the other hand, the compression process of the JBIG (Joint Bilevel Image Group) standard (ISO/IEC 11544:1993) utilizes arithmetic encoding and is particularly effective in compressing text and graphics but less effective in compressing natural photographic elements.

One method for improving the efficiency and results of image compression decomposes compound images into layers containing a type or types of elements that are effectively compressed using a single process. The data of each layer is then compressed with a process that is particularly effective with the type of data contained in the layer. The DRAFT ITU-T RECOMMENDATION T.44 “MIXED RASTER CONTENT (MRC),” International Telecommunication Union (ITU), Telecommunication Standardization Sector, October 1997, incorporated herein by reference, specifies the technical features of an imaging format based on segmentation of images or pages into multiple layers (planes) according to the type of image element and the application of encoding, spatial and color resolution processing specific to the type of image element comprising the layer. The ITU recommendation models a page or image as three layers; a background layer containing contone color(continuous tone and palletized color) element; a foreground layer containing text and line-art graphics, and a bi-level mask layer interposed between the background and foreground layers. The mask is used to select the layer (background or foreground) from which a pixel will be rendered in the recomposed image. The pixels of the mask layer act as a bi-level switch to select a spatially corresponding, pixel in the layer immediately above or below the mask layer. For example, if an exemplary mask layer pixel has a value of “1,” a spatially corresponding pixel might be selected from the background layer for rendering in the final image. However, if the mask layer pixel has. a value of “0” the corresponding pixel would be selected from the foreground layer. While the ITU recommendation provides for processing, interchange, and archiving images in multiple layers, it does not provide a method of generating a mask layer to facilitate layered decomposition of an image.

L. Bottou et al. describe a mask generation method in HIGH QUALITY DOCUMENT COMPRESSION WITH “DiVu”, JOURNAL OF ELECTRONIC IMAGING, Vol. 7, pp 410-425, 1998. An image is partitioned into square blocks of pixels of different sizes. Two dominant colors are identified for the pixels of each block. Cluster initialization is inherited from the previous, lower resolution (larger) block size. The pixels of each block are sorted into clusters according to the. closeness of their individual colors to one of the dominant colors of the block. An iterative, k-means algorithm is-used to sort the pixels for clustering. The iterative nature of the process increases the computational resources and the processing time required for mask creation.

D. Huttenlocher et al. describe a decomposition process in DIGIPAPER: A VERSATILE COLOR DOCUMENT IMAGE REPRESENTATION, Proceedings of the IEEE, International Conference on Image Processing, Kobe, Japan, October 24-25, 1999. The process utilizes token compression where a binary image is represented using a dictionary of token shapes and position information indicating where the token is to be drawn in the image. Segmentation of the image relies on attributes of text including the token representation of text as objects. As a result, the method is more effective with text than graphics.

What is desired, therefore, is method of layered image decomposition that is resource and time conservative and equally effective when decomposing a page or image into its text, graphical, and photographic elements.

›SUMMARY OF THE INVENTION

The present invention overcomes the aforementioned drawbacks of the prior art by providing a method of generating a mask for a layered image decomposition comprising the steps of partitioning the image as a plurality of first sub-images and as a plurality of second sub-images dimensionally differing from the first sub-images, both the first and the second sub-images comprising pluralities of pixels; assigning a first sub-image mask value to an evaluation pixel according to a relationship of the luminance of the evaluation pixel and a sub-image luminance of the first sub-image; assigning a second sub-image mask value to the evaluation pixel according to a relationship of the luminance of the evaluation pixel and a sub-image luminance of the second sub-image; and setting a mask value for the evaluation pixel as a function of the first and second sub-image mask values for a plurality of pixels of the first and the second sub-images. The method is non-iterative and conserves computational resources and time which is important for on-line operations. Further, the method is equally effective for text, line art graphic, and photographic image elements.

The foregoing and other objectives, features and advantages of the invention will be more readily understood upon consideration of the following detailed description of the invention, taken in conjunction with the accompanying drawings.

›BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A illustrates an exemplary compound image including image elements of differing types.

FIG. 1B illustrates a layered decomposition of the exemplary image of FIG. 1A into foreground, background, and mask layers.

FIG. 2 is a block diagram of the mask generation method.

FIG. 3 illustrates partitioning of a portion of an image into mutually exclusive sub-images of two sizes.

FIG. 4 illustrates pixels of an exemplary sub-image in a portion of an image.

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 1 of 2

A compound page or image 10 comprising textual 12 and 13 , line-art or graphic 14 , and photographic 16 and 18 elements is illustrated in FIG. 1 A. For purposes of data storage and transmission, it is desired to decompose the image 10 into layers, each layer containing one or more specific types of image element. For example, text 12 and graphics 14 might be included in a foreground layer 20 while photographic elements 16 and 18 are included in a background layer 22 as illustrated in FIG. 1 B. When the image 10 is recomposed and rendered, each pixel of the recomposed image will be selected from one of the spatially corresponding pixels of either the foreground 20 or background 22 layer as determined by a bi-level switch in the form of the value taken by a spatially corresponding pixel of a mask layer 24 interposed between the foreground 20 and background 22 layers. For example, if a pixel at a particular spatial location in the mask 24 is represented as a digital “1” (white), the color of the spatially corresponding pixel in the final image would correspond to the color of the spatially corresponding pixel in the foreground layer 20 . On the other hand, if the mask pixel is a “0” (black), the color of the pixel for the final image would be selected from the other layer, the background 22 . The creation of a mask 24 is an essential part of a layered decomposition of an image.

The mask creation steps of the present invention are illustrated in FIG. 2 . Initially, a luminance representation of each of the pixels of the image is determined 40 . The Y channel of the YUV color space, the Y′ channel of the Y′CbCr color space, the Y component of the Commission Internationale de L′Éclairage (CIE) XYZ color space and the L-channel of the CIE L*a*b* color difference formula are suitable representations of the luminance for the present method. If the image is represented in a color space that does not provide a luminance channel then the luminance can be calculated. For example, luminance can determined for pixels in the RGB (red, green, blue) color space by application of a transform utilizing tristimulus values. While luminance is a convenient attribute of a pixel, other attributes may be used.

In a second step, the image is spatially partitioned 42 . Referring to FIG. 3, the image 10 is partitioned into two sets of mutually exclusive, sub-images of differing dimensions. Sub-images in the form of square blocks with a smaller block 82 (B s ×B s in dimension) and a larger block 84 (B L ×B L in dimension) are illustrated. The dimensions of the blocks (B s and B L ) are arbitrary. Each pixel is a member of a smaller and a larger sub-image. While square sub-images can be used, the image could be partitioned into sub-images having shapes other than square. A sub-image mask is produced for each of the sub-images of each size in the image 10 .

To create a sub-image mask a gradient is determined 44 for each pixel of a sub-image. Referring to FIG. 4, the gradient expresses the relative luminance of a pixel and its neighboring pixels. For example, the gradient can be a two dimensional expression of the difference between the luminance of a pixel 90 and its contiguous horizontal 92 and vertical 94 neighbors:

Δ=(Δ V ,Δ h )

Δ V =|l ( i,j )− l ( i,j −1)|

Δ h =|( l ( i,j )− l ( i −1 ,j )|

where: Δ V =the vertical gradient of pixel (i,j)

Δ h =the horizontal gradient of pixel (i,j)

l(i,j)=the luminance of pixel (i,j)

l(i−1,j)=the luminance a horizontally neighboring pixel

l(i,j−1)=the luminance a vertically neighboring pixel

From the set of data representing the gradients of the pixels of a sub-image, a maximum horizontal and vertical gradient is established for the sub-image 46 . The maximum sub-image gradient can be expressed as: Δ max = max  ( Δ V , Δ h ) where  : Δ V = max i = 1 , B  -  1 j = 0 , B  -  1   l  ( i , j ) - l  ( i  -  1 , j )  Δ h = max i = 1 , B  -  1 j = 0 , B  -  1   ( l  ( i , j ) - l  ( i , j  -  1 ) 

where: B=the block size (B s or B L ), as appropriate

The maximum sub-image gradient for a sub-image is compared to a gradient threshold 48 for that size of sub-image. If the maximum gradient is less than the threshold, the sub-image is declared to be flat 50 . While the gradient threshold may based on a luminance difference, it could be based on other or additional features. For example, the gradient threshold might be based on the luminous separation of the pixels of a pair of pixels exhibiting the maximum gradient; the compactness of luminance values of pixels in a cluster or a relationship between clusters of pixels of spatially neighboring sub-images.

If the maximum gradient of a sub-image is greater than the applicable gradient threshold, two clusters of pixels are initialized 52 for the sub-image. One cluster is centered on the value of the luminance of a first pixel of the pixel pair of maximum gradient for the sub-image and the other on the value of the luminance of the second pixel of the maximum gradient pair. The luminance of each pixel of the image is evaluated relative to the luminance of each of the pixels of the maximum gradient pair for each of the sub-images of which it is a member. Each evaluation pixel is assigned to a cluster of pixels whose center is luminously nearest to the evaluation pixel 54 . The Euclidean distance may be used to express the distance between the luminance values of pixels.

The clusters of pixels are assigned to either a foreground or background layer of a sub-image mask 56 produced for each sub-image. For example, a cluster of pixels with a lesser luminance may be assigned to the foreground layer and a cluster with a greater luminance assigned to the background layer. The sub-image layer value of each pixel of a cluster is the layer value (foreground or background) assigned to the cluster of which it is a member.

The final mask is generated by assigning a value to each pixel of the mask layer indicating the appropriate layer (foreground or background) from which the pixel is to be taken in rendering the final image. The mask value is assigned on the basis of a function relating the values of pixels of the sub-image masks for the larger and smaller sub-images of which the pixel is a member 58 . While other relationships might be utilized for specific types of documents or to improve results with a particular process, the relationships expressed in the following table have been utilized for generating a final mask.

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 2 of 2

The columns headed “large sub-image” and “small sub-image” indicate the sub-image mask value of a substantial portion of the pixels of the corresponding larger or smaller sub-images of which the pixel of interest is a member. The column headed “mask value” indicates that the value of the pixel of interest in the final mask is either the sub-mask value of the pixel for the designated smaller sub-image or larger sub-image or if both the sub-image masks are “flat,” the mask value is assigned the background layer value. For example, if a substantial portion of the pixels of the sub-image mask for the larger sub-image are background pixels and the pixels of the sub-image mask for the smaller sub-image are mixed foreground and background, then the final mask value of the pixel is the value of the pixel in the sub-image mask for the smaller sub-image. When the mask value of a pixel has been determined, the method selects the next pixel for evaluation 60 . When the final mask value of a pixel has been selected, the spatially corresponding pixel of the designated layer is selected for inclusion in the recomposed image.

All the references cited herein are incorporated by reference.

The terms and expressions that have been employed in the foregoing specification are used as terms of description and not of limitation, and there is no intention, in the use of such terms and expressions, of excluding equivalents of the features shown and described or portions thereof, it being recognized that the scope of the invention is defined and limited only by the claims that follow.

›Tables in the description — 1
Large sub-imageAnd Small sub-imageMask Value
backgroundmixedsmall sub-image
foregroundmixedsmall sub-image
mixedmixedsmall sub-image
flatmixedsmall sub-image
backgroundall flatlarge sub-image
foregroundall flatlarge sub-image
mixedall flatlarge sub-image
flatflatbackground

Claims as granted

26 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

11 codes
IPC · International Patent Classification
Section G — Physics
  • G06K9/34
  • G06T5/00
USPC · US Patent Classification
382/176382/240358/464358/462382/173382/225382/283382/199382/164

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomJul 2000Jan 2001Jul 2001Jan 2002Jul 2002Jan 2003Jul 2003Jan 2004USPTOApplicantNon-final rejection
USPTOApplicanthover for detail · click to open
Pendency
3.5 y
1,292 days filing → grant
Office actions
1
non-final + final
Responses
1
no RCE
Interviews
1
examiner interview summaries
Examiner
Daniel G. Mariam
art unit 2621 · TC 2600
Citations: 41 back · 64 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20002002200420062008201020122014201620182020Owner 1Owner 3
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock