USPatent applicationPatented

Method and apparatus for filtering images having insufficient tonal precision

Granted 4 May 2004 · 1 office action

Application· this page
9429245
filed 28 Oct 1999
Publication
Not published
not published
Patent
US 6,731,822
granted 4 May 2004

Life of the application

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

Abstract

An array of n-bit words representing an image is filtered to produce a corresponding array of higher precision m-bit words representing the image. During the filtering, upper and lower bounds for the m-bit words are identified, and values for the m-bit words are selected between the upper and lower bounds. There is at least some spatial smoothness between the selected values. For example, the values may be selected at sample points of a curve or surface between the upper and lower bounds.

Description

6 parts
›BACKGROUND OF THE INVENTION

The invention relates generally to digital imaging. More specifically, the invention relates to a method and apparatus for attenuating quantization contour artifacts in underquantized image data.

For any number of reasons, a digital image might be undersampled or underquantized. When rendered on a display or printer, an image having a tone scale that is insufficiently quantized is subject to the introduction of quantization contour artifacts. These artifacts can be especially objectionable in image areas having spatially smooth intensity variations such as sky, skin and large homogeneous surfaces such as walls.

The artifacts are essentially amplified quantization errors in the tone scale of the image. If, for instance, a scanner outputs 8-bit words representing an image, and a computer displays 16-bit words, the computer might multiply the 8-bit words by a scale factor of 2 8 in order to produce the 16-bit words for display. However, a difference of one between two 8-bit words now becomes an abrupt difference of 2 8 . These abrupt differences can cause the quantization contour artifacts to become visible when the image is displayed.

There are various ways of reducing the visibility of the quantization contour artifacts. For example, Gaussian noise can be added to the underquantized image to break up the contour lines. However, the Gaussian noise can also reduce image contrast.

Another source of quantization contour artifacts is tone mapping, whereby the words of the underquantized image are multiplied by a tone-dependent gain. The gain is usually higher at lower tone levels in order to boost dark details to make them visible. Both signal and noise including so-called “quantization noise” are amplified by high gain. Without adequate input precision, high gain tone map regions have skipped output levels that yield abrupt difference quantization artifacts. These abrupt differences are especially visible in smooth shaded areas.

Thus an image which appears well quantized before tone mapping can show itself after mapping to have inadequate tonal precision.

›SUMMARY OF THE INVENTION

Quantization contour artifacts are attenuated by augmenting precision using spatial information. According to one aspect of the present invention, an array of n-bit data words is generated, and the n-bit words are filtered to provide corresponding m-bit words. Filtering is performed by identifying upper and lower bounds of each m-bit word; and selecting values for the m-bit words between the upper and lower bounds. There is at least some spatial smoothness between the selected values. The lower bound of a given m-bit word has its n most significant bits equal to the corresponding n-bit word; and the upper bound of a given n-bit word is equal to a sum of a maximum uncertainty and the lower bound of the given m-bit word.

If the array of n-bit data words represents an image, the filtering can reduce the abruptness of changes in values of the m-bit words and, therefore, can attenuate quantization contour artifacts.

Other aspects and advantages of the present invention will become apparent from the following detailed description, taken in conjunction with the accompanying drawings, illustrating by way of example the principles of the invention.

›BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a system including a scanner and a computer according to the present invention;

FIG. 2 is an illustration of a generalized method of filtering a sequence of n-bit words representing an image to produce a sequence of m-bit bit words representing the image, the n-bit words being provided by the scanner, the method being performed by the computer;

FIG. 3 is an illustration of an n-bit word and a corresponding m-bit word;

FIG. 4 is an illustration of m−n lower order bits of the m-bit word being filled;

FIG. 5 is an illustration of a computationally fast method of filtering an underquantized image in accordance with the present invention;

FIG. 6 is an illustration of a first n-bit word sequence that is filtered in accordance with the method of FIG. 5;

FIG. 7 is an illustration of a second n-bit word sequence that is filtered in accordance with the method of FIG. 5, the filtering of the second sequence including clipping operations;

FIG. 8 is an illustration of a third n-bit word sequence that is filtered in accordance with the method of FIG. 5, the filtering of the third sequence including clipping operations;

FIG. 9 is an illustration of a method of filtering an underquantized image in two directions;

FIG. 10 is an illustration of second method of filtering an underquantized image in two directions; and

FIG. 11 is an illustration of a third method of filtering an underquantized image in two directions.

›DETAILED DESCRIPTION OF THE INVENTION · 1 of 3

As shown in the drawings for purposes of illustration, the present invention is embodied in a system including a scanner and a computer. The scanner provides an underquantized image to the computer. That is, the image provided to the computer has insufficient tonal precision. If such an image was displayed by the computer, artifacts such as contour lines would be visible. However, the computer can filter the image to attenuate contour lines and other artifacts. Consequently, the artifacts are not as visible when the filtered image is displayed.

FIG. 1 illustrates a system 10 including a scanner 12 and a computer 14 . The scanner 12 can scan a continuous image (e.g., a photo) and output n-bit words representing a digitized image. Each n-bit word represents a pixel of the digitized image, where n is a positive integer. For example, the pixels may be represented by eight-bit words (i.e. bytes, where n=8).

The n-bit words are supplied to the computer 14 . The computer 14 includes a processor 22 , an I/O interface 16 (e.g., a SCSI interface) for receiving the n-bit words from the scanner 12 , and computer memory 18 for storing the n-bit words in a file 20 . This image file 20 may be stored in short term memory (e.g., RAM) or long term memory (e.g., a hard drive). The short term and long term memory collectively are represented by the computer memory 18 .

If the digitized image is underquantized, the microprocessor 22 runs a program 24 to filter the n-bit words to produce larger m-bit words. For example, the computer 14 may filter 8-bit words of an underquantized image to produce 16-bit words. The filtering can attenuate contour lines and other artifacts that arise because of poor quantization. The program 24 , which is stored in the computer memory 18 , will be described below in greater detail.

The m-bit words of the filtered image are stored in a file 26 in the computer memory 18 . The computer 14 may send the filtered image file 26 to another device 28 . For example, the filtered image file 26 may be sent to a display device (e.g., a printer, a video monitor), it may be sent to another computer via a network connection, etc.

FIGS. 2 and 3 show a general method of filtering an array of n-bit words. Upper and lower bounds of corresponding m-bit words are identified (block 50 ). The lower bound of a given m-bit word 46 has its n most significant bits equal to the corresponding n-bit word 48 (see FIG. 3 ). For example, the lower bound of the m-bit word may be equal to the n-bit word shifted left by m−n bits. The upper bound of a given m-bit word is equal to a sum of a maximum uncertainty and the lower bound of the given m-bit word. The uncertainty of the lower order m−n bits is divided into 2 m−n subintervals [0:2 m−n −1]. The maximum uncertainty is equal to 2 m−n −1.

Values for the m-bit words are selected between the upper and lower bounds (block 52 ). There is at least some spatial smoothness between the values that are selected. In this manner, the low order m−n bits are filled. The value v of the lower order m−n bits of each m-bit word is within the range 0≦v<2 m−n . Filling the lower order m−n bits with a set of values that are spatially smooth reduces the visibility of contour lines and other quantization artifacts.

Moreover, since the most significant n bits of each m-bit word are equal to the n-bits of the corresponding n-bit word, the original quantization is maintained. That is, quantizing the m-bit words back to n-bits would produce the original sequence of n-bit words By maintaining the original quantization, original information is preserved.

The filling of the lower order bits of an m-bit word is illustrated in FIG. 4 for m−n=2. The quantization uncertainty comprises the subintervals 0 , 1 , 2 and 3 . The intersection of the sample point w and the curve is in subinterval 2 .

There are various methods for generating the spatially smooth curves. A computationally fast method is shown in FIGS. 5 to 9 . A computationally intensive method that yields an optimally smooth surface is shown in FIG. 10. A faster variation of this computationally fast method is shown in FIG. 11 . Any of these methods may be performed by the microprocessor 22 during execution of the filter program 24 .

Reference is now made to FIGS. 5 and 6. At the start of the filtering (block 100 ), a first row of underquantized n-bit words is accessed (blocks 102 and 104 ). Upper and lower bounds of corresponding m-bit words are then determined (block 106 ). The lower bound of each m-bit word may be determined by packing its most significant n-bits with the corresponding n-bit word or by appending an additional m−n bits to the n-bit word. The lower order m−n bits of the resulting m-bit word may be set to zero.

The lower order m−n bits of the m-bit words are then filled in. An initial change point is determined (block 108 ). For example, the initial change point X 1 may be an imaginary point to the left of the first m-bit word w 1 . The value R 1 of the initial change point X 1 may be equal to a value between the upper and lower bounds of the first m-bit word w 1 .

A constant run of m-bit words w 1 to w 3 is skipped (block 110 ) until a second change point X 2 is identified (block 112 ). A constant run refers to consecutive m-bit words having the same lower bound. The second change point X 2 is identified as an imaginary point between consecutive m-bit words having different lower bounds (block 110 ). Thus, the second change point X 2 lies between third and fourth m-bit words w 3 and w 4 .

A value R 2 for the second change point X 2 is then determined. Graphically, this value R 2 may be at the geometric center of a quadrilateral QL connecting the upper and lower bounds of the third and fourth m-bit words w 3 and w 4 . Thus, the value R 2 may be found at the intersection of the quadrilateral's two diagonals.

Next, the values of the first to third m-bits words w 1 to w 3 (that is, the words in the constant run) are interpolated (block 114 ). If a linear interpolation is used, a value Δ may be computed, where

›DETAILED DESCRIPTION OF THE INVENTION · 2 of 3

Δ=(R 2 −R 1 )/ d X2−X1 .

The quantity d X2−X1 represents the distance between the initial and second change points X 1 and X 2 . The distance may be expressed as a number of words. Thus, the first m-bit word w 1 may have a value of R 1 +Δ/2, the second m-bit word may have a value of R 1 +3Δ/2, and the third m-bit word w 2 may have a value of R 1 +5Δ/2. Interpolated values are indicated by the dark circles.

The interpolated values are clipped if necessary. Clipping is performed so that the interpolated m-bit values, if scaled back by m−n bits, retain their original n-bit values. Clipping is not performed in the example shown in FIG. 6 . However, examples of clipping are given in FIGS. 7 and 8, which will be described below.

If all of the n-bit words in the row have not been filtered (block 116 ), the next constant run of m-bit words is skipped (block 110 ) until a third change point X 3 has been identified (block 112 ). Values for the m-bit words w 4 to w 8 are interpolated between the second and third change points R 2 and R 3 (block 114 ). In analogy with the initial change point of a row, a value R 4 for the final change point is an imaginary one to the right of the final sample X 4 .

After values for all of the m-bit words in the row have been determined (block 116 ), the row of m-bit words is written to the filtered image file 26 (block 118 ), and the next row of n-bit words is accessed (blocks 120 , 122 and 104 ) and filtered (blocks 106 to 116 ). After all of the rows have been filtered (block 120 ), the filtering is finished and the filtered image file 26 is closed (block 124 ).

According to a graphical interpretation of the filtering, the interpolated values of the m-bit words are allowed to vary within a tunnel defined by the upper and lower bounds of the m-bit words. The width of the tunnel is equal to the quantization uncertainty of 2 m−n −1 counts on the m bit scale. As can be seen from FIG. 5, the values of the interpolated words w 1 to w 3 and w 4 to w 8 increase incrementally. By avoiding abrupt changes in values of the m-bit words, visibility of contours lines and other artifacts is reduced.

Reference is now made to FIG. 7, which illustrates a clipping operation. Values R 1 and R 2 for first and second change points X 1 and X 2 are determined, and values for first to third words w 1 to w 3 are interpolated. All three values lie within the upper and lower bounds; therefore, clipping is not performed.

A value R 3 for a third change point X 3 is determined, and values for fourth to sixth words w 4 to w 6 are interpolated between the second and third change point values R 2 and R 3 . The interpolated value of the sixth word w 6 lies above the upper limit of the tunnel, as indicated by the rectangle v 1 . If the interpolated value of the sixth word w 6 was not clipped and thereafter quantized back to n bits, the original value of the requantized sixth word w 6 would not be preserved. Therefore, the sixth m-bit word w 6 is clipped at its upper bound. That is, the value of the sixth word w 6 is set equal to its upper bound. The value of the sixth word w 6 is indicated by a dark circle v 2 .

A fourth value R 4 for a fourth change point X 4 , as indicated in FIG. 7, causes seventh and eight words w 7 and w 8 to be clipped at their lower bounds.

FIG. 8 illustrates the effect of a clipping operation on a dark region between two light regions. The first light region is represented by first and second words w 1 and w 2 , and the second light region is represented by sixth, seventh and eighth words w 6 , w 7 and w 8 . The dark region is represented by third, fourth and fifth words w 3 , w 4 and w 5 .

Values R 1 , R 2 , R 3 and R 4 for four change points X 1 , X 2 , X 3 and X 4 are determined. An interpolated value for the first word w 1 lies within the tunnel. The value of the second word w 2 is clipped at the lower bound of the second word, the values for the third, fourth and fifth words w 3 , w 4 and w 5 are clipped at their upper bounds, and the values of the sixth, seventh and eight words w 6 , w 7 and w 8 are clipped at their lower bounds. Thus, the clipping operations preserve the contrast between the light and dark regions. The contrast between the light and dark regions is the minimum admissible.

The linear filtering described above is performed in a single direction (e.g., a horizontal direction). FIG. 9 shows a method of filtering the underquantized image file 20 in horizontal and vertical directions. All rows of the underquantized image file 20 are filtered by performing the method shown in FIG. 5 (block 202 ). Resulting is a horizontally filtered file. The rows and columns of the underquantized image file are then transposed (block 204 ) and filtered by once again performing the method shown in FIG. 5 (block 206 ). Resulting is a vertically filtered file. The rows and columns of the vertically filtered file are then transposed (block 208 ) and averaged together with the horizontally filtered file, keeping the appropriate registration between pixels, to produce the filtered image file (block 210 )

Reference is now made to FIG. 10, which shows a method of filtering the underquantized image file 20 in a single pass. The single-pass filtering is performed by identifying upper and lower bounds of each m-bit word (block 302 ); generating an optimally smooth surface between the upper and lower bounds of each of the m-bit words (block 304 ); and selecting values of the m-bit words at sample points on the optimally smooth surface (block 306 ).

According to a graphical interpretation of the single-pass filtering, the optimally smooth surface is allowed to vary between a ceiling and a floor. The ceiling is defined by the upper bounds of the m-bit words, and the floor is defined by the lower bounds of the m-bit words. The distance between the floor and the ceiling is equal to the maximum uncertainty.

Points I(x,y) on the optimally smooth surface may be determined by solving

min ∫∫|∇ I ( x,y )| 2 dx dy

›DETAILED DESCRIPTION OF THE INVENTION · 3 of 3

subject to LB(x,y)≦I(x,y)≦UB(x,y), where LB(x,y) is the lower bound at coordinates x and y, UB is the upper bound at coordinates x and y, and ∇ represents a gradient.

The integral may be solved by minimizing the gradient magnitude at every point iteratively by applying Laplacian operators. For example, the points. I(x,y) may be determined by

I n+1 =I n +Δt ( I xx +I yy )

where Δt≦0.25 and I xx +I yy are estimates of the Laplacians that operate on the points I(x,y). The number of iterations and smoothness of the surface is inversely proportional to the width of the stripe formed due to quantization between two contours.

Reference is now made to FIG. 11 . To reduce computational time, the optimally smooth surface may be generated by building a multi-resolution pyramid of the unfiltered image 20 and its corresponding upper and lower bounds (block 402 ); generating a rough surface at the highest level of the multi-resolution pyramid (block 404 ) and refining the surface at each lower level (block 406 ).

During construction of the pyramid, the unfiltered j×k image 20 forms the lowest level. It is subsampled to produce a j/2×k/2 image at the next higher level. The j/2×k/2 image is then subsampled to produce a j/4×k/4 image, and so on until the subsampling produces the coarsest non-unitary image (e.g., a 2×2 image) at the highest level. Subsampling may be performed by averaging together four pixels in an n th level of the pyramid to form a pixel in the n+1 th level. Odd rows and columns may be saved to allow for handling of non-square images (that is, where j≠k).

The surface generated for the highest level of the multi-resolution pyramid can be computed by solving for the integral above. Then, the surface for the highest level is increased in size (for example, by pixel replication or linear interpolation) and refined in the next highest level, with the upper and lower bounds at the next lower level serving as constraints. The surface is further refined at each subsequent lower level until a j×k image is produced at the lowest level.

Thus disclosed is an invention that filters n-bit image data to produce higher precision m-bit image data. The higher precision words are constrained to have the same high order bits as the lower precision words. Lower order bits are added to attenuate contour lines and other artifacts attributed to underquantization of the n-bit image data. A simple algorithm using linear interpolation and clipping can be performed quickly. A more computationally intensive algorithm using an optimally smooth surface will usually achieve a smoother result at the expense of greater computation.

The invention is not limited to the specific embodiments described above. For example, the tunnels may be smoothed by filtering the upper and lower bounds prior to the selection of the values of the m-bit words.

Values of the change points are not limited to the geometric centers of the change regions. For example, change point values may be at the upper or lower bounds. However such values might increase the chances of the interpolated values being clipped.

The invention is not limited to underquantized images provided by a scanner. Images may be provided by other digital image capture devices such as digital cameras.

The invention is not limited to the filtering of underquantized image data. Any type of data can be filtered. For example, underquantized acoustic data could be filtered in accordance with the present invention.

Therefore, the invention is not limited to the specific embodiments described and illustrated above. Instead, the invention is construed according to the claims that follow.

Claims as granted

23 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

8 codes
IPC · International Patent Classification
Section G — Physics
  • G06T5/00
  • G06T5/20
Section H — Electricity
  • H04N7/26
  • H04N1/405
USPC · US Patent Classification
382/264358/447382/251382/300

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 zoomJan 2000Jul 2000Jan 2001Jul 2001Jan 2002Jul 2002Jan 2003Jul 2003Jan 2004Jul 2004USPTOApplicantNon-final rejectionResponse after non-final
USPTOApplicanthover for detail · click to open
Pendency
4.5 y
1,650 days filing → grant
Office actions
1
non-final + final
Responses
1
no RCE
Examiner
Jayanti K. Patel
art unit 2625 · TC 2600
Citations: 15 back · 4 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 2
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