US20010016072A1 - Image segmentation apparatus and method - Google Patents
Image segmentation apparatus and method Download PDFInfo
- Publication number
- US20010016072A1 US20010016072A1 US09/159,094 US15909498A US2001016072A1 US 20010016072 A1 US20010016072 A1 US 20010016072A1 US 15909498 A US15909498 A US 15909498A US 2001016072 A1 US2001016072 A1 US 2001016072A1
- Authority
- US
- United States
- Prior art keywords
- pixel
- image data
- pattern
- valley
- pixels
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000003709 image segmentation Methods 0.000 title description 5
- 238000001514 detection method Methods 0.000 claims abstract description 27
- 239000011159 matrix material Substances 0.000 claims abstract description 10
- 230000011218 segmentation Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 238000009877 rendering Methods 0.000 description 7
- 238000004422 calculation algorithm Methods 0.000 description 6
- 239000000872 buffer Substances 0.000 description 4
- 230000007704 transition Effects 0.000 description 4
- 238000012935 Averaging Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000009792 diffusion process Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000012850 discrimination method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/40—Picture signal circuits
- H04N1/40062—Discrimination between different image types, e.g. two-tone, continuous tone
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
- G06T2207/10008—Still image; Photographic image from scanner, fax or copier
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30176—Document
Definitions
- This invention relates to an image processing method and system. More particularly, this invention classifies input image pixels into different classifications prior to output.
- a document In digital reproduction of documents such as in the digital copier environment, a document is first optically scanned and converted to a gray scale image. In the case of color reproduction, the document may be converted to a gray scale image of several separations, such as the R, G and B separations.
- the image In order to produce a hard copy of the scanned and digitized image, the image has to be further processed according to the requirements of the marking engine. For example, if the marking engine is capable of bi-level printing, then the image has to be rendered into a 1-bit bit map for printing. To preserve the appearance of a gray scale image in a binary output, often some digital halftoning process is used in which the multi-bit input image is screened with a periodic array.
- the present invention provides a method and apparatus for classifying image data.
- a video peak/valley counter may count one of peaks and valleys within a window of the input image data.
- a local roughness device may determine a local roughness of the input image data.
- the input image data may be classified based on the count of the video peak/valley counter device and the local roughness of the local roughness detector.
- a neighborhood average gray value may be determined for the input image data.
- a pixel under consideration may be evaluated to determine if it is a peak or valley based on whether its brightness is greater or less than a peak threshold value or valley threshold value, which are based on the neighborhood average gray value.
- a peak/valley detection device may determine one of a peak and a valley count within a window of the image data around a pixel under consideration.
- a neighborhood checking device may check whether any video peaks or valleys are located within a neighborhood of the pixel under consideration.
- a halftone dot count of a window may be determined. If the determined halftone dot count is less than a predetermined number, then a neighborhood of the pixel under consideration is checked for any peaks and valleys. The data is then classified based on the number of peaks and valleys if there are any peaks or valleys within the neighborhood.
- pixels within a window may be evaluated to determine respective peaks and valleys. Each of the pixels within the window may be evaluated unless any pixel within a neighborhood of a desired pixel has previously been classified as a peak or valley.
- a processing device may determine a peak or valley within a window of the image data.
- the window may include a neighborhood of pixels about a specified pixel.
- the processing device may determine the peaks and valleys within the window unless a pixel within the neighborhood has been determined to be a peak or valley.
- FIG. 1 shows one example of a video matrix
- FIG. 2 shows one embodiment of the present invention
- FIG. 3 shows a two-dimensional look-up table in accordance with the present invention
- FIG. 4 shows eight patterns
- FIGS. 5A and 5B show examples of a video context window
- FIG. 6 shows one example of a neighborhood for a pixel under consideration
- FIG. 7 shows another example of a neighborhood for a pixel under consideration
- FIGS. 8A and 8B show video peaks and valleys in a 24 ⁇ 8 window
- FIG. 9 shows a plot of threshold and video average in accordance with the present invention.
- segmentation may classify an image, on a per pixel basis, into one of several possible classifications.
- input video pixels may be classified, on a pixel-by-pixel basis, into one of 32 different image types.
- This classification may be known as tags or effect pointers.
- the tags may be used by downstream image processing to specify different filtering, rendering and other operations based on the classification.
- the present invention preferably accomplishes this by looking at a 5 ⁇ 5 (fast scan by slow scan) pixel context and determining various characteristics such as the presence and magnitudes of edges (horizontal or vertical), average value of video, minimum and maximum values of video, etc.
- 5 ⁇ 5 fast scan by slow scan
- This matrix is shown in FIG. 1 and can be viewed as a “window” that slides across and down the input image.
- the center pixel, V 22 is the pixel being processed/classified.
- the pixels may be generally referenced as V ij where i is the slow scan index and j is the fast scan index.
- a video matrix of 5 ⁇ 5 is used herein as a preferred example; however, video matrices other than 5 ⁇ 5 are also within the scope of this invention.
- the shift array may develop the video context matrix as the input image moves through the processing architecture.
- the outputs of this module may be fed into the various modules that need all or some of this context.
- the data is preferably stored in a buffer or buffer-like device prior to and during preprocessing. Accordingly, as soon as the value of pixel V 44 is available, the classification of pixel V 22 can be started.
- a shift array may be used that brings in the current scan line and the four previous scan lines that have been stored in the scan line buffers.
- FIG. 2 shows a possible architecture for the image segmentation apparatus and method according to the present invention.
- processing may occur on a special purpose computer, a programmed microprocessor or microcontroller and peripheral integrated circuit elements, an ASIC or other integrated circuit, a hardwired electronic or logic circuit such as a discrete element circuit, a programmable logic device such as a PLD, PLA, FPGA or PAL, or the like.
- specific algorithms may be accomplished using software in combination with specific hardware.
- two major features that may be extracted for segmentation in accordance with an embodiment of the present invention are video peak/valley count within a window containing the pixel being classified and the local roughness.
- Local roughness may represent the degree of gray level discontinuity computed as a combination of some gradient operators.
- One example of local roughness is the difference between the maximum and minimum of nine 3 ⁇ 3 window sums within a 5 ⁇ 5 video context.
- Other methods of determining the local roughness are also within the scope of the present invention.
- a pixel may be considered as a video peak or valley if its gray level is the highest or lowest in the neighborhood and the gray level difference between the pixel and the neighborhood average is greater than a certain threshold. Other methods of determining video peaks and/or valleys are also within the scope of the present invention.
- Several lines of peak and valley patterns may be recorded in scan line buffers for computing peak/valley count within a defined window.
- peak/valley count and local roughness may be used as indices to form a two-dimensional look-up table (hereafter also called a classification table) as a basis to classify data.
- the video data may be mapped to certain classes such as low frequency halftone, high frequency halftone, smooth continuous tone, rough continuous tone, edge, text on halftone, etc.
- the input data may be processed differently.
- the two-dimensional look-up table allows for flexibility in processing and rendering decision making, which in turn makes it possible to use a smaller video context and intermediate results buffer in the segmentation, and at the same time improve the image quality in areas such as stochastic screens, line screens, etc.
- the look-up table (i.e., classification table) may be complemented with some special classes.
- One of them is the “edge class”. It tries to identify some line art and kanji area that could be missed by the look-up table.
- Another special class is the “white class”. It makes use of the absolute gray level information in addition to peak/valley count and roughness.
- the “default class” shown in FIG. 2 may be used for the borders of an image.
- the classification look-up table output may be multiplexed with the special classes to produce the final classification of a pixel (i.e., class output).
- the classification table assignment may be programmable, which allows for more flexibility in rendering adjustment.
- major features that may be extracted for segmentation include local roughness and video peak/valley count.
- the local roughness may be the difference between the maximum and minimum of a nine 3 ⁇ 3 window sum within a 5 ⁇ 5 video context, which extracts edge and text information effectively in most cases.
- the roughness detector are not sensitive to some line art and kanji text patterns and are prone to false detection of video peak/valley.
- pattern detection may be introduced to complement other parts of the segmentation algorithm. This technique looks at the pattern of pixels across a scan line (or matrix) in order to classify the data.
- FIG. 4 shows eight examples of patterns which may be used in the segmentation algorithm of the present invention.
- ⁇ and ⁇ denote transitions required across one line of the 5 ⁇ 5 video context while represents that a certain threshold has to be met.
- These patterns are best defined according to certain parameters that must be met to classify the pixels as corresponding to a pattern. One embodiment of these parameters are described below. One skilled in the art would understand how these rule-based parameters are implemented in the algorithm of the present invention.
- V ij represents the pixel at the ith row and the jth column with the row being in the fast scan direction and the column being in the slow scan direction.
- updownFs[j] is assigned the value 1; on the other hand, if the following conditions are met
- updownFs[j] is assigned the value 2. Otherwise, updownFs[j] will be neither 1 nor 2.
- Patterns 1-8 shown in FIG. 4 are then classified as corresponding to a specific pattern based on several variables.
- this pattern classification is as follows:
- FIGS. 5A and 5B show examples of a 5 ⁇ 5 video context window with the pixel values shown.
- the numbers (200, 50 etc.) are gray levels of the pixels.
- FIG. 5A corresponds to Pattern 1 shown in FIG. 4 while FIG. 5B shows an example of a video context window corresponding to Pattern 3.
- Patterns in the fast scan direction may also be detected in accordance with the present invention.
- a white class may be desirable that makes use of the absolute gray value of the pixel as well.
- three features may be used in detecting white class, namely, the brightness, the roughness and the halftone dot count.
- Prior segmentation schemes rely only on peak/valley count and background threshold to determine white class.
- including both roughness and halftone dot count to detect a white class adds flexibility to the algorithm without a significant cost increase.
- the gray level of the pixel under classification should be greater than a predetermined value.
- the predetermined value may be a default number or may be obtained by computing the lead edge histogram of the image and detecting the peak at the light end of the histogram. The histogram of the whole page may also be used if it is available.
- the local roughness of the pixel should also be below a certain threshold. As discussed above, the local roughness may be the difference between the maximum and minimum of the nine 3 ⁇ 3 window sums within a 5 ⁇ 5 video context.
- the halftone dot count within a defined neighborhood of the pixel should be small enough.
- low-frequency halftone images are often processed and rendered differently than other types of pictorials such as high-frequency halftones, continuous tones, etc.
- high-frequency images may be converted to continuous tone images using a low-pass filter and then re-screened for printing.
- Low-frequency halftones are often rendered with error diffusion.
- Stochastic screen originals and line screen originals are some typical examples.
- some part of high-frequency halftones may be misclassified as low-frequency image areas due to the missing peaks/valleys in some local areas. False detection of low-frequency halftone may result in severe artifacts.
- One embodiment of the present invention uses a neighborhood checking mechanism to reduce the false detection of low-frequency halftones.
- the halftone dot within a window i.e., 24 columns by 8 lines
- the entries of the look-up table are then mapped to certain number of classes. Neighborhood checking may be performed when the halftone dot count within the window is smaller than a programmable parameter. The algorithm checks a defined neighborhood of any peak/valley within the window.
- FIG. 6 shows one example of the shaded pixels forming the neighborhood of the black pixel. If there are peaks/valleys in the neighborhood of a peak/valley, then instead of using the original halftone dot count, a special index may be given to the pixel under detection.
- This neighborhood checking ensures that unless the video peaks/valleys within a window are some distance apart, the pixel will not be considered as a low-frequency halftone. That is, if there are closely located peaks/valleys within a window, then the pixel is not part of a low-frequency halftone but rather may be a high-frequency halftone.
- FIG. 7 shows a similar embodiment in which the black pixel is under detection and the shaded pixels are neighboring pixels of interest.
- the pixel under detection will not be considered as a peak or a valley if any of the neighboring pixels of interest (i.e., the shaded pixels) are peaks or valleys.
- the logic is easy to implement in hardware. The logic guarantees that if a pixel is detected as a peak or valley, then none of its eight immediate neighbors will be peaks or valleys.
- a triple window may be used to determine peak/valley counts and the halftone dot count average associated with the pixel under classification. For example, the peak/valley information in a window of 24 columns by 8 lines around a pixel is examined.
- FIG. 8A shows the 24 ⁇ 8 window divided into three smaller (8 ⁇ 8) windows. In each of the 8 ⁇ 8 windows, the greater of the peak and valley counts is chosen to represent the halftone dot count of that window. This improves the accuracy of counting in the area with major gray level changes.
- a set of rules may be used to determine the final halftone dot count associated with the pixel under classification.
- the halftone dot counts of the three windows are considered dotLeft, dotMid and dotRight respectively, and dotCount is the final halftone dot count.
- LOWCOUNT is a programmable parameter.
- FIG. 8A shows an example of video peak pattern in a 24 ⁇ 8 window
- FIG. 8B shows an example of video valley pattern in a 24 ⁇ 8 window.
- the dotLeft, dotMid and dotRight are 4, 4 and 5 respectively. If LOWCOUNT is set to be 3, then dotCount, which reflects two thirds of the halftone dot count within the 24 ⁇ 8 window, is 9. This type of rule-based calculation generally works better than simple averaging in transitional areas.
- the gray difference between a peak or valley and its neighbors is greatest in mid-tone areas as compared to highlight or shadow areas.
- one embodiment of the present invention links the threshold for peak/valley detection to the neighborhood average gray value so as to reduce misclassification.
- a pixel may be considered as a video peak/valley if its gray level is the highest/lowest in the neighborhood and also, the gray level difference between the pixel and the neighborhood average is greater than a certain threshold.
- the qualifying conditions of peak/valley and the definition of neighborhood may vary. If the threshold for peak/valley detection is set too high, then some halftone dots in the highlight or shadow area may be missed. On the other hand, if the threshold is set too low, then some potential noise or non-halftone video gray level variation could be falsely identified as halftone dots.
- the threshold for peak/valley detection may be tied to the neighborhood average gray value.
- the threshold-video average correlation may be established through statistical analysis.
- the implementation may be a look-up table or some simple formula.
- the Threshold-Video_Average plot shown in FIG. 9 may be represented by the following equation,
- Threshold C 1 ⁇ Video_Average/16 for Video_Average>MT
- a 16-entry table may be used to achieve similar results.
- video averaging is used to reduce the possibility of misclassifying peaks and valleys.
- Halftone dots when present in the form of video peaks, generally occur in areas with relatively low average gray value. The converse is true for halftone dots in the form of video valley.
- the threshold for peak detection may be set to be greater than the threshold for valley detection by some margin, making sure that halftone dots will not be missed.
- the video average could be the average gray level of a 5 ⁇ 5 window.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Analysis (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
- 1. Field of Invention
- This invention relates to an image processing method and system. More particularly, this invention classifies input image pixels into different classifications prior to output.
- 2. Description of Related Art
- In digital reproduction of documents such as in the digital copier environment, a document is first optically scanned and converted to a gray scale image. In the case of color reproduction, the document may be converted to a gray scale image of several separations, such as the R, G and B separations. In order to produce a hard copy of the scanned and digitized image, the image has to be further processed according to the requirements of the marking engine. For example, if the marking engine is capable of bi-level printing, then the image has to be rendered into a 1-bit bit map for printing. To preserve the appearance of a gray scale image in a binary output, often some digital halftoning process is used in which the multi-bit input image is screened with a periodic array. However, if the original image itself contains halftone screen, objectionable moire patterns may occur due to the interference between the original and the new screens. Also, while dot screen halftoning may be good for rendering continuous tone originals, it may degrade the quality of text and line drawings. Often a document contains different types of images. In order to achieve optimal image quality in document reproduction, a system capable of automatically identifying different types of images within a page is needed. For example, if an image part is identified as halftone, then some kind of low-pass filtering may be applied prior to halftone screening so the gray scale appearance can be preserved without introducing moire patterns. For text area, some sharpness enhancement filter could be applied and other rendering techniques such as thresholding or error diffusion could be used.
- Early work on image segmentation for the purpose of document reproduction dates back to the 1970s. U.S. Pat. No. 4,194,221, the subject matter of which is incorporated herein by reference, discloses a method for automatic multimode reproduction. It employs autocorrelation in halftone detection. Since then, a lot of work has been published in the area of image segmentation. See, for example, U.S. Pat. No. 4,740,843, the subject matter of which is incorporated herein by reference, discloses the method of halftone image detection by measuring the distance between successive gray level maxima. U.S. Pat. No. 5,341,277, the subject matter of which is incorporated herein by reference, discloses a dot image discrimination method that counts density change points within an area. One disadvantage that is common to the existing image segmentation systems is the rigidity of the system structure. Usually the system only provides several programmable parameters used for thresholds in detecting video maximum/minimum, halftone dot counting, etc. It does not provide much flexibility to support processing/rendering optimization and to cope with requirement change. There are other shortcomings in the existing segmentation systems that are related to using fixed threshold in halftone dot detection, using simple average in halftone dot counting, etc., which could result in misclassification in certain area.
- The present invention provides a method and apparatus for classifying image data. In one embodiment, a video peak/valley counter may count one of peaks and valleys within a window of the input image data. A local roughness device may determine a local roughness of the input image data. In one embodiment, the input image data may be classified based on the count of the video peak/valley counter device and the local roughness of the local roughness detector.
- In one embodiment, a neighborhood average gray value may be determined for the input image data. A pixel under consideration may be evaluated to determine if it is a peak or valley based on whether its brightness is greater or less than a peak threshold value or valley threshold value, which are based on the neighborhood average gray value.
- In one embodiment, a peak/valley detection device may determine one of a peak and a valley count within a window of the image data around a pixel under consideration. A neighborhood checking device may check whether any video peaks or valleys are located within a neighborhood of the pixel under consideration.
- In one embodiment, a halftone dot count of a window may be determined. If the determined halftone dot count is less than a predetermined number, then a neighborhood of the pixel under consideration is checked for any peaks and valleys. The data is then classified based on the number of peaks and valleys if there are any peaks or valleys within the neighborhood.
- In one embodiment, pixels within a window may be evaluated to determine respective peaks and valleys. Each of the pixels within the window may be evaluated unless any pixel within a neighborhood of a desired pixel has previously been classified as a peak or valley.
- In one embodiment, a processing device may determine a peak or valley within a window of the image data. The window may include a neighborhood of pixels about a specified pixel. The processing device may determine the peaks and valleys within the window unless a pixel within the neighborhood has been determined to be a peak or valley.
- Other objects, advantages and salient features of the invention will become apparent from the following detailed description taken in conjunction with the annexed drawings which disclose preferred embodiments of the invention.
- The invention will be described with reference to the following drawings in which like reference numerals refer to like elements and wherein:
- FIG. 1 shows one example of a video matrix;
- FIG. 2 shows one embodiment of the present invention;
- FIG. 3 shows a two-dimensional look-up table in accordance with the present invention;
- FIG. 4 shows eight patterns;
- FIGS. 5A and 5B show examples of a video context window;
- FIG. 6 shows one example of a neighborhood for a pixel under consideration;
- FIG. 7 shows another example of a neighborhood for a pixel under consideration;
- FIGS. 8A and 8B show video peaks and valleys in a 24×8 window; and
- FIG. 9 shows a plot of threshold and video average in accordance with the present invention.
- In accordance with one embodiment of the present invention, segmentation may classify an image, on a per pixel basis, into one of several possible classifications. For example, input video pixels may be classified, on a pixel-by-pixel basis, into one of 32 different image types. This classification may be known as tags or effect pointers. The tags may be used by downstream image processing to specify different filtering, rendering and other operations based on the classification.
- The present invention preferably accomplishes this by looking at a 5×5 (fast scan by slow scan) pixel context and determining various characteristics such as the presence and magnitudes of edges (horizontal or vertical), average value of video, minimum and maximum values of video, etc. Many of the functions in the segmentation process are easily defined in terms of the 5×5 video matrix. This matrix is shown in FIG. 1 and can be viewed as a “window” that slides across and down the input image. The center pixel, V22, is the pixel being processed/classified. The pixels may be generally referenced as Vij where i is the slow scan index and j is the fast scan index. A video matrix of 5×5 is used herein as a preferred example; however, video matrices other than 5×5 are also within the scope of this invention.
- The shift array may develop the video context matrix as the input image moves through the processing architecture. The outputs of this module may be fed into the various modules that need all or some of this context. The data is preferably stored in a buffer or buffer-like device prior to and during preprocessing. Accordingly, as soon as the value of pixel V44 is available, the classification of pixel V22 can be started. A shift array may be used that brings in the current scan line and the four previous scan lines that have been stored in the scan line buffers.
- FIG. 2 shows a possible architecture for the image segmentation apparatus and method according to the present invention. One skilled in the art would understand that processing may occur on a special purpose computer, a programmed microprocessor or microcontroller and peripheral integrated circuit elements, an ASIC or other integrated circuit, a hardwired electronic or logic circuit such as a discrete element circuit, a programmable logic device such as a PLD, PLA, FPGA or PAL, or the like. Furthermore, specific algorithms may be accomplished using software in combination with specific hardware.
- As shown in FIG. 2, two major features that may be extracted for segmentation in accordance with an embodiment of the present invention are video peak/valley count within a window containing the pixel being classified and the local roughness. Local roughness may represent the degree of gray level discontinuity computed as a combination of some gradient operators. One example of local roughness is the difference between the maximum and minimum of nine 3×3 window sums within a 5×5 video context. Other methods of determining the local roughness are also within the scope of the present invention. On the other hand, a pixel may be considered as a video peak or valley if its gray level is the highest or lowest in the neighborhood and the gray level difference between the pixel and the neighborhood average is greater than a certain threshold. Other methods of determining video peaks and/or valleys are also within the scope of the present invention.
- Several lines of peak and valley patterns may be recorded in scan line buffers for computing peak/valley count within a defined window. In accordance with one embodiment, peak/valley count and local roughness may be used as indices to form a two-dimensional look-up table (hereafter also called a classification table) as a basis to classify data. FIG. 3 shows one example of a two-dimensional look-up table that uses five roughness levels and twelve peak/valley count levels. This results in sixty classification table entries (i.e., 5×12=60). Depending on a location within the look- up table, the video data may be mapped to certain classes such as low frequency halftone, high frequency halftone, smooth continuous tone, rough continuous tone, edge, text on halftone, etc. Depending on the class, the input data may be processed differently.
- The two-dimensional look-up table allows for flexibility in processing and rendering decision making, which in turn makes it possible to use a smaller video context and intermediate results buffer in the segmentation, and at the same time improve the image quality in areas such as stochastic screens, line screens, etc.
- The look-up table (i.e., classification table) may be complemented with some special classes. One of them is the “edge class”. It tries to identify some line art and kanji area that could be missed by the look-up table. Another special class is the “white class”. It makes use of the absolute gray level information in addition to peak/valley count and roughness. The “default class” shown in FIG. 2 may be used for the borders of an image. The classification look-up table output may be multiplexed with the special classes to produce the final classification of a pixel (i.e., class output). The classification table assignment may be programmable, which allows for more flexibility in rendering adjustment.
- As described above with respect to one embodiment, major features that may be extracted for segmentation include local roughness and video peak/valley count. The local roughness may be the difference between the maximum and minimum of a nine 3×3 window sum within a 5×5 video context, which extracts edge and text information effectively in most cases. However, the roughness detector are not sensitive to some line art and kanji text patterns and are prone to false detection of video peak/valley. To limit these problems, in one embodiment pattern detection may be introduced to complement other parts of the segmentation algorithm. This technique looks at the pattern of pixels across a scan line (or matrix) in order to classify the data. FIG. 4 shows eight examples of patterns which may be used in the segmentation algorithm of the present invention. In this figure, ↑ and ↓ denote transitions required across one line of the 5×5 video context while represents that a certain threshold has to be met. These patterns are best defined according to certain parameters that must be met to classify the pixels as corresponding to a pattern. One embodiment of these parameters are described below. One skilled in the art would understand how these rule-based parameters are implemented in the algorithm of the present invention.
- Vij represents the pixel at the ith row and the jth column with the row being in the fast scan direction and the column being in the slow scan direction.
-
- Another variable array is updownFs[j], 0<=j<=3. This is used to signal transitions. The assignment is determined as following: if the following conditions are met
- i) Vij<=Vij+1 for all i
- ii) sumSs[j]<sumSs[j+1]
- then updownFs[j] is assigned the
value 1; on the other hand, if the following conditions are met - i) Vij>=Vij+1 for all i
- ii) sumSs[j]>sumSs[j+1]
- then updownFs[j] is assigned the
value 2. Otherwise, updownFs[j] will be neither 1 nor 2. - Patterns 1-8 shown in FIG. 4 are then classified as corresponding to a specific pattern based on several variables. In a preferred embodiment, this pattern classification is as follows:
-
Pattern 1. - i) updownFs[0]=2
- ii) updownFs[2]=1
- iii) min(sumSs[0],sumSs[3]−min(sumSs[2],sumSs[2]) >SUMDIF1
-
Pattern 2. - i) updownFs[1]=2
- ii) updownF3[3]=1
- iii) min(sumSs[1],sumSs[4])− min(sumSs[2],sumSs[3]) >SUMDIF1
-
Pattern 3. - i) updownFs[0]=1
- ii) updownFs[1]=1
- iii) updownFs[2]=2
- iv) updownFs[3]=2
- v) sumSs[2]−sumSs[0]>SUMDIF2
- vi) sumSs[2]−sumSs[4]>SUMDIF2
- Pattern 4.
- i) sumSs[3]−sumSs[2]>SUMDIF3
- ii) sumSs[2]−sumSs[1]>SUMDIF3
-
Pattern 5. - i) updownFs[1]=1
- ii) updownFs[2]=2
- iii) max(sumSs[1],sumSs[2])−max(sumSs[0],sumSs[3])>SUMDIF4
- Pattern 6.
- i) updownFs[1]=1
- ii) updownFs[3]=2
- iii) max(sumSs[2],sumSs[3])−max(sumSs[1],sumSs[4])>SUMDIF4
-
Pattern 7. - i) updownFs[0]=2
- ii) updownFs[1]=2
- iii) updownFs[2]=1
- iv) updownFs[3]=1
- v) sumSs[0]−sumSs[2]>SUMDIF5
- vi) sumSs[4]−sumSs[3]>SUMDIF5
-
Pattern 8. - i) sumSs[1]−sumSs[2]>SUMDIF6
- ii) sumSs[2]−sumSs[3]>SUMDIF6
- FIGS. 5A and 5B show examples of a 5×5 video context window with the pixel values shown. The numbers (200, 50 etc.) are gray levels of the pixels. By using such a pattern detector, then text areas can be detected that would not be detected by a roughness detector. As can be seen, FIG. 5A corresponds to
Pattern 1 shown in FIG. 4 while FIG. 5B shows an example of a video context window corresponding toPattern 3. - The patterns described above identify certain gray level transitions in the fast scan direction. Patterns in the slow scan direction may also be detected in accordance with the present invention.
- In processing and rendering of background areas, a white class may be desirable that makes use of the absolute gray value of the pixel as well. In accordance with one embodiment of the present invention three features may be used in detecting white class, namely, the brightness, the roughness and the halftone dot count. Prior segmentation schemes rely only on peak/valley count and background threshold to determine white class. However, including both roughness and halftone dot count to detect a white class adds flexibility to the algorithm without a significant cost increase.
- In order to qualify as white, first the gray level of the pixel under classification should be greater than a predetermined value. The predetermined value may be a default number or may be obtained by computing the lead edge histogram of the image and detecting the peak at the light end of the histogram. The histogram of the whole page may also be used if it is available. Second, the local roughness of the pixel should also be below a certain threshold. As discussed above, the local roughness may be the difference between the maximum and minimum of the nine 3×3 window sums within a 5×5 video context. Third, the halftone dot count within a defined neighborhood of the pixel should be small enough.
- As is well known to one skilled in the art, low-frequency halftone images are often processed and rendered differently than other types of pictorials such as high-frequency halftones, continuous tones, etc. For example, high-frequency images may be converted to continuous tone images using a low-pass filter and then re-screened for printing. Low-frequency halftones, on the other hand, are often rendered with error diffusion. There are many circumstances in which a non low-frequency area could be classified as a low-frequency halftone if the video peak/valley count is the only criterion. Stochastic screen originals and line screen originals are some typical examples. Also, some part of high-frequency halftones may be misclassified as low-frequency image areas due to the missing peaks/valleys in some local areas. False detection of low-frequency halftone may result in severe artifacts. One embodiment of the present invention uses a neighborhood checking mechanism to reduce the false detection of low-frequency halftones.
- As discussed above, with respect to one embodiment, the halftone dot within a window (i.e., 24 columns by 8 lines) and the local roughness may be used as indices to form the look-up table. The entries of the look-up table are then mapped to certain number of classes. Neighborhood checking may be performed when the halftone dot count within the window is smaller than a programmable parameter. The algorithm checks a defined neighborhood of any peak/valley within the window. FIG. 6 shows one example of the shaded pixels forming the neighborhood of the black pixel. If there are peaks/valleys in the neighborhood of a peak/valley, then instead of using the original halftone dot count, a special index may be given to the pixel under detection. This neighborhood checking ensures that unless the video peaks/valleys within a window are some distance apart, the pixel will not be considered as a low-frequency halftone. That is, if there are closely located peaks/valleys within a window, then the pixel is not part of a low-frequency halftone but rather may be a high-frequency halftone.
- FIG. 7 shows a similar embodiment in which the black pixel is under detection and the shaded pixels are neighboring pixels of interest. Using appropriate logic such as hardware, the pixel under detection will not be considered as a peak or a valley if any of the neighboring pixels of interest (i.e., the shaded pixels) are peaks or valleys. In other words, since by the time the pixel under detection is being examined and the neighboring pixels of interest have all been detected, the logic is easy to implement in hardware. The logic guarantees that if a pixel is detected as a peak or valley, then none of its eight immediate neighbors will be peaks or valleys.
- In one embodiment of the present invention, a triple window may be used to determine peak/valley counts and the halftone dot count average associated with the pixel under classification. For example, the peak/valley information in a window of 24 columns by 8 lines around a pixel is examined. FIG. 8A shows the 24×8 window divided into three smaller (8×8) windows. In each of the 8×8 windows, the greater of the peak and valley counts is chosen to represent the halftone dot count of that window. This improves the accuracy of counting in the area with major gray level changes.
- Given the halftone dot counts of the three 8×8 windows, a set of rules may be used to determine the final halftone dot count associated with the pixel under classification. The halftone dot counts of the three windows are considered dotLeft, dotMid and dotRight respectively, and dotCount is the final halftone dot count. The rules can be described by the following C-like statement,
if (dotLeft > dotMid && dotMid < dotRight) { dotCount = min(dotLeft,dotRight)*2; } else if (dotLeft < dotMid && dotMid > dotRight) { if (min(dotLeft,dotRight) == LOW COUNT) { dotCount = dotMid + dotRight; } else { dotCount = max(dotMid,dotright)*2; } } else { if (dotMid > = LOWCOUNT) { dotCount = dotMid + max(dotLeft,dotRight); } else { dotCount = dotMid + min(dotLeft,dotRight); } } - where LOWCOUNT is a programmable parameter.
- Using the above rules instead of simple averaging improves the halftone dot count in areas of peak/valley misdetection or where peak/valley density transitions occur.
- More specifically, FIG. 8A shows an example of video peak pattern in a 24×8 window and FIG. 8B shows an example of video valley pattern in a 24×8 window. The dotLeft, dotMid and dotRight are 4, 4 and 5 respectively. If LOWCOUNT is set to be 3, then dotCount, which reflects two thirds of the halftone dot count within the 24×8 window, is 9. This type of rule-based calculation generally works better than simple averaging in transitional areas.
- The gray difference between a peak or valley and its neighbors is greatest in mid-tone areas as compared to highlight or shadow areas. Thus, one embodiment of the present invention links the threshold for peak/valley detection to the neighborhood average gray value so as to reduce misclassification. For example, a pixel may be considered as a video peak/valley if its gray level is the highest/lowest in the neighborhood and also, the gray level difference between the pixel and the neighborhood average is greater than a certain threshold. The qualifying conditions of peak/valley and the definition of neighborhood may vary. If the threshold for peak/valley detection is set too high, then some halftone dots in the highlight or shadow area may be missed. On the other hand, if the threshold is set too low, then some potential noise or non-halftone video gray level variation could be falsely identified as halftone dots. To reduce misclassification, the threshold for peak/valley detection may be tied to the neighborhood average gray value.
- The threshold-video average correlation may be established through statistical analysis. The implementation may be a look-up table or some simple formula. For example, the Threshold-Video_Average plot shown in FIG. 9 may be represented by the following equation,
- Threshold=C1−Video_Average/16 for Video_Average>MT
- C2+Video_Average2/2048 for Video_Average<=MT
- with C1=21, C2=5 and MT=128.
- A 16-entry table may be used to achieve similar results.
- An implementation of this approach has been tested with the video average calculated as the average of the eight immediate neighbors of the pixel under detection for peak/valley.
- In at least one embodiment of the present invention, video averaging is used to reduce the possibility of misclassifying peaks and valleys.
- Halftone dots, when present in the form of video peaks, generally occur in areas with relatively low average gray value. The converse is true for halftone dots in the form of video valley. By limiting peak detection to the area where the video average is below a certain threshold and limiting valley detection to the area where the video average is above certain threshold, some false detection can be prevented. The threshold for peak detection may be set to be greater than the threshold for valley detection by some margin, making sure that halftone dots will not be missed. The video average could be the average gray level of a 5×5 window.
- While the invention has been described in relation to preferred embodiments, many modifications and variations are apparent from the description of the invention, and all such modifications and variations are intended to be within the scope of the present invention as defined in the appended claims.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US09/159,094 US6360009B2 (en) | 1998-09-23 | 1998-09-23 | Image segmentation apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US09/159,094 US6360009B2 (en) | 1998-09-23 | 1998-09-23 | Image segmentation apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
US20010016072A1 true US20010016072A1 (en) | 2001-08-23 |
US6360009B2 US6360009B2 (en) | 2002-03-19 |
Family
ID=22571062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US09/159,094 Expired - Lifetime US6360009B2 (en) | 1998-09-23 | 1998-09-23 | Image segmentation apparatus and method |
Country Status (1)
Country | Link |
---|---|
US (1) | US6360009B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040027614A1 (en) * | 2002-08-09 | 2004-02-12 | Xerox Corporation | System for identifying low-frequency halftone screens in image data |
US20050265600A1 (en) * | 2004-06-01 | 2005-12-01 | Xerox Corporation | Systems and methods for adjusting pixel classification using background detection |
CN105139410A (en) * | 2015-09-11 | 2015-12-09 | 浙江工商大学 | Brain tumor MRI image segmentation algorithm utilizing space section projection |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6750986B1 (en) | 2000-03-27 | 2004-06-15 | Destiny Technology Corporation | Color image processing method with thin-line detection and enhancement |
US6778296B1 (en) | 2000-03-27 | 2004-08-17 | Destiny Technology Corporation | Color imaging processing method with boundary detection and enhancement |
JP4110715B2 (en) * | 2000-07-11 | 2008-07-02 | コニカミノルタビジネステクノロジーズ株式会社 | Image processing device |
US6914700B2 (en) | 2003-04-17 | 2005-07-05 | Lexmark International, Inc. | Method for reducing migrating residual error in error diffusion halftoning |
US7421143B2 (en) * | 2004-06-01 | 2008-09-02 | Xerox Corporation | Systems and methods for optimal dynamic range adjustment of scanned images |
ITMI20050558A1 (en) * | 2005-04-05 | 2006-10-06 | Stmicroelectronics Ltd Malta | METHOD FOR DETECTING SHADOWS IN DISTURBED IMAGES |
JP4771804B2 (en) * | 2005-12-20 | 2011-09-14 | 富士通株式会社 | Layout analysis program, layout analysis apparatus, layout analysis method |
US7792359B2 (en) * | 2006-03-02 | 2010-09-07 | Sharp Laboratories Of America, Inc. | Methods and systems for detecting regions in digital images |
US7889932B2 (en) * | 2006-03-02 | 2011-02-15 | Sharp Laboratories Of America, Inc. | Methods and systems for detecting regions in digital images |
US8630498B2 (en) * | 2006-03-02 | 2014-01-14 | Sharp Laboratories Of America, Inc. | Methods and systems for detecting pictorial regions in digital images |
US7864365B2 (en) * | 2006-06-15 | 2011-01-04 | Sharp Laboratories Of America, Inc. | Methods and systems for segmenting a digital image into regions |
US8437054B2 (en) * | 2006-06-15 | 2013-05-07 | Sharp Laboratories Of America, Inc. | Methods and systems for identifying regions of substantially uniform color in a digital image |
US7876959B2 (en) * | 2006-09-06 | 2011-01-25 | Sharp Laboratories Of America, Inc. | Methods and systems for identifying text in digital images |
US20090041344A1 (en) * | 2007-08-08 | 2009-02-12 | Richard John Campbell | Methods and Systems for Determining a Background Color in a Digital Image |
US8014596B2 (en) * | 2007-10-30 | 2011-09-06 | Sharp Laboratories Of America, Inc. | Methods and systems for background color extrapolation |
CN105427327B (en) * | 2015-12-10 | 2017-05-31 | 北京中科紫鑫科技有限责任公司 | The method for registering images and device of a kind of DNA sequencing |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4194221A (en) | 1978-12-26 | 1980-03-18 | Xerox Corporation | Automatic multimode continuous halftone line copy reproduction |
US4468704A (en) * | 1982-10-28 | 1984-08-28 | Xerox Corporation | Adaptive thresholder |
NL8503558A (en) | 1985-12-24 | 1987-07-16 | Oce Nederland Bv | METHOD AND APPARATUS FOR RECOGNIZING SEMI-TONE IMAGE INFORMATION. |
JP3437226B2 (en) * | 1993-10-20 | 2003-08-18 | キヤノン株式会社 | Image processing method and apparatus |
KR960001927A (en) * | 1994-06-30 | 1996-01-26 | 김광호 | Commercial identification device |
-
1998
- 1998-09-23 US US09/159,094 patent/US6360009B2/en not_active Expired - Lifetime
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040027614A1 (en) * | 2002-08-09 | 2004-02-12 | Xerox Corporation | System for identifying low-frequency halftone screens in image data |
US7280253B2 (en) * | 2002-08-09 | 2007-10-09 | Xerox Corporation | System for identifying low-frequency halftone screens in image data |
US20050265600A1 (en) * | 2004-06-01 | 2005-12-01 | Xerox Corporation | Systems and methods for adjusting pixel classification using background detection |
CN105139410A (en) * | 2015-09-11 | 2015-12-09 | 浙江工商大学 | Brain tumor MRI image segmentation algorithm utilizing space section projection |
Also Published As
Publication number | Publication date |
---|---|
US6360009B2 (en) | 2002-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6178260B1 (en) | Image segmentation apparatus and method | |
US6360009B2 (en) | Image segmentation apparatus and method | |
US6782129B1 (en) | Image segmentation apparatus and method | |
US6389164B2 (en) | Image segmentation apparatus and method | |
EP0521662B1 (en) | Improved automatic image segmentation | |
US6137907A (en) | Method and apparatus for pixel-level override of halftone detection within classification blocks to reduce rectangular artifacts | |
JP4633907B2 (en) | Method and apparatus for masking scanning artifacts in image data representing a document and image data processing system | |
JP4396324B2 (en) | Method for determining halftone area and computer program | |
US5852678A (en) | Detection and rendering of text in tinted areas | |
US6674899B2 (en) | Automatic background detection of scanned documents | |
US6324309B1 (en) | Image processing apparatus | |
US7876959B2 (en) | Methods and systems for identifying text in digital images | |
EP0712094A2 (en) | A multi-windowing technique for threshholding an image using local image properties | |
US7411699B2 (en) | Method and apparatus to enhance digital image quality | |
US6272240B1 (en) | Image segmentation apparatus and method | |
EP0713329A1 (en) | Method and apparatus for automatic image segmentation using template matching filters | |
EP0500174B1 (en) | Image processing method and scan/print system for performing the method | |
US6529629B2 (en) | Image segmentation apparatus and method | |
US7746503B2 (en) | Method of and device for image enhancement | |
US6185335B1 (en) | Method and apparatus for image classification and halftone detection | |
US7280253B2 (en) | System for identifying low-frequency halftone screens in image data | |
US7251059B2 (en) | System for distinguishing line patterns from halftone screens in image data | |
US6411735B1 (en) | Method and apparatus for distinguishing between noisy continuous tone document types and other document types to maintain reliable image segmentation | |
JP3453939B2 (en) | Image processing device | |
JP3251119B2 (en) | Image processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: XEROX CORPORATION, CONNECTICUT Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:LI, XING;MEYERS, MICHAEL E.;TSE, FRANCIS K.;REEL/FRAME:009478/0955 Effective date: 19980923 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
AS | Assignment |
Owner name: BANK ONE, NA, AS ADMINISTRATIVE AGENT, ILLINOIS Free format text: SECURITY INTEREST;ASSIGNOR:XEROX CORPORATION;REEL/FRAME:013153/0001 Effective date: 20020621 |
|
AS | Assignment |
Owner name: JPMORGAN CHASE BANK, AS COLLATERAL AGENT, TEXAS Free format text: SECURITY AGREEMENT;ASSIGNOR:XEROX CORPORATION;REEL/FRAME:015134/0476 Effective date: 20030625 Owner name: JPMORGAN CHASE BANK, AS COLLATERAL AGENT,TEXAS Free format text: SECURITY AGREEMENT;ASSIGNOR:XEROX CORPORATION;REEL/FRAME:015134/0476 Effective date: 20030625 |
|
FPAY | Fee payment |
Year of fee payment: 4 |
|
FPAY | Fee payment |
Year of fee payment: 8 |
|
FPAY | Fee payment |
Year of fee payment: 12 |
|
AS | Assignment |
Owner name: XEROX CORPORATION, CONNECTICUT Free format text: RELEASE BY SECURED PARTY;ASSIGNOR:JPMORGAN CHASE BANK, N.A. AS SUCCESSOR-IN-INTEREST ADMINISTRATIVE AGENT AND COLLATERAL AGENT TO JPMORGAN CHASE BANK;REEL/FRAME:066728/0193 Effective date: 20220822 |