WO2007026924A1 - Image processing apparatus and method thereof - Google Patents

Image processing apparatus and method thereof Download PDF

Info

Publication number
WO2007026924A1
WO2007026924A1 PCT/JP2006/317417 JP2006317417W WO2007026924A1 WO 2007026924 A1 WO2007026924 A1 WO 2007026924A1 JP 2006317417 W JP2006317417 W JP 2006317417W WO 2007026924 A1 WO2007026924 A1 WO 2007026924A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
signal
pixel
isolation
halftone dot
Prior art date
Application number
PCT/JP2006/317417
Other languages
French (fr)
Inventor
Tsutomu Sakaue
Original Assignee
Canon Kabushiki Kaisha
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Canon Kabushiki Kaisha filed Critical Canon Kabushiki Kaisha
Priority to US11/997,216 priority Critical patent/US8004732B2/en
Priority to EP06797342A priority patent/EP1915853B1/en
Priority to CN2006800320145A priority patent/CN101253760B/en
Publication of WO2007026924A1 publication Critical patent/WO2007026924A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/40062Discrimination between different image types, e.g. two-tone, continuous tone

Definitions

  • the present invention relates to image processing for extracting an image region from an image including different types of image regions.
  • a method of applying optimal image processing according to features of an image a method of extracting a character edge using a differential filter or the like to segment an image region into a text region and other regions, and then applying adaptive processing is known. Also, a method of extracting a halftone dot region by defining a dot as- an isolation amount and integrating isolation amounts within a predetermined area, so as to segment an image region into a text region and the halftone dot region, and then applying adaptive processing is known (for example, see Japanese Patent Laid-Open No. 11-85978) .
  • the aforementioned region extraction technique exhibits high extraction performance for a halftone dot region that expresses a character, photo, or the like in a white background.
  • the extraction performance of a halftone dot region when a character, line drawing, or the like is present within the halftone dot region is not so high. Especially, it is very difficult to extract a low-density halftone dot region including a character or line drawing.
  • Extraction errors increase if processing is changed in a direction to make it easy to extract dots in order to improve the extraction performance of a halftone dot region.
  • a method of avoiding the influence of a character or line drawing by enlarging an area in which isolation amounts are integrated may be used.
  • the extraction result of the halftone dot region unwantedly enlarges (the extraction result balloons) .
  • One aspect of the present invention discloses a method of extracting image regions from an image including different types of image regions, comprising the steps of: calculating an isolation amount of an interest pixel; integrating the isolation amounts in a plurality of areas having different sizes; and determining whether or not the interest pixel belongs to a halftone dot region by comparing thresholds set for the respective plurality of areas and the integration result.
  • a halftone dot region including a character, line drawing, or the like can be correctly detected. Also, ballooning of the extraction result which occurs at the boundary of a halftone dot region can be prevented.
  • FIG. 1 is a block diagram for explaining the arrangement of image processing according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the arrangement for detecting pixels with a text attribute of a region segmentation unit
  • Fig. 3 is a block diagram showing the arrangement of a dot determination unit which receives an average value AVE and edge emphasis signal EDGl;
  • Fig. 4 is a block diagram showing the arrangement of an edge determination unit which receives an average value AVE and edge emphasis signal EDG2 ;
  • Fig. 5 is a block diagram showing the arrangement for detecting pixels of a color attribute of the region segmentation unit; [0013] Fig. 6 shows an a*b* plane;
  • Fig. 7 shows a state wherein images for a plurality of pages are combined and printed
  • FIG. 8 is a block diagram showing the arrangement of an output image processor
  • FIG. 9 is a block diagram showing the arrangement of a forgery determination processor
  • Figs. 1OA and 1OB are views for explaining detection of a halftone dot region
  • Figs. HA and HB are views for explaining a problem posed when an area for integrating isolation amounts is enlarged;
  • Fig. 12 is a block diagram showing the arrangement of the region segmentation unit which has improved detection precision of a halftone dot region
  • Fig. 13 is a block diagram showing the arrangement of . a character/line drawing determination section
  • Figs. 14A to 14C are views for explaining the processing of an edge emphasizer
  • Figs. 15A to 15F are views for explaining respective determinations of the character/line drawing determination section
  • Fig. 16 shows a table configuration of an LUT
  • Fig. 17 is a block diagram showing the arrangement of the dot determination section; — o ⁇ —
  • Figs. 18A to 18C are views for explaining processing of the edge emphasizer;
  • Figs. 19A and 19B are views for explaining matching patterns used in isolation amount determination;
  • Figs. 2OA to 2OD are views for explaining isolation amount determination
  • FIGS. 21A to 21C are views for explaining processing of an OR processor
  • Fig. 22 is a diagram for explaining the process for generating a dot signal by an integration processor, a threshold determiner, and the dot determiner;
  • Fig. 23 is a view for explaining the processing of the integration processor;
  • Fig. 24 is a diagram for explaining the processing of the dot determiner
  • Fig. 25 is a view for explaining the processing of the integration processor when a low-density halftone dot region includes a character edge;
  • Fig. 26 is a view for explaining the processing of the integration processor when an interest pixel is located outside a low-density halftone dot region;
  • Fig. 27 is a block diagram showing the arrangement of a dot determiner according to the second embodiment.
  • Figs. 28A to 28D are views for explaining isolation amount calculations of the second embodiment.
  • Fig. 1 is a block diagram for explaining the arrangement of image processing according to this embodiment .
  • a scanner 101 scans an image of an original placed on an original platen glass.
  • the scanner 101 digitally scans an original image for respective pixels using a 3-line CCD, and outputs its RGB color image signal.
  • An input image processor 102 applies known image processing such as shading correction, CCD inter-line correction, color correction, and the like to the color image signal output from. the scanner 101.
  • a region segmentation unit 103 applies region segmentation processing to the color image signal which has undergone the input image processing and is output from the input image processor 102.
  • the region segmentation unit 103 detects features of images such as a photo region, text region, halftone dot region, and so forth for respective pixels of the input image, and generates flag data indicating attributes for respective image regions .
  • An input image processor 104 applies image processing for each pixel to the color image signal output from the input image processor 102 based on a text signal MOJI which is output for each pixel from the region segmentation unit 103.
  • the image data processed by the input image processor 104 is temporarily stored in an image memory 105, and the flag data output from the region segmentation unit 103 are temporarily stored in a flag memory 106.
  • the image memory 105 and flag memory 106 store data for one page of an original document or for a predetermined size (band size) of one page.
  • a data compression unit 109 compresses the data temporarily stored in the image memory 105 and flag memory 106 and stores the compressed data in a storage unit 110.
  • the storage unit 110 preferably comprises a memory such as a semiconductor memory which has a high read/write speed.
  • the data compression unit 109 compresses the image data and flag data by different data compression methods.
  • the data compression unit 109 applies lossy compression such as JPEG but high-efficiency compression that can obscure image deterioration in consideration of the human visual characteristics.
  • the data compression unit 109 uses lossless compression such as JBIG so as to prevent attribute information from being omitted or changed.
  • the storage unit 110 stores the image data and flag data, which are compressed by the different compression methods, for each page of the original image. Note that all or some of the data stored in the storage unit 110 are often read out to an auxiliary storage unit 111.
  • the auxiliary storage unit 111 preferably comprises a storage medium like a hard disk which has a slightly low read/write speed but has a large capacity. Using the auxiliary storage unit 111, a large number of pages of original images can be efficiently integrated.
  • a printer 117 When an image stored in the storage unit 110 or auxiliary storage unit 111 is to be printed by a printer 117, the image data and flag data are read out from these storage units.
  • the image data and flag data are decompressed by a data decompression unit 112, and the decompressed image data and flag data are respectively stored in an image memory 114 and flag memory 115.
  • a pixel density conversion unit 113 often converts the pixel density of the image data. For example, the pixel density is converted when an image stored in the storage unit 110 is to be printed in an enlarged or reduced scale or when stored images for a plurality of pages are to be combined and printed on a single print sheet.
  • Fig. 7 shows a state in which images for a plurality of pages are to be combined and printed.
  • Two images 501 and 502 are stored in the storage unit 110, and are combined and printed on a print sheet 503 having the same size as an original.
  • image data of the image 501 is read out from the storage unit 110 and decompressed, and is reduced to a predetermined scale by the pixel density conversion unit 113.
  • the image data is rotated counterclockwise through 90° by a rotation processor (not shown) , and is written in a predetermined area (an area 504 in Fig. 7) of the image memory 114.
  • image data of the image 502 is read out from the storage unit 110, and is written in a predetermined area (an area 505 in Fig. 7) of the image memory 114 after it has similarly undergone decompression, resolution conversion, and rotation.
  • flag data corresponding to the images 501 and 502 are also written in corresponding areas of the flag memory 115 after they have similarly undergone readout, decompression, resolution conversion, and rotation.
  • the image data and flag data preferably undergo resolution conversion based on different methods.
  • a known method such as linear interpolation, interpolation by bicubic splines, or the like is applied to the image data.
  • a resolution conversion method suited to binary data such as a nearest-neighbor algorithm or the like is desirably used for the flag data.
  • An output image processor 116 receives image data and flag data when the image data and flag data stored in the image memory 114 and flag memory 115 reach predetermined stored data sizes, as will be described in detail later.
  • the output image processor 116 performs known image processing required to convert RGB image data input from the image memory 114 into a print image signal, i.e., RGB to CMYK conversion, gamma correction, binarization processing, and the like, and outputs a processed CMYK image signal.
  • the printer 117 forms and outputs a visible image on a print sheet by driving a laser beam or ink-jet head based on the CMYK image signal output from the output image processor 116. Note that the flag data stored in the flag memory 115 are used to switch the processing contents of the output image processor 116.
  • a communication interface (I/F) 118 receives a print job from an external communication path 119 such as a local area network (LAN) or the like.
  • Representative image data to be appended to the print job includes data of a language such as a page description language which describes an image to be rendered for each page or for each band. Such data will be referred to as PDL data hereinafter.
  • An interpreter 108 converts the PDL data received by the communication I/F 118 into an intermediate language format called a display list.
  • a raster image processor (RIP) 107 performs rendering based on the display list to form bitmap data on the image memory 105. Also, the RIP 107 stores flag data indicating the attributes of the rendered bitmap data in the flag memory 106.
  • the region segmentation processing extracts features of an image and generates signals (flag data) indicating region attributes so as to apply optimal image processing suited to the features of the image.
  • An original image includes various image • regions such as a full-color photo region with continuous tone, a black text region, a halftone dot region represented by printing on a newspaper or the like, and so forth together. When identical image processing is applied to these regions with different features, preferred image quality cannot often be obtained as the processing result.
  • FIG. 2 is a block diagram showing the arrangement for detecting pixels with a text attribute of the region segmentation unit 103.
  • An input signal (color image signal) 201 is input to an average density arithmetic unit 202 and edge emphasis processor 203.
  • the average density arithmetic unit 202 outputs an average value AVE of an area of M x N pixels (M and N are natural numbers) including an interest pixel as the center.
  • the edge emphasis processor 203 applies edge emphasis processing to the interest pixel with reference to a surrounding area (e.g., an M x N pixel area) of the interest pixel to output two types of edge emphasis signals EDGl and EDG2 having different magnitudes. These signals are input to a dot determination unit 204 and edge determination unit 205.
  • Fig. 3 is a block diagram showing the arrangement of the dot determination unit 204 which receives the average value AVE and edge emphasis signal EDGl.
  • a binarization processor 401 generates a binary signal based on a comparison result between the average value AVE and the product obtained by multiplying the edge emphasis signal EDGl by a given coefficient A (real number) as follows:
  • Binary signals obtained for respective pixels by the binarization processor 401 are input to a 1 x 1 isolation amount calculator 411, 2 x 2 isolation amount calculator 412, 3 x 3 isolation amount calculator 413, and 4 x 4 isolation amount calculator 414.
  • the isolation amount calculators 411 to 414 determine the degree of isolation of the interest pixel using the binarization processing result.
  • the 1 x 1 isolation amount calculator 411 calculates an isolation amount with reference to binary signals of a 3 x 3 pixel area having the interest pixel as the central position.
  • the isolation amount has a feature in that it becomes relatively large for a case in which a dot is formed by one pixel, i.e., for a dot pixel in a low-density area or a dot with a high LPI (lines per inch) .
  • the 2 x 2 isolation amount calculator 412, 3 x 3 isolation amount calculator 413, and 4 x 4 isolation amount calculator 414 output isolation amounts of the interest pixel by comparing with predetermined binary pixel patterns.
  • a 1 x 1 isolation amount adder 421 to 4 x 4 isolation amount adder 424 respectively add the isolation amounts respectively calculated by the 1 x 1 isolation amount calculator 411 to 4 x 4 isolation amount calculator 414 for a predetermined area.
  • the 1 x 1 isolation amount adder 421 adds the isolation amounts for a 9 x 9 pixel area.
  • a dot determiner 431 performs threshold processing of each of the sum values calculated by the 1 x 1 isolation amount adder 421 to 4 x 4 isolation amount adder 424.
  • Fig. 4 is a block diagram showing an example of the arrangement of the edge determination unit 205 which receives the average value AVE and edge emphasis signal EDG2.
  • a density difference determiner 301 generates a density difference signal based on a comparison result between the product obtained by multiplying the edge emphasis signal EDG2 by a given coefficient B (real number) and the average value AVE as follows.
  • the density difference determiner 301 outputs a density difference signal according to the difference between the value of the edge emphasis signal EDG2 and the values of its surrounding area (average value AVE) .
  • An isolation determiner 302 receives the density difference signal and removes an isolated point. For example, when there are no density difference signals with a value 1 I 1 at boundary pixel positions with reference to the density difference signals in a 7 x 7 pixel area, the isolation determiner 302 forcibly sets the values of the density difference signals in an inner 5 x 5 pixel area to ' 0 ' , thus removing an isolated point. Note that the density difference signal after isolated point removal output from the isolation determiner 302 is called an "isolation determination signal" .
  • Fig. 5 is a block diagram showing the arrangement for detecting pixels with a color attribute of the region segmentation unit 103.
  • An input signal (color image signal) 201 is input to a color space converter 802, and are converted into, e.g., an Lab signal.
  • a color determiner 804 receives the Lab signal and outputs a color determination signal COL.
  • Whether or not a given pixel of image data is a color pixel can be easily determined by mapping the chromaticity levels of pixels on a color space. This determination processing will be described below taking an Lab color space as an example.
  • the Lab color space is the one which was proposed by Commission Internationale de l'Eclairage (CIE) in 1976 as a uniform color space. .L. represents lightness (brightness) , a. represents chromaticity from red to green, and b represents chromaticity from blue to yellow. Since the Lab color space is configured so that a change in three-dimensional color space is proportional to impression of a change in color of visual sense influenced by that change, accurate color determination can be attained.
  • chromatic or achromatic color By mapping ab values of respective pixels calculated using equations (3) on an orthogonal coordinate system, whether a given pixel is chromatic or achromatic color is determined.
  • Fig. 6 shows an a*b* plane.
  • chromatic or achromatic color with reference to, e.g., saturation
  • the intersection between a* and b* axes, i.e., the origin is a point where the color component is zero
  • saturation becomes higher with increasing distance from the origin (with increasing a* value and/or b* value) . Therefore, chromatic or achromatic color can be determined by setting a threshold indicating the distance from the origin. That is, assuming that a hatched area 903 shown in Fig.
  • Fig. 8 is a block diagram showing the arrangement of the output image processor 116.
  • RGB to CMYK converters 601 and 602 receive RGB color image data from the image memory 114 and independently convert the received data into CMYK data.
  • a selector 603 selects the output from the RGB to CMYK converter 601 or 602 for each pixel in accordance with the flag data input from the flag memory 115.
  • the RGB to CMYK converter 601 is set with conversion coefficients (or a conversion table) for a text region, and the RGB to CMYK converter 602 is set with conversion coefficients (or a conversion table) for regions other than a text region.
  • the selector 603 selects conversion coefficients that reproduce the pixel by only black toner (or black ink) .
  • the method of generating a CMYK image signal can be changed between the text region and another region such as a photo region or the like, thus improving the image quality of an output- image.
  • the output from the selector 603 is input to a processing system including a gamma corrector .604 and error diffusion processor 606, and to a processing system including a gamma corrector 605 and dither processor 607.
  • a selector 608 selects for respective pixels the output from the error diffusion processor 606 or that from the dither processor 607 in accordance with the flag data input from the flag memory 115. [0085] Therefore, the selector 608 selects the output from the error diffusion processor 606 in preference to the sharpness of an output image for the text region and graph region, and selects that from the dither processor 607 with the emphasis on the tone characteristic for the photo region and halftone dot region, thus improving the image quality of the output image . [0086] [Forgery Determination Processor]
  • the forgery determination processor 120 receives a scanned image from the input image processor 102 or bitmap data from the RIP 107 as an RGB image signal used in determination.
  • a binarizer 701 binarizes an input RGB image signal into a binary signal using a threshold stored in a memory 702. Note that the binarization threshold value is variable.
  • a feature extractor 703 extracts a portion similar to feature information stored in a memory 704 from the binary image.
  • the memory 704 stores a shape, colors, or a specific mark which represent features of a specific original, a feature intentionally embedded in an original image, and so forth.
  • a pattern matching section 705 informs a controller 707 of that result.
  • the controller 707 blocks copying or printing of the specific original by, e.g., deleting the scanned image or received image stored in the image memory 105 or painting the pattern-matched image portion in solid black.
  • the controller 707 comprises a one-chip CPU or the like, which controls the aforementioned respective units to control the operation of the entire apparatus.
  • An example of the forgery determination processing to be executed in a copying machine or the like has been explained.
  • the present invention is not limited to such specific processing.
  • the aforementioned image processing system extracts features of an image using the region segmentation processing, and applies optimal image processing according to image regions included in the image. For example, the system extracts a photo region and text region in the image, applies image processing for photo that places greater emphasis on color tone or tone balance to the photo region, and applies image processing for text that places greater emphasis on the sharpness to the text region, thus improving the image quality of an output image. Also, the system detects color components of the image, and prints achromatic characters and the like in black, thus improving the image quality.
  • Figs. 1OA and 1OB are views for explaining detection.
  • Fig. 1OA shows an example of a normal halftone dot region
  • Fig. 1OB shows an example of a halftone dot region including a character edge.
  • each cell indicates one pixel.
  • an isolation amount is expressed by 1 bit: the isolation amount of each black pixel shown in Figs. 1OA and 1OB is '1', and that of each white pixel therein is ' 0 ' .
  • isolation pixels within the area 2402 are more than 5% (five pixels or more) , it is specified that an interest pixel falls within a halftone dot region; if the isolation pixels are equal to or smaller than 5% (4 pixels or less) , it is specified that the isolation pixel does not fall within a halftone dot region.
  • the sum of the isolation amounts within the 9 x 9 pixel area 2402 having an interest pixel 2401 as the center is 12 (pixels) , and it is determined based on the above specification that the interest pixel falls within the halftone dot region.
  • a threshold for dot determination is set in a direction to make it easy to extract dots;
  • the latitude of detection is broadened by expanding an area in which the isolation amounts are integrated; and so forth.
  • the detection precision of a halftone dot region can improve, but detection errors of an area, which is not a halftone dot region, as a halftone dot region increase.
  • a surrounding portion of a halftone dot region which should not be determined as a halftone dot region may be unwantedly determined as a halftone dot region.
  • Figs. HA and HB are views for explaining problems posed when an area in which the isolation amounts are integrated is expanded.
  • Fig. HA shows a state before the area expansion
  • Fig. HB shows a state after the area expansion.
  • Fig. 12 is a block diagram showing the arrangement of the region segmentation unit 103 which improves the detection precision of a halftone dot region.
  • An input signal 201 is input to a dot determination section 1002 which makes dot determination, and a character/line drawing determination section 1003 which makes character/line drawing determination.
  • a bit combining section 1004 generates and outputs an attribute flag obtained by combining the determination results of these units into one signal. Based on this attribute flag, optimal image processing can be applied to image regions included in an image.
  • Fig. 13 is a block diagram showing the arrangement of the character/line drawing determiner 1003.
  • the input signal 201 is input to an edge emphasizer 1102 which performs edge emphasis processing.
  • the edge emphasizer 1102 executes digital filter processing for emphasizing and extracting desired frequency components of image data.
  • a secondary differential filter such as a Laplacian filter or the like may be used.
  • An edge emphasis signal output from the edge emphasizer 1102 is input to threshold determiners 1103 and 1104. Since the signal which has undergone the secondary differential filter processing by the edge emphasizer 1102 has a positive or negative signal value, a positive threshold value is set in the threshold determiner 1103, and a negative threshold value is set in the threshold determiner 1104.
  • a change in signal value of an input signal 201 which is obtained by scanning an edge part of a black character 1502 on a white background 1503 shown in Fig. 14A along an arrow 1510, is as shown in Fig. 14B. That is, a part in front of an edge boundary 1501 (interior of the character 1502) is dark and assumes a low signal value. However, when the edge boundary 1501 is exceeded, the background 1503 is bright, and the signal value rises abruptly.
  • the input signal 201 which exhibits such change undergoes secondary differential filter processing, its signal value assumes a positive value before the edge boundary 1501, and assumes a negative value after the edge boundary 1501, as shown in Fig. 14C.
  • Figs. 14A to 14C show a scan in only one direction. However, in practice, at least a scan in a direction perpendicular to that shown in Figs. 14A to 14C is also made, and the OR of the edge detection results in at least the two directions is adopted as an edge signal.
  • the inner edge signal output from the threshold determiner 1103 is input to an area integrator 1105.
  • the outer edge signal output from the threshold determiner 1104 is input to an area integrator 1106.
  • Figs. 15A to 15F are views for explaining respective determinations in the character/line drawing determination section 1003.
  • Fig. 15A shows the input signal 201, i.e., a state wherein a black character edge exists on a white background.
  • an inner edge signal undergoes area-integration (counting) within a 3 x 3 pixel area, and the count. value is determined by the threshold determiner 1107, a determination signal shown in Fig. 15C is obtained. That is, the inner edge signal is expanded (to be referred to as an "inner edge expansion signal" hereinafter) .
  • an outer edge signal shown in Fig. 15D is obtained.
  • an outer edge signal undergoes area-integration (counting) within a 3 x 3 pixel area, and the count value is determined by the threshold determiner 1108, a determination signal shown in Fig. 15E is obtained. That is, the an outer edge signal is expanded (to be referred to as an "outer edge expansion signal" hereinafter) .
  • a lookup table (LUT) 1109 receives the determination signals from the threshold determination units 1103, 1107, and 1108, and outputs a text signal according to the following logics:
  • Fig. 16 shows the table configuration of the LUT 1109 which corresponds to the above logics.
  • the LUT 1109 outputs a text signal, as shown in Fig. 15F according to the results of inner edge determination, area integration determination of inner edge determination, and area integration determination of outer edge determination.
  • Fig. 17 is a block diagram showing the arrangement of the dot determination section 1002.
  • An input signal 201 is input to an edge emphasizer 1202 which performs the same edge emphasis processing as that in the edge emphasizer 1102.
  • An edge emphasis signal output from the edge emphasizer 1202 is input to threshold determiners 1203 and 1204. Since the signal which has undergone the secondary differential filter processing by the edge emphasizer 1202 has a positive or negative signal value, a positive threshold value is set in the threshold determiner 1203, and a negative threshold value is set in the threshold determiner 1204.
  • a change in signal value of an input signal 201 which is obtained by scanning an edge part of a dot 1602 on a white background 1603 shown in Fig. 18A along an arrow 1610, is as shown in Fig. 18B. That is, a part in front of an edge boundary 1601 (interior of the dot 1602) is dark and assumes a low signal value. However, when the edge boundary 1601 is exceeded, the background 1603 is bright, . and the signal value rises abruptly. When the input signal 201 which exhibits such change undergoes secondary differential . filter processing, its signal value assumes a positive value before the edge boundary 1601, and assumes a negative value after the edge boundary 1601, as shown in Fig. 18C.
  • the inner edge signal output from the threshold determiner 1203 is input to an isolation amount determiner 1205.
  • the outer edge signal output from the threshold determiner 1204 is input to an isolation amount determiner 1206.
  • the isolation amount determiner 1205 performs pattern matching for the inner edge signal to detect a dot.
  • dot images such as one having a low LPI to one having a high LPI, and the dot size and interval vary depending on images.
  • pattern matching is done using a plurality of patterns. For a dot image with a low LPI, pattern matching is performed using a large pattern to detect a dot. Also, for a dot image with a high LPI, pattern matching is performed using a small pattern to detect a dot. Since the shape of a dot changes depending on densities, a determination level is adjustable to cope with it.
  • Figs. 19A and 19B are views for explaining pattern matching for isolation amount detection, and show an example of pattern matching in a 4 x 4 pixel area.
  • Fig. 19B shows an example of pattern matching of 4 x 4 pixels.
  • four hatched pixels 1714 are pixels which may have either values. Based on this pattern, the matching levels of the black pixels 1712 and white pixels 1713 are set to be adjustable to adjust the determination level.
  • Figs. 2OA to 2OD are views for explaining isolation amount determination, and show examples of the determination results of the inner edge signals and the interest pixel 1701 in the 4 x 4 pixel area.
  • an isolation amount determination signal of the interest pixel 1701 assumes 'I 1 under the following conditions.
  • isolation amount determination signal 1 O' of the interest pixel 1701 is determined, as shown in Fig. 2OD.
  • the number of pixels that match the pattern is the matching level, and the determination level is adjusted by adjusting this level.
  • the isolation amount determiner 1205 performs such pattern matching using a plurality of patterns. Also, the isolation amount determiner 1206 that performs isolation amount determination of outer edge signals performs the same pattern matching as the isolation amount determiner 1205. In this case, the matching patterns and determination levels can be arbitrarily adjusted and set.
  • OR processors 1207 and 108 receive both the isolation amount determination signals output from the isolation amount determiners 1205 and 1206.
  • Figs. 21A to 21C are views for explaining the processing of the OR processors 1207 and 1208.
  • Fig. 21A shows a case wherein only the isolation amount determination signal of the interest pixel in the 3 x 3 pixel area is '1', and a signal (to be referred to as "OR signal” hereinafter) of the interest pixel after the OR processing becomes '1'.
  • Fig. 21A shows a case wherein only the isolation amount determination signal of the interest pixel in the 3 x 3 pixel area is '1', and a signal (to be referred to as "OR signal” hereinafter) of the interest pixel after the OR processing becomes '1'.
  • Fig. 21B shows a case wherein
  • 21C shows a case wherein only the isolation amount determination signal of the interest pixel is ' 0 ' , and those of other pixels are 'I 1 . Hence, an OR signal of the interest pixel after the OR processing becomes '1'.
  • the OR signals output from the OR processors 1207 and 1208 become dot signals 1 and 2 via integration processors 1209 and 1210, threshold determiners 1211 and 1212, and dot determiners 1213 and 1214.
  • Fig. 22 is a diagram showing the process for generating dot signal 1 or 2 by the integration processor 1209 (or 1210), threshold determiner 1211 (or 1212), and dot determiner 1213 (or 1214).
  • OR signals are integrated within three integration areas. However,- the present invention is not limited to the three integration areas .
  • the integration results are determined as follows: the 9 x 9 pixel area 2102 is a halftone dot region since 12 pixels > 5 pixels; the 15 x 15 pixel area 2103 is a halftone dot region since 40 pixels > 12 pixels; and the 21 x 21 pixel area 2104 is a halftone dot region since 76 pixels > 23 pixels.
  • Fig. 24 is a diagram for explaining the processing of the dot determiner 2031.
  • the dot determiner 2031 determines based on the determination results of respective integration areas if the interest pixel 2101 falls within a halftone dot region. Initially, the determination results of respective integration areas are paired.
  • Fig. 25 is a view for explaining the processing of the integration processors 2011 to 2013 when a low- density halftone dot region includes a character edge.
  • OR signals having the interest pixel 2101 as the center in the state shown in Fig. 25 are integrated in the respective integration areas 2102 to 2104 in the same manner as in the description of Fig. 23, the integration results are as follows: 4 pixels in the 9 x 9 pixel area 2102;
  • the determination results of the threshold determiners are as follows: the 9 x 9 pixel area 2102 is a non-halftone dot region since 4 pixels ⁇ 5 pixels; the 15 x 15 pixel area 2103 is a halftone dot region since 32 pixels > 12 pixels; and the 21 x 21 pixel area 2104 is a halftone dot region since 60 pixels > 23 pixels. [0147]
  • the dot determiner 2031 performs logical operations shown in Fig. 24, and the AND result of the pair of the 9 x 9 pixel area 2102 and 15 x 15 pixel area 2103 yields '0'.
  • the determination result of one integration area (9 x 9 pixel area 2102 in this case) indicates a non-halftone dot region.
  • a halftone dot region including a character or line drawing may be determined as a non-halftone dot region depending on the size and threshold of the integration area.
  • Fig. 26 is a view for explaining the processing of the integration processors 2011 to 2013 when the interest pixel 2101 is located outside a low-density halftone dot region.
  • the dot determiner 2031 performs logical operations shown in Fig. 24, and the AND. result of the pair of the 9 x 9 pixel area 2102 and 15 x 15 pixel area 2103 yields '0'.
  • image region attributes are determined as follows.
  • Image processes masking, UCR, edge emphasis or smoothing, color reproduction method, image formation method, and the like
  • *1 a character within a halftone dot region.
  • the isolation amounts are integrated in a plurality of integration areas, and first dot determination is done using different thresholds for these integration areas. Furthermore, a plurality of first dot determination results undergo logical operations to execute second dot determination. In this way, a halftone dot region which includes a character, line drawing, or an image of dust or contamination can be correctly detected as a halftone dot region. In addition, when the integration area is expanded, ballooning of dot signals which occurs at the boundary of a halftone dot region which contacts a white background can be prevented.
  • the first embodiment has exemplified a case wherein the isolation amount assumes a binary value (1 bit) .
  • the second embodiment will explain a case wherein the isolation amount assumes a multi-value
  • Fig. 27 is a block diagram showing the arrangement of a dot determination section 1002 of the second embodiment.
  • the dot determination section 1002 of the second embodiment has the same basic arrangement as that in the first embodiment, but it comprises isolation amount determiners 2605 and 2606 which output multi-valued isolation amounts, and addition processors 2607 and
  • the isolation amount determiner 2605 performs pattern matching for inner edge signals using a plurality of patterns and detects a dot.
  • Figs. 28A to 28D are views for explaining isolation amount calculations of the second embodiment, and show the relationship between inner edge signals in a 4 x 4 pixel area and the isolation amount of an interest pixel 1701.
  • the isolation amount of the second embodiment is obtained as a difference between the number of pixels which should be '1', and the number of pixels which should be 1 O'.
  • the isolation amount determiner 2605 performs such pattern matching using a plurality of patterns. Also, the isolation amount determiner 2606 that performs isolation determination of outer edge signals performs the same pattern matching as the isolation amount determiner 2605. In this case, the matching patterns can be arbitrarily adjusted and set. [0171]
  • the addition processors 2607 and 2608 receive and add both the isolation amounts output from the isolation amount determiners 2605 and 2606. In this case, the two addition processors add the isolation amounts of identical patterns. Each addition processor uses a pattern which is not a pattern to be added of the other addition processor as a pattern to be added.
  • the addition processor 2607 handles a pattern used to detect a coarse halftone dot region (with a low LPI)
  • the addition processor 2608 handles a pattern used to detect a fine halftone dot region (with a high LPI) .
  • the second embodiment uses the matching level for a given matching pattern as a criterion for calculating the multi-valued isolation amount.
  • the extraction performance of a halftone dot region including a character or line drawing can be improved without increasing any determination errors. Also, ballooning of extraction results at the boundary of a halftone dot region that contacts a white background can be prevented. Therefore, image processing adapted for attributes of image regions obtained by suited region segmentation can be executed, thus improving image quality.
  • the present invention can be applied to an apparatus comprising a single device or to system constituted by a plurality of devices.
  • the invention can be implemented by supplying a software program, which implements the functions of the foregoing embodiments, directly or indirectly to a system or apparatus, reading the supplied program code with a computer of the system or apparatus, and then executing the program code. In this case, so long as the system or apparatus has the functions of the program, the mode of implementation need not rely upon a program.
  • the program code installed in the computer also implements the present invention.
  • the claims of the present invention also cover a computer program for the purpose of implementing the functions of the present invention.
  • the program may be executed in any form, such as an object code, a program executed by an interpreter, or scrip data supplied to an operating system.
  • Example of storage media that can be used for supplying the program are a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a CD-RW, a magnetic tape, a non-volatile type memory card-, a ROM, and a DVD (DVD-ROM and a DVD-R) .
  • a client computer can be connected to a we.bsite on the Internet using a browser of the client computer, and the computer program of the present invention or an automatically-installable compressed file of the program can be downloaded to a recording medium such as a hard disk.
  • the program of the present invention can be supplied by dividing the program code constituting the program into a plurality of files and downloading the files from different websites.
  • a WWW World Wide Web
  • a WWW server that downloads, to multiple users, the program files that implement the functions of the present invention by computer is also covered by the claims of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

When a halftone dot region includes a character or line drawing, high extraction performance of a halftone dot region cannot be obtained. Hence, the isolation amount of an interest pixel is calculated, and the isolation amounts are integrated in a plurality of areas having different sizes. Thresholds set for respective areas are compared with the integration result to determine whether or not the interest pixel belongs to a halftone dot region.

Description

DESCRIPTION IMAGE PROCESSING APPARATUS AND METHOD THEREOF
TECHNICAL FIELD
[0001] The present invention relates to image processing for extracting an image region from an image including different types of image regions.
BACKGROUND ART
[0002] As a method of applying optimal image processing according to features of an image, a method of extracting a character edge using a differential filter or the like to segment an image region into a text region and other regions, and then applying adaptive processing is known. Also, a method of extracting a halftone dot region by defining a dot as- an isolation amount and integrating isolation amounts within a predetermined area, so as to segment an image region into a text region and the halftone dot region, and then applying adaptive processing is known (for example, see Japanese Patent Laid-Open No. 11-85978) . [0003] The aforementioned region extraction technique exhibits high extraction performance for a halftone dot region that expresses a character, photo, or the like in a white background. However, the extraction performance of a halftone dot region when a character, line drawing, or the like is present within the halftone dot region is not so high. Especially, it is very difficult to extract a low-density halftone dot region including a character or line drawing. [0004] Extraction errors increase if processing is changed in a direction to make it easy to extract dots in order to improve the extraction performance of a halftone dot region. Also, a method of avoiding the influence of a character or line drawing by enlarging an area in which isolation amounts are integrated may be used. However, at the boundary of a halftone dot region that contacts a white background, the extraction result of the halftone dot region unwantedly enlarges (the extraction result balloons) .
DISCLOSURE OF INVENTION
[0005] One aspect of the present invention discloses a method of extracting image regions from an image including different types of image regions, comprising the steps of: calculating an isolation amount of an interest pixel; integrating the isolation amounts in a plurality of areas having different sizes; and determining whether or not the interest pixel belongs to a halftone dot region by comparing thresholds set for the respective plurality of areas and the integration result. [0006]' According to the present invention, a halftone dot region including a character, line drawing, or the like can be correctly detected. Also, ballooning of the extraction result which occurs at the boundary of a halftone dot region can be prevented. [0007] Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
BRIEF DESCRIPTION OF DRAWINGS
[0008] Fig. 1 is a block diagram for explaining the arrangement of image processing according to an embodiment of the present invention;
[0009] Fig. 2 is a block diagram showing the arrangement for detecting pixels with a text attribute of a region segmentation unit;
[0010] Fig. 3 is a block diagram showing the arrangement of a dot determination unit which receives an average value AVE and edge emphasis signal EDGl;
[0011] Fig. 4 is a block diagram showing the arrangement of an edge determination unit which receives an average value AVE and edge emphasis signal EDG2 ;
[0012] Fig. 5 is a block diagram showing the arrangement for detecting pixels of a color attribute of the region segmentation unit; [0013] Fig. 6 shows an a*b* plane;
[0014] Fig. 7 shows a state wherein images for a plurality of pages are combined and printed;
[0015] Fig. 8 is a block diagram showing the arrangement of an output image processor;
[0016] Fig. 9 is a block diagram showing the arrangement of a forgery determination processor;
[0017] Figs. 1OA and 1OB are views for explaining detection of a halftone dot region;
[0018] Figs. HA and HB are views for explaining a problem posed when an area for integrating isolation amounts is enlarged;
[0019] Fig. 12 is a block diagram showing the arrangement of the region segmentation unit which has improved detection precision of a halftone dot region;
[0020] Fig. 13 is a block diagram showing the arrangement of .a character/line drawing determination section;
[0021] Figs. 14A to 14C are views for explaining the processing of an edge emphasizer;
[0022] Figs. 15A to 15F are views for explaining respective determinations of the character/line drawing determination section;
[0023] Fig. 16 shows a table configuration of an LUT;
[0024] Fig. 17 is a block diagram showing the arrangement of the dot determination section; — o
[0025] Figs. 18A to 18C are views for explaining processing of the edge emphasizer; [0026] Figs. 19A and 19B are views for explaining matching patterns used in isolation amount determination;
[0027] Figs. 2OA to 2OD are views for explaining isolation amount determination;
[0028] Figs. 21A to 21C are views for explaining processing of an OR processor;
[0029] Fig. 22 is a diagram for explaining the process for generating a dot signal by an integration processor, a threshold determiner, and the dot determiner; [0030] Fig. 23 is a view for explaining the processing of the integration processor;
[0031] Fig. 24 is a diagram for explaining the processing of the dot determiner;
[0032] Fig. 25 is a view for explaining the processing of the integration processor when a low-density halftone dot region includes a character edge; [0033] Fig. 26 is a view for explaining the processing of the integration processor when an interest pixel is located outside a low-density halftone dot region; [0034] Fig. 27 is a block diagram showing the arrangement of a dot determiner according to the second embodiment; and
[0035] Figs. 28A to 28D are views for explaining isolation amount calculations of the second embodiment. BEST MODE FOR CARRYING OUT THE INVENTION
[0036] Image processing according to an embodiment of the present invention will be described in detail hereinafter with reference to the accompanying drawings,
[0037] First Embodiment
[Arrangement of Processing]
Fig. 1 is a block diagram for explaining the arrangement of image processing according to this embodiment .
[0038] "Processing of Scanned Image
A scanner 101 scans an image of an original placed on an original platen glass. The scanner 101 digitally scans an original image for respective pixels using a 3-line CCD, and outputs its RGB color image signal. An input image processor 102 applies known image processing such as shading correction, CCD inter-line correction, color correction, and the like to the color image signal output from. the scanner 101.
[0039] A region segmentation unit 103 applies region segmentation processing to the color image signal which has undergone the input image processing and is output from the input image processor 102. The region segmentation unit 103 detects features of images such as a photo region, text region, halftone dot region, and so forth for respective pixels of the input image, and generates flag data indicating attributes for respective image regions .
• [0040] An input image processor 104 applies image processing for each pixel to the color image signal output from the input image processor 102 based on a text signal MOJI which is output for each pixel from the region segmentation unit 103. The input image processor 104 applies the following processing for each pixel: processing for emphasizing the sharpness of a character by emphasizing high-frequency components of a text region (MOJI = ' 1 ' ) /■ and processing for removing moire components unique to a digital image by applying so-called low-pass filter processing to a halftone dot region (MOJI = 1O1 )•
[0041] The image data processed by the input image processor 104 is temporarily stored in an image memory 105, and the flag data output from the region segmentation unit 103 are temporarily stored in a flag memory 106. The image memory 105 and flag memory 106 store data for one page of an original document or for a predetermined size (band size) of one page. [0042] A data compression unit 109 compresses the data temporarily stored in the image memory 105 and flag memory 106 and stores the compressed data in a storage unit 110. The storage unit 110 preferably comprises a memory such as a semiconductor memory which has a high read/write speed. The data compression unit 109 compresses the image data and flag data by different data compression methods. To the image data, the data compression unit 109 applies lossy compression such as JPEG but high-efficiency compression that can obscure image deterioration in consideration of the human visual characteristics. On the other hand, to the flag data, the data compression unit 109 uses lossless compression such as JBIG so as to prevent attribute information from being omitted or changed. [0043] In this manner, the storage unit 110 stores the image data and flag data, which are compressed by the different compression methods, for each page of the original image. Note that all or some of the data stored in the storage unit 110 are often read out to an auxiliary storage unit 111. The auxiliary storage unit 111 preferably comprises a storage medium like a hard disk which has a slightly low read/write speed but has a large capacity. Using the auxiliary storage unit 111, a large number of pages of original images can be efficiently integrated.
[0044] When an image stored in the storage unit 110 or auxiliary storage unit 111 is to be printed by a printer 117, the image data and flag data are read out from these storage units. The image data and flag data are decompressed by a data decompression unit 112, and the decompressed image data and flag data are respectively stored in an image memory 114 and flag memory 115. At this time, a pixel density conversion unit 113 often converts the pixel density of the image data. For example, the pixel density is converted when an image stored in the storage unit 110 is to be printed in an enlarged or reduced scale or when stored images for a plurality of pages are to be combined and printed on a single print sheet.
[0045] Fig. 7 shows a state in which images for a plurality of pages are to be combined and printed. Two images 501 and 502 are stored in the storage unit 110, and are combined and printed on a print sheet 503 having the same size as an original. For this purpose, image data of the image 501 is read out from the storage unit 110 and decompressed, and is reduced to a predetermined scale by the pixel density conversion unit 113. Furthermore, the image data is rotated counterclockwise through 90° by a rotation processor (not shown) , and is written in a predetermined area (an area 504 in Fig. 7) of the image memory 114. Next, image data of the image 502 is read out from the storage unit 110, and is written in a predetermined area (an area 505 in Fig. 7) of the image memory 114 after it has similarly undergone decompression, resolution conversion, and rotation. [0046] In this case, flag data corresponding to the images 501 and 502 are also written in corresponding areas of the flag memory 115 after they have similarly undergone readout, decompression, resolution conversion, and rotation.
[0047] Note that the image data and flag data preferably undergo resolution conversion based on different methods. For example, a known method such as linear interpolation, interpolation by bicubic splines, or the like is applied to the image data. Also, a resolution conversion method suited to binary data such as a nearest-neighbor algorithm or the like is desirably used for the flag data.
[0048] An output image processor 116 receives image data and flag data when the image data and flag data stored in the image memory 114 and flag memory 115 reach predetermined stored data sizes, as will be described in detail later. The output image processor 116 performs known image processing required to convert RGB image data input from the image memory 114 into a print image signal, i.e., RGB to CMYK conversion, gamma correction, binarization processing, and the like, and outputs a processed CMYK image signal. [0049] The printer 117 forms and outputs a visible image on a print sheet by driving a laser beam or ink-jet head based on the CMYK image signal output from the output image processor 116. Note that the flag data stored in the flag memory 115 are used to switch the processing contents of the output image processor 116. [0050]*Processing of Received Image
A communication interface (I/F) 118 receives a print job from an external communication path 119 such as a local area network (LAN) or the like. Representative image data to be appended to the print job includes data of a language such as a page description language which describes an image to be rendered for each page or for each band. Such data will be referred to as PDL data hereinafter. [0051] An interpreter 108 converts the PDL data received by the communication I/F 118 into an intermediate language format called a display list. [0052] A raster image processor (RIP) 107 performs rendering based on the display list to form bitmap data on the image memory 105. Also, the RIP 107 stores flag data indicating the attributes of the rendered bitmap data in the flag memory 106. The RIP 107 generates flag data for respective pixels of the rendered bitmap data with reference to attribute' information (information used to identify the attributes of components such as photo, text, graphics, and the like) held in the PDL data for respective print units (components) . That is, upon reception of PDL data indicating generation of a text component, the RIP 107 generates text bitmap data, and stores MOJI = '1' in the flag memory 106 as flag data of a region (text region) corresponding to a text image. Note that the RIP 107 stores MOJI = 1O1 in the flag memory 106 for regions other than the text region.
[0053] The subsequent processing is the same as that for the scanned image, and a description thereof will be omitted.
[0054] [Region Segmentation Unit]
The concept and example of region segmentation processing will be described below. Note that an example of a region attribute extraction method will be described below, but the region segmentation processing is not limited to the following method. [0055] The region segmentation processing extracts features of an image and generates signals (flag data) indicating region attributes so as to apply optimal image processing suited to the features of the image. An original image includes various image • regions such as a full-color photo region with continuous tone, a black text region, a halftone dot region represented by printing on a newspaper or the like, and so forth together. When identical image processing is applied to these regions with different features, preferred image quality cannot often be obtained as the processing result.
[0056] Hence, the attributes of image data included in an original image are detected using a color image signal output from the input image processor 102 to generate flag data used to identify these attributes. [0057] Fig. 2 is a block diagram showing the arrangement for detecting pixels with a text attribute of the region segmentation unit 103. [0058] An input signal (color image signal) 201 is input to an average density arithmetic unit 202 and edge emphasis processor 203. The average density arithmetic unit 202 outputs an average value AVE of an area of M x N pixels (M and N are natural numbers) including an interest pixel as the center. On the other hand, the edge emphasis processor 203 applies edge emphasis processing to the interest pixel with reference to a surrounding area (e.g., an M x N pixel area) of the interest pixel to output two types of edge emphasis signals EDGl and EDG2 having different magnitudes. These signals are input to a dot determination unit 204 and edge determination unit 205. [0059] Fig. 3 is a block diagram showing the arrangement of the dot determination unit 204 which receives the average value AVE and edge emphasis signal EDGl.
[0060] A binarization processor 401 generates a binary signal based on a comparison result between the average value AVE and the product obtained by multiplying the edge emphasis signal EDGl by a given coefficient A (real number) as follows:
If A x EDGl < AVE, binary signal = 1I'
If A x EDGl > AVE, binary signal = 1O1 ...(D Binary signals obtained for respective pixels by the binarization processor 401 are input to a 1 x 1 isolation amount calculator 411, 2 x 2 isolation amount calculator 412, 3 x 3 isolation amount calculator 413, and 4 x 4 isolation amount calculator 414. The isolation amount calculators 411 to 414 determine the degree of isolation of the interest pixel using the binarization processing result. [0061] For example, the 1 x 1 isolation amount calculator 411 calculates an isolation amount with reference to binary signals of a 3 x 3 pixel area having the interest pixel as the central position. When the values of the binary signals change like 1O', '1', and '0' in the vertical, horizontal, or oblique direction, the calculator 411 sets the isolation amount in that direction to '1'. Then, the calculator 411 outputs a total of the isolation amounts in four directions, i.e., vertical and horizontal directions (one each direction) and oblique directions (two directions) as the isolation amount of the interest pixel. Therefore, a pixel with a high degree of isolation has an isolation amount = "4", and a pixel which is not isolated has an isolation amount = "0". Note that the isolation amount has a feature in that it becomes relatively large for a case in which a dot is formed by one pixel, i.e., for a dot pixel in a low-density area or a dot with a high LPI (lines per inch) .
[0062] Likewise, the 2 x 2 isolation amount calculator 412, 3 x 3 isolation amount calculator 413, and 4 x 4 isolation amount calculator 414 output isolation amounts of the interest pixel by comparing with predetermined binary pixel patterns. [0063] A 1 x 1 isolation amount adder 421 to 4 x 4 isolation amount adder 424 respectively add the isolation amounts respectively calculated by the 1 x 1 isolation amount calculator 411 to 4 x 4 isolation amount calculator 414 for a predetermined area. For example, the 1 x 1 isolation amount adder 421 adds the isolation amounts for a 9 x 9 pixel area. [0064] A dot determiner 431 performs threshold processing of each of the sum values calculated by the 1 x 1 isolation amount adder 421 to 4 x 4 isolation amount adder 424. The dot determiner 431 outputs a dot signal AMI via processes such as majority decision, logical operations, and the like based on the results of the threshold processing. Note that the dot determiner 431 outputs a dot signal AMI = 1I' when it determines that the interest pixel forms a halftone dot region.
[0065] Fig. 4 is a block diagram showing an example of the arrangement of the edge determination unit 205 which receives the average value AVE and edge emphasis signal EDG2.
[0066] A density difference determiner 301 generates a density difference signal based on a comparison result between the product obtained by multiplying the edge emphasis signal EDG2 by a given coefficient B (real number) and the average value AVE as follows.
[0067] If C < AVE - B x EDG2 < D, density difference signal = ' 1 '
Otherwise, density difference signal = 1O'
... (2) where C and D are real numbers or integers. [0068] That is, the density difference determiner 301 outputs a density difference signal according to the difference between the value of the edge emphasis signal EDG2 and the values of its surrounding area (average value AVE) .
[0069] An isolation determiner 302 receives the density difference signal and removes an isolated point. For example, when there are no density difference signals with a value 1I1 at boundary pixel positions with reference to the density difference signals in a 7 x 7 pixel area, the isolation determiner 302 forcibly sets the values of the density difference signals in an inner 5 x 5 pixel area to ' 0 ' , thus removing an isolated point. Note that the density difference signal after isolated point removal output from the isolation determiner 302 is called an "isolation determination signal" .
[0070] A correction processor 303 receives isolation determination signals, and outputs an edge signal EDGE obtained by correcting a discontinuous part of the isolation determination signals. For example, when the values of isolation determination signals of eight pixels including the interest pixel at the center of an area are '1' and the value of the isolation determination signal of the interest pixel is '0' with reference to the isolation determination signals in a 3 x 3 pixel area, the processor 303 corrects the value of the isolation determination signal of the interest pixel to '1'. With this processing, the processor 303 repairs a missing part where the isolation determination signals are lacking in an edge area of a line drawing or character, and generates smooth edge signals EDGE with increased continuity of the edge area of the line drawing or character. Note that the correction processor 303 outputs an edge signal EDGE = '1' for an edge area.
[0071] A character determination unit 206 shown in Fig. 2 receives the dot signal AMI output from the dot determination unit 204 and the edge signal EDGE output from the edge determination unit 205, and outputs a text signal MOJI indicating a pixel with AMI = '0' and EDGE = ' 1 ' . [0072] Fig. 5 is a block diagram showing the arrangement for detecting pixels with a color attribute of the region segmentation unit 103. [0073] An input signal (color image signal) 201 is input to a color space converter 802, and are converted into, e.g., an Lab signal. A color determiner 804 receives the Lab signal and outputs a color determination signal COL.
[0074] Whether or not a given pixel of image data is a color pixel can be easily determined by mapping the chromaticity levels of pixels on a color space. This determination processing will be described below taking an Lab color space as an example. [0075] The Lab color space is the one which was proposed by Commission Internationale de l'Eclairage (CIE) in 1976 as a uniform color space. .L. represents lightness (brightness) , a. represents chromaticity from red to green, and b represents chromaticity from blue to yellow. Since the Lab color space is configured so that a change in three-dimensional color space is proportional to impression of a change in color of visual sense influenced by that change, accurate color determination can be attained.
[0076] Equations (3) express an example of conversion from an RGB signal into an Lab signal. Normally, after XYZ tristimulus values are temporarily calculated from RGB signal values, Lab signal values are calculated from the XYZ tristimulus values. Note that the present invention is not limited to coefficients in equations (3) since they are device-dependent. [0077] X = 0.412391 x R + 0.357584 x G + 0.180481 x B
Y = 0.212639 x R + 0.715169 x G + 0.072192 x B
Z = 0.019331 x R + 0.119195 x G + 0.950532 x B
L* = 116(Y/Y0)1/3 - 16 a* = 500{ (X/X0)1/3 - (Y/YO)1/3} b* = 200{ (Y/Y0)1/3 - (Z/ZO)1/3} ...(3) where XO, YO, and ZO are tristimulus values of standard light.
[0078] By mapping ab values of respective pixels calculated using equations (3) on an orthogonal coordinate system, whether a given pixel is chromatic or achromatic color is determined. Fig. 6 shows an a*b* plane. Upon determining chromatic or achromatic color with reference to, e.g., saturation, the intersection between a* and b* axes, i.e., the origin is a point where the color component is zero, and saturation becomes higher with increasing distance from the origin (with increasing a* value and/or b* value) . Therefore, chromatic or achromatic color can be determined by setting a threshold indicating the distance from the origin. That is, assuming that a hatched area 903 shown in Fig. 6 is an achromatic color area, if the ab values of a given pixel are located at a point 904 inside the hatched area 903, it is determined that the pixel is achromatic color. On the other hand, if the ab values are located at a point 905 outside the hatched area 903, it is determined that the pixel is chromatic color.
[0079] With the above method, whether the interest pixel is chromatic or achromatic color, in other words, whether or not the interest pixel is a pixel with a color attribute can be determined.
[0080] Note that the chromaticity calculation has been explained using Lab, but the present invention is not limited to this. In order to reduce the computation volume, simple conversion formulas may be used instead. [0081] [Output Image Processor]
Fig. 8 is a block diagram showing the arrangement of the output image processor 116.
[0082] RGB to CMYK converters 601 and 602 receive RGB color image data from the image memory 114 and independently convert the received data into CMYK data. A selector 603 selects the output from the RGB to CMYK converter 601 or 602 for each pixel in accordance with the flag data input from the flag memory 115. [0083] The RGB to CMYK converter 601 is set with conversion coefficients (or a conversion table) for a text region, and the RGB to CMYK converter 602 is set with conversion coefficients (or a conversion table) for regions other than a text region. Therefore, in case of a black character pixel (a text region (MOJI = '1') and non-color pixel (COL = 'O1))/ the selector 603 selects conversion coefficients that reproduce the pixel by only black toner (or black ink) . In other words, when image data is achromatic color, a CMYK image signal to which coefficients (or a conversion table) for setting C, M, and Y = O are applied is selected. On the other hand, in case of a region other than the text region (MOJI = ' 0 ' ) , the selector 603 selects a CMYK image signal to which conversion coefficients (or conversion table) used to generate a signal, which has C, M, and Y ≠ 0 even for achromatic color (COL = 1I1)/ and to reproduce velvety black are applied. In this way, the method of generating a CMYK image signal can be changed between the text region and another region such as a photo region or the like, thus improving the image quality of an output- image. [0084] Next, the output from the selector 603 is input to a processing system including a gamma corrector .604 and error diffusion processor 606, and to a processing system including a gamma corrector 605 and dither processor 607. A selector 608 selects for respective pixels the output from the error diffusion processor 606 or that from the dither processor 607 in accordance with the flag data input from the flag memory 115. [0085] Therefore, the selector 608 selects the output from the error diffusion processor 606 in preference to the sharpness of an output image for the text region and graph region, and selects that from the dither processor 607 with the emphasis on the tone characteristic for the photo region and halftone dot region, thus improving the image quality of the output image . [0086] [Forgery Determination Processor]
A forgery determination processor 120 executes forgery determination processing required to prevent originals such as banknotes and the like whose copying is inhibited (to be referred to as "specific originals" hereinafter) from being copied. To attain this processing, there are some methods, and a representative one is pattern matching. Features such as the shape, colors, and the like of a specific original, or a feature intentionally embedded in an original image are extracted to calculate a similarity with information stored in advance, and whether or not the original of interest is a specific original is determined based on the similarity. [0087] Fig. 9 is a block diagram showing the arrangement of the forgery determination processor 120. [0088] The forgery determination processor 120 receives a scanned image from the input image processor 102 or bitmap data from the RIP 107 as an RGB image signal used in determination. A binarizer 701 binarizes an input RGB image signal into a binary signal using a threshold stored in a memory 702. Note that the binarization threshold value is variable. [0089] A feature extractor 703 extracts a portion similar to feature information stored in a memory 704 from the binary image. The memory 704 stores a shape, colors, or a specific mark which represent features of a specific original, a feature intentionally embedded in an original image, and so forth.
[0090] When an image extracted by the feature extractor 703 matches a pattern stored in a memory 706, a pattern matching section 705 informs a controller 707 of that result. Upon reception of a message indicating that the pattern is matched, the controller 707 blocks copying or printing of the specific original by, e.g., deleting the scanned image or received image stored in the image memory 105 or painting the pattern-matched image portion in solid black.
[0091] Note that the controller 707 comprises a one-chip CPU or the like, which controls the aforementioned respective units to control the operation of the entire apparatus. An example of the forgery determination processing to be executed in a copying machine or the like has been explained. However, the present invention is not limited to such specific processing. [0092] [Detection of Halftone Dot Region] The aforementioned image processing system extracts features of an image using the region segmentation processing, and applies optimal image processing according to image regions included in the image. For example, the system extracts a photo region and text region in the image, applies image processing for photo that places greater emphasis on color tone or tone balance to the photo region, and applies image processing for text that places greater emphasis on the sharpness to the text region, thus improving the image quality of an output image. Also, the system detects color components of the image, and prints achromatic characters and the like in black, thus improving the image quality.
.[0093] However, when a halftone dot region is detected using the concept of an isolation amount, the detection precision of a halftone dot region of a low-density part does not suffice. When a halftone dot region includes a character edge or images of dust or contamination, the isolation amount lowers, and the detection precision of the halftone dot region consequently drops.
[0094] Figs. 1OA and 1OB are views for explaining detection. Fig. 1OA shows an example of a normal halftone dot region, and Fig. 1OB shows an example of a halftone dot region including a character edge. In Figs. 1OA and 1OB, each cell indicates one pixel. For the sake of simplicity, an isolation amount is expressed by 1 bit: the isolation amount of each black pixel shown in Figs. 1OA and 1OB is '1', and that of each white pixel therein is ' 0 ' .
[0095] For example, assuming that isolation amounts are added within a 9 x 9 pixel area 2402, if the isolation pixels within the area 2402 are more than 5% (five pixels or more) , it is specified that an interest pixel falls within a halftone dot region; if the isolation pixels are equal to or smaller than 5% (4 pixels or less) , it is specified that the isolation pixel does not fall within a halftone dot region. [0096] In the normal halftone dot region shown in Fig. 10A, the sum of the isolation amounts within the 9 x 9 pixel area 2402 having an interest pixel 2401 as the center is 12 (pixels) , and it is determined based on the above specification that the interest pixel falls within the halftone dot region. On the other hand, when a character edge 2411 exists, as shown in Fig. 1OB, if the isolation amounts are added under the same condition, the isolation amounts decrease due to the influence of the character edge 2411. As a result, the sum is 4 (pixels) , and it is determined that the interest pixel does not fall within the halftone dot region.
[0097] In order to solve this problem, the following methods may be adopted: (1) a threshold for dot determination is set in a direction to make it easy to extract dots; (2) the latitude of detection is broadened by expanding an area in which the isolation amounts are integrated; and so forth. However, in case of (1) , the detection precision of a halftone dot region can improve, but detection errors of an area, which is not a halftone dot region, as a halftone dot region increase. In case of (2), if the reference area is expanded, a surrounding portion of a halftone dot region which should not be determined as a halftone dot region may be unwantedly determined as a halftone dot region.
[0098] Figs. HA and HB are views for explaining problems posed when an area in which the isolation amounts are integrated is expanded. Fig. HA shows a state before the area expansion, and Fig. HB shows a state after the area expansion.
[0099] Since the sum of isolation amounts in a 9 x 9 pixel area 250 before the area expansion shown in Fig. HA is zero, it is determined that an interest pixel 2502 does not fall within a halftone dot region. On the other hand, since the sum of isolation amounts in a 15 x 15 pixel area 2513 after area expansion shown in Fig. HB is 12 (pixels) , it exceeds 5% (H pixels) , and it is determined that the interest pixel falls within a halftone dot region. [0100] A detection method of a halftone dot region that can improve the detection precision of a halftone dot region even when the halftone dot region includes a character edge or images of dust or contamination, and can prevent the above negative effects will be described below. [0101] [Region Segmentation Processing]
Fig. 12 is a block diagram showing the arrangement of the region segmentation unit 103 which improves the detection precision of a halftone dot region. [0102] An input signal 201 is input to a dot determination section 1002 which makes dot determination, and a character/line drawing determination section 1003 which makes character/line drawing determination. A bit combining section 1004 generates and outputs an attribute flag obtained by combining the determination results of these units into one signal. Based on this attribute flag, optimal image processing can be applied to image regions included in an image. [0103] *Character/Line Drawing Determiner
Fig. 13 is a block diagram showing the arrangement of the character/line drawing determiner 1003. [0104] The input signal 201 is input to an edge emphasizer 1102 which performs edge emphasis processing. The edge emphasizer 1102 executes digital filter processing for emphasizing and extracting desired frequency components of image data. Note that as an example of a representative filter, a secondary differential filter such as a Laplacian filter or the like may be used.
[0105] An edge emphasis signal output from the edge emphasizer 1102 is input to threshold determiners 1103 and 1104. Since the signal which has undergone the secondary differential filter processing by the edge emphasizer 1102 has a positive or negative signal value, a positive threshold value is set in the threshold determiner 1103, and a negative threshold value is set in the threshold determiner 1104.
[0106] For example, a change in signal value of an input signal 201, which is obtained by scanning an edge part of a black character 1502 on a white background 1503 shown in Fig. 14A along an arrow 1510, is as shown in Fig. 14B. That is, a part in front of an edge boundary 1501 (interior of the character 1502) is dark and assumes a low signal value. However, when the edge boundary 1501 is exceeded, the background 1503 is bright, and the signal value rises abruptly. When the input signal 201 which exhibits such change undergoes secondary differential filter processing, its signal value assumes a positive value before the edge boundary 1501, and assumes a negative value after the edge boundary 1501, as shown in Fig. 14C. That is, the threshold determiner 1103 outputs an inner edge signal = '1' indicating the inner side of the character edge when the edge emphasis signal exceeds the positive threshold. On the other hand, the threshold determination unit 1104 outputs an outer edge signal = ' 1 ' indicating the outer side of the character edge when the edge emphasis signal becomes lower than the negative threshold.
[0107] Note that Figs. 14A to 14C show a scan in only one direction. However, in practice, at least a scan in a direction perpendicular to that shown in Figs. 14A to 14C is also made, and the OR of the edge detection results in at least the two directions is adopted as an edge signal.
[0108] The inner edge signal output from the threshold determiner 1103 is input to an area integrator 1105. The outer edge signal output from the threshold determiner 1104 is input to an area integrator 1106. Each of the area integrator 1105 and 1106 counts determination signals = 1I1 of, e.g., an interest pixel and its surrounding 3 x 3 pixel area.
[0109] Threshold determiners 1107 and 1108 respectively compare the count values output from the area integrators 1105 and 1106 with a threshold, and output determination results. For example, when "2" is set as a threshold, the threshold determiner 1107 outputs a determination signal = 1I1 when the input count value is 2 or more, i.e., when the 3 x 3 pixel area includes two or more pixels which are determined as inner edge pixels. Likewise, the threshold determiner 1108 outputs a determination signal = 'I1 when the 3 x 3 pixel area includes two or more pixels which are determined as outer edge pixels.
[0110] Figs. 15A to 15F are views for explaining respective determinations in the character/line drawing determination section 1003. Fig. 15A shows the input signal 201, i.e., a state wherein a black character edge exists on a white background.
[0111] When the threshold determiner 1103 determines a signal obtained by applying edge emphasis to the input signal 201, an inner edge signal (hatched portion = 1I') shown in Fig. 15B is obtained. When such inner edge signal undergoes area-integration (counting) within a 3 x 3 pixel area, and the count. value is determined by the threshold determiner 1107, a determination signal shown in Fig. 15C is obtained. That is, the inner edge signal is expanded (to be referred to as an "inner edge expansion signal" hereinafter) .
[0112] On the other hand, when the threshold determiner 1104 determines a signal obtained by applying edge emphasis to the input signal 201, an outer edge signal shown in Fig. 15D is obtained. When such outer edge signal undergoes area-integration (counting) within a 3 x 3 pixel area, and the count value is determined by the threshold determiner 1108, a determination signal shown in Fig. 15E is obtained. That is, the an outer edge signal is expanded (to be referred to as an "outer edge expansion signal" hereinafter) . [0113] A lookup table (LUT) 1109 receives the determination signals from the threshold determination units 1103, 1107, and 1108, and outputs a text signal according to the following logics:
If inner edge determination signal = '1', text signal = 1I'; if inner edge determination signal = '1', and inner edge expansion signal = 1I' and outer edge expansion signal = '1', text signal = 1I'; or otherwise, text signal = '0'.
[0114] Fig. 16 shows the table configuration of the LUT 1109 which corresponds to the above logics. [0115] That is, the LUT 1109 outputs a text signal, as shown in Fig. 15F according to the results of inner edge determination, area integration determination of inner edge determination, and area integration determination of outer edge determination. [0116] »Dot Determination Unit
Fig. 17 is a block diagram showing the arrangement of the dot determination section 1002. [0117] An input signal 201 is input to an edge emphasizer 1202 which performs the same edge emphasis processing as that in the edge emphasizer 1102. [0118] An edge emphasis signal output from the edge emphasizer 1202 is input to threshold determiners 1203 and 1204. Since the signal which has undergone the secondary differential filter processing by the edge emphasizer 1202 has a positive or negative signal value, a positive threshold value is set in the threshold determiner 1203, and a negative threshold value is set in the threshold determiner 1204.
[0119] For example, a change in signal value of an input signal 201, which is obtained by scanning an edge part of a dot 1602 on a white background 1603 shown in Fig. 18A along an arrow 1610, is as shown in Fig. 18B. That is, a part in front of an edge boundary 1601 (interior of the dot 1602) is dark and assumes a low signal value. However, when the edge boundary 1601 is exceeded, the background 1603 is bright, . and the signal value rises abruptly. When the input signal 201 which exhibits such change undergoes secondary differential . filter processing, its signal value assumes a positive value before the edge boundary 1601, and assumes a negative value after the edge boundary 1601, as shown in Fig. 18C. That is, the threshold determiner 1203 outputs an inner edge signal = 1I' indicating the inner side of the character edge when the edge emphasis signal exceeds the positive threshold. On the other hand, the threshold determination unit 1204 outputs an outer edge signal = 1I1 indicating the outer side of the character edge when the edge emphasis signal becomes lower than the negative threshold. [0120] Note that Figs. 18A to 18C show a scan in only one direction. However, in practice, at least a scan in a direction perpendicular to that shown in Figs. 18A to 18C is also made, and the OR of the edge detection results in at least the two directions is adopted as an edge signal.
[0121] The inner edge signal output from the threshold determiner 1203 is input to an isolation amount determiner 1205. The outer edge signal output from the threshold determiner 1204 is input to an isolation amount determiner 1206.
[0122] The isolation amount determiner 1205 performs pattern matching for the inner edge signal to detect a dot. There are various dot images such as one having a low LPI to one having a high LPI, and the dot size and interval vary depending on images. In order to detect dots of very LPIs, pattern matching is done using a plurality of patterns. For a dot image with a low LPI, pattern matching is performed using a large pattern to detect a dot. Also, for a dot image with a high LPI, pattern matching is performed using a small pattern to detect a dot. Since the shape of a dot changes depending on densities, a determination level is adjustable to cope with it. [0123] Figs. 19A and 19B are views for explaining pattern matching for isolation amount detection, and show an example of pattern matching in a 4 x 4 pixel area.
[0124] Fig. 19A shows inner edge signals in a 4 x 4 pixel area, and pixels with inner edge signals = 1I1 are four pixels (black pixels) denoted by reference numerals 1702. The remaining pixels are those with inner edge signals = '0'. Note that a pixel 1701 with a symbol * is an interest pixel.
[0125] Fig. 19B shows an example of pattern matching of 4 x 4 pixels. In Fig. 19B, four 'black pixels 1712 have inner edge signals = '1', eight white pixels 1713 have inner edge signals = '0', and four hatched pixels 1714 are pixels which may have either values. Based on this pattern, the matching levels of the black pixels 1712 and white pixels 1713 are set to be adjustable to adjust the determination level.
[0126] Figs. 2OA to 2OD are views for explaining isolation amount determination, and show examples of the determination results of the inner edge signals and the interest pixel 1701 in the 4 x 4 pixel area. [0127] As shown in Figs. 2OA to 2OC, an isolation amount determination signal of the interest pixel 1701 assumes 'I1 under the following conditions. [0128] That is, the number of pixels (those with inner edge signals = 1I') that match the four black pixels 1712 is three or more, and the number of pixels (those with inner edge signals = '0') that match the eight white pixels 1713 is six or more.
[0129] When the above conditions are not satisfied, isolation amount determination signal = 1O' of the interest pixel 1701 is determined, as shown in Fig. 2OD. [0130] The number of pixels that match the pattern is the matching level, and the determination level is adjusted by adjusting this level.
[0131] The isolation amount determiner 1205 performs such pattern matching using a plurality of patterns. Also, the isolation amount determiner 1206 that performs isolation amount determination of outer edge signals performs the same pattern matching as the isolation amount determiner 1205. In this case, the matching patterns and determination levels can be arbitrarily adjusted and set.
[0132] OR processors 1207 and 108 receive both the isolation amount determination signals output from the isolation amount determiners 1205 and 1206. The OR processor 1207 calculates the OR of isolation amount determination signals in, e.g., a 3 x 3 pixel area, and sets a determination signal = 1I1 of the interest pixel if at least one pixel is '1'.
[0133] Figs. 21A to 21C are views for explaining the processing of the OR processors 1207 and 1208. [0134] Fig. 21A shows a case wherein only the isolation amount determination signal of the interest pixel in the 3 x 3 pixel area is '1', and a signal (to be referred to as "OR signal" hereinafter) of the interest pixel after the OR processing becomes '1'. Fig. 21B shows a case wherein the isolation amount determination signal of the interest pixel is '0' but the region includes a pixel with an isolation amount determination signal = 'I1. Hence, an OR signal of the interest pixel after the OR processing becomes '1'. Fig. 21C shows a case wherein only the isolation amount determination signal of the interest pixel is ' 0 ' , and those of other pixels are 'I1. Hence, an OR signal of the interest pixel after the OR processing becomes '1'. [0135] The OR signals output from the OR processors 1207 and 1208 become dot signals 1 and 2 via integration processors 1209 and 1210, threshold determiners 1211 and 1212, and dot determiners 1213 and 1214.
[0136] Fig. 22 is a diagram showing the process for generating dot signal 1 or 2 by the integration processor 1209 (or 1210), threshold determiner 1211 (or 1212), and dot determiner 1213 (or 1214). [0137] OR signals 2001 are integrated in a plurality of areas. For example, integration processors 2011, 2012, and 2013 respectively count (integrate) the numbers of pixels with OR signals = 'I1 within 9 x 9, 15 x 15, and 21 x 21 pixel areas. The count values output from the integration processors are input to threshold determiners 2021, 2022, and 2023, which respectively perform determination within 9 x 9, 15 x 15, and 21 x 21 pixel areas. Note that the thresholds of the threshold determiners 2021, 2022, and 2023 can be respectively set. A dot determiner 2031 receives determination signals output from the respective threshold determiners, and outputs a dot signal. [0138] Fig. 23 is a view for explaining the processing of the integration processors 2011 to 2013, and shows OR signals of a low-density dot part, in which an OR signal = '1' is indicated by black pixel, and an OR signal = '0' is indicated by a white pixel. In the example of this embodiment, OR signals are integrated within three integration areas. However,- the present invention is not limited to the three integration areas . [0139] When OR signals having an interest pixel 2101 in the state shown in Fig. 23 are integrated (by counting pixels of OR signals = '1') within a 9 x 9 pixel area 2102, 15 x 15 pixel area 2103, and 21 x 21 pixel area 2104, the following results are obtained: 12 pixels in the 9 x 9 pixel area 2102; 40 pixels in the 15 x 15 pixel area 2103; and 76 pixels in the 21 x 21 pixel area 2104. [0140] Each of the threshold determiners 2021 to 2023 determines that the interest pixel 2101 falls within a halftone dot region when the area of the pixels of OR signals = 'I1 within the corresponding area exceeds, e.g., 5%; and it determines that the interest pixel 2101 does not fall within a halftone dot area when the area is, e.g., 5% or less. Therefore, the thresholds required to determine the respective integration areas as a halftone dot region are as follows: the threshold for the 9 x 9 pixel area is 5 pixels or more; that for the 15 x 15 pixel area is 12 pixels or more; and that for the 21 x 21 pixel area is 23 pixels or more.
[0141] Therefore, the integration results are determined as follows: the 9 x 9 pixel area 2102 is a halftone dot region since 12 pixels > 5 pixels; the 15 x 15 pixel area 2103 is a halftone dot region since 40 pixels > 12 pixels; and the 21 x 21 pixel area 2104 is a halftone dot region since 76 pixels > 23 pixels. [0142] Fig. 24 is a diagram for explaining the processing of the dot determiner 2031. [0143] The dot determiner 2031 determines based on the determination results of respective integration areas if the interest pixel 2101 falls within a halftone dot region. Initially, the determination results of respective integration areas are paired. For example, the determination results of the 9 x 9 pixel area 2102 and 15 x 15 pixel area 2103 form one pair, those of the 15 x 15 pixel area 2103 and 21 x 21 pixel area 2104 form another pair, and the ANDs of these pairs are calculated. The ANDs are ORed to generate a dot signal, In the above example, since all the integration areas are determined as a halftone dot region, a dot signal = 'I1 is generated as a result of ANDing and ORing. [0144] Fig. 25 is a view for explaining the processing of the integration processors 2011 to 2013 when a low- density halftone dot region includes a character edge. [0145] When OR signals having the interest pixel 2101 as the center in the state shown in Fig. 25 are integrated in the respective integration areas 2102 to 2104 in the same manner as in the description of Fig. 23, the integration results are as follows: 4 pixels in the 9 x 9 pixel area 2102;
32 pixels in the 15 x 15 pixel area 2103; and
60 pixels in the 21 x 21 pixel area 2104. [0146] Therefore, the determination results of the threshold determiners are as follows: the 9 x 9 pixel area 2102 is a non-halftone dot region since 4 pixels < 5 pixels; the 15 x 15 pixel area 2103 is a halftone dot region since 32 pixels > 12 pixels; and the 21 x 21 pixel area 2104 is a halftone dot region since 60 pixels > 23 pixels. [0147] The dot determiner 2031 performs logical operations shown in Fig. 24, and the AND result of the pair of the 9 x 9 pixel area 2102 and 15 x 15 pixel area 2103 yields '0'. On the other hand, the AND result of the pair of the 15 x 15 pixel area 2103 and 21 x 21 pixel area 2104 yields 1I'. Hence, as a result of ORing these AND results, a dot signal = 'I" is generated.
[0148] In this manner, the determination result of one integration area (9 x 9 pixel area 2102 in this case) indicates a non-halftone dot region. In other words, a halftone dot region including a character or line drawing may be determined as a non-halftone dot region depending on the size and threshold of the integration area. Hence, when a plurality of integration areas with different sizes, and different thresholds are used, a halftone dot region including a character or line drawing can be correctly detected as a halftone dot region.
[0149] Fig. 26 is a view for explaining the processing of the integration processors 2011 to 2013 when the interest pixel 2101 is located outside a low-density halftone dot region.
[0150] When OR signals having the interest pixel 2101 as the center in the state shown in Fig. 26 are integrated in the respective integration areas 2102 to 2104 in the same manner as in the description of Fig. 23, the integration results are as follows:
0 pixel in the 9 x 9 pixel area 2102; 12 pixels in the 15 x 15 pixel area 2103; and
20 pixels in the 21 x 21 pixel area 2104. [0151] Therefore, the determination results of the threshold determiners are as follows: the 9 x 9 pixel area 2102 is a non-halftone dot region since 0 pixel < 5 pixels; the 15 x 15 pixel area 2103 is a halftone dot region since 12 pixels = 12 pixels; and the 21 x 21 pixel area 2104 is a non-halftone dot region since 20 pixels < 23 pixels. [0152] The dot determiner 2031 performs logical operations shown in Fig. 24, and the AND. result of the pair of the 9 x 9 pixel area 2102 and 15 x 15 pixel area 2103 yields '0'. On the other hand, the AND result of the pair of the 15 x 15 pixel area 2103 and 21 x 21 pixel area 2104 also yields '0'. Hence, as a result of ORing these AND results, a dot signal = '0' is generated.
[0153] In this way, using a plurality of integration areas having different sizes, and different threshold, values, a part outside the boundary of the halftone dot region can be detected as a non-halftone dot region. That is, expansion of the extraction results (ballooning of dot signals) of a halftone dot region, which occurs when the integration area is expanded to improve the determination precision, can be prevented. [0154] The aforementioned combinations of the integration areas and thresholds are merely an example, and integration areas with sizes and thresholds can be combined according to the feature of a halftone dot area to be detected. Also, in the above example, two ANDs are calculated using the three integration areas. However, the number of integration areas, and the configuration of logical operations can be arbitrarily determined. Furthermore, the combinations of ANDing and ORing are merely an example.
[0155] Note that in a system from the OR processor 1207 to the dot determiner 1213, and that from the OR processor 1208 to the dot determiner 1214, the sizes of respective integration areas, the combinations of integration areas, and thresholds are changed to determine an image region, and dot signals 1 and 2 are output. In the subsequent processing, one of these dot signals is used, or the two dot signals are ANDed or ORed to broaden the determination range of a halftone dot region. [0156] [Switching of Image Processing]
Using text signals and dot signals obtained by the region segmentation processing, image region attributes are determined as follows. Image processes (masking, UCR, edge emphasis or smoothing, color reproduction method, image formation method, and the like) can be adaptively switched (controlled) in accordance with the image region attributes.
Figure imgf000045_0001
[0157] *1: a character within a halftone dot region.
[0158] In this way, the isolation amounts are integrated in a plurality of integration areas, and first dot determination is done using different thresholds for these integration areas. Furthermore, a plurality of first dot determination results undergo logical operations to execute second dot determination. In this way, a halftone dot region which includes a character, line drawing, or an image of dust or contamination can be correctly detected as a halftone dot region. In addition, when the integration area is expanded, ballooning of dot signals which occurs at the boundary of a halftone dot region which contacts a white background can be prevented.
[0159] Second Embodiment
Image processing according to the second embodiment of the present invention will be described below. Note that the same reference numerals in the second embodiment denote the same parts as those in the first embodiment, and a detailed description thereof will be omitted.
[0160] The first embodiment has exemplified a case wherein the isolation amount assumes a binary value (1 bit) . However, the second embodiment will explain a case wherein the isolation amount assumes a multi-value,
[0161] Fig. 27 is a block diagram showing the arrangement of a dot determination section 1002 of the second embodiment.
[0162] The dot determination section 1002 of the second embodiment has the same basic arrangement as that in the first embodiment, but it comprises isolation amount determiners 2605 and 2606 which output multi-valued isolation amounts, and addition processors 2607 and
2608 which replace the OR processors 1207 and 1208 of the first embodiment. Only components different from the first embodiment will be explained below.
[0163] The isolation amount determiner 2605 performs pattern matching for inner edge signals using a plurality of patterns and detects a dot.
[0164] Figs. 28A to 28D are views for explaining isolation amount calculations of the second embodiment, and show the relationship between inner edge signals in a 4 x 4 pixel area and the isolation amount of an interest pixel 1701.
[0165] In Fig. 28A, since the number of pixels (those with inner edge signals = 'I1) that match black pixels 1712 is four, and the number of pixels (those with inner edge signals = '0') that match white pixels 1713 is zero, the isolation amount of the interest pixel 1701 is 4 - 0 = 4.
[0166] In Fig. 28B, since the number of pixels that match black pixels 1712 is four, and the number of pixels that match white pixels 1713 is one, the isolation amount of the interest pixel 1701 is 4 - 1 = 3.
[0167] In Fig. 28C, since the number of pixels that match black pixels 1712 is three, and the number of pixels that match white pixels 1713 is zero, the isolation amount of the interest pixel 1701 is 3 - 0 = 3.
[0168] In Fig. 28D, since the number of pixels that match black pixels 1712 is two, and the number of pixels that match white pixels 1713 is zero, the isolation amount of the interest pixel 1701 is 2 - 0 = 2.
[0169] That is, the isolation amount of the second embodiment is obtained as a difference between the number of pixels which should be '1', and the number of pixels which should be 1O'.
[0170] The isolation amount determiner 2605 performs such pattern matching using a plurality of patterns. Also, the isolation amount determiner 2606 that performs isolation determination of outer edge signals performs the same pattern matching as the isolation amount determiner 2605. In this case, the matching patterns can be arbitrarily adjusted and set. [0171] The addition processors 2607 and 2608 receive and add both the isolation amounts output from the isolation amount determiners 2605 and 2606. In this case, the two addition processors add the isolation amounts of identical patterns. Each addition processor uses a pattern which is not a pattern to be added of the other addition processor as a pattern to be added. For example, when the addition processor 2607 handles a pattern used to detect a coarse halftone dot region (with a low LPI) , the addition processor 2608 handles a pattern used to detect a fine halftone dot region (with a high LPI) .
[0172] In this way, by handling multi-valued isolation amounts, the detection precision of a halftone dot region can be further improved. [0173] Modification of Embodiments
The second embodiment uses the matching level for a given matching pattern as a criterion for calculating the multi-valued isolation amount. However, the number of matched patterns may be used as an isolation amount. For example, when the isolation amount determiners 2605 and 2606 use 10 different matching patterns, the isolation amount = 10 is output when all these patterns are matched, or the isolation amount = 3 is output when three patterns are matched.
[0174] According to the above embodiment, the extraction performance of a halftone dot region including a character or line drawing can be improved without increasing any determination errors. Also, ballooning of extraction results at the boundary of a halftone dot region that contacts a white background can be prevented. Therefore, image processing adapted for attributes of image regions obtained by suited region segmentation can be executed, thus improving image quality. [0175] Other Embodiments
Note that the present invention can be applied to an apparatus comprising a single device or to system constituted by a plurality of devices.
[0176] Furthermore, the invention can be implemented by supplying a software program, which implements the functions of the foregoing embodiments, directly or indirectly to a system or apparatus, reading the supplied program code with a computer of the system or apparatus, and then executing the program code. In this case, so long as the system or apparatus has the functions of the program, the mode of implementation need not rely upon a program.
[0177] Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the claims of the present invention also cover a computer program for the purpose of implementing the functions of the present invention. [0178] In this case, so long as the system or apparatus has the functions of the program, the program may be executed in any form, such as an object code, a program executed by an interpreter, or scrip data supplied to an operating system.
[0179] Example of storage media that can be used for supplying the program are a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a CD-RW, a magnetic tape, a non-volatile type memory card-, a ROM, and a DVD (DVD-ROM and a DVD-R) . [0180] As for the method of supplying the program, a client computer can be connected to a we.bsite on the Internet using a browser of the client computer, and the computer program of the present invention or an automatically-installable compressed file of the program can be downloaded to a recording medium such as a hard disk. Further, the program of the present invention can be supplied by dividing the program code constituting the program into a plurality of files and downloading the files from different websites. In other words, a WWW (World Wide Web) server that downloads, to multiple users, the program files that implement the functions of the present invention by computer is also covered by the claims of the present invention.
[0181] It is also possible to encrypt and store the program of the present invention on a storage medium such as a CD-ROM, distribute the storage medium to users, allow users who meet certain requirements to download decryption key information from a website via the Internet, and allow these users to decrypt the encrypted program by using the key information, whereby the program is installed in the user computer. [0182] Besides the cases where the aforementioned functions according to the embodiments are implemented by executing the read program by computer, an operating system or the like running on the computer may perform all or a part of the actual processing so that the functions of the foregoing embodiments can be implemented by this processing.
[0183] Furthermore, after the program read from the storage medium is written to a function expansion board inserted into the computer or to a memory provided in a function expansion unit connected to the computer, a CPU or the like mounted on the function expansion board or function expansion unit performs all or a part of the actual processing so that the functions of the foregoing embodiments can be implemented by this processing. [0184] While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions. [0185] This application claims the benefit of Japanese Patent Application No. 2005-252466, filed August 31, 2005, which is hereby incorporated by reference herein in its entirety.

Claims

1. A method of extracting image regions from an image including different types of image regions, comprising the steps of: calculating an isolation amount of an interest pixel; integrating the isolation amounts in a plurality of areas having different sizes; and determining whether or not the interest pixel belongs to a halftone dot region by comparing thresholds set for the respective plurality of areas and the integration result.
2. The method according to claim 1, wherein the calculating step includes a step of calculating a binary isolation amount for each of a plurality of matching patterns using the plurality of matching patterns .
3. The method according to claim 2, further comprising the step of: setting the plurality of matching patterns in consideration of lines per inch of the halftone dot region.
4. The method according to claim 1, wherein the calculating step includes a step of calculating a multi-valued isolation amount for each of a plurality of matching patterns using the plurality of matching patterns.
5. The method according to claim 4, further comprising the step of: setting the plurality of matching patterns in consideration of lines per inch of the halftone dot region.
6. The method according to claim 1, wherein the determining step includes a step of determining a determination result of the interest pixel by making logical operations of determination results for the plurality of areas.
7. The method according to claim 1, further comprising the step of: determining using secondary differential values of the interest pixel and surrounding pixel values whether or not the interest pixel is included in a text region.
8. An image processing apparatus for extracting image regions from an image including different types of image regions, comprising: a calculator, arranged to calculate an isolation amount of an interest pixel; an integrator, arranged to integrate the isolation amounts in a plurality of areas having different sizes; and a determiner, arranged to determine whether or not the interest pixel belongs to a halftone dot region by comparing thresholds set for the respective plurality of areas and the integration result.
9. A computer program product stored on a computer readable medium comprising program code for a method of extracting image regions from an image including different types of image regions, the method comprising the steps of: calculating an isolation amount of an interest pixel; integrating the isolation amounts in a plurality of areas having different sizes; and determining whether or not the interest pixel belongs to a halftone dot region by comparing thresholds set for the respective plurality of areas and the integration result.
PCT/JP2006/317417 2005-08-31 2006-08-29 Image processing apparatus and method thereof WO2007026924A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US11/997,216 US8004732B2 (en) 2005-08-31 2006-08-29 Image processing apparatus and method thereof
EP06797342A EP1915853B1 (en) 2005-08-31 2006-08-29 Image processing apparatus and method thereof
CN2006800320145A CN101253760B (en) 2005-08-31 2006-08-29 Image processing apparatus and method thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2005252466A JP4557843B2 (en) 2005-08-31 2005-08-31 Image processing apparatus and method
JP2005-252466 2005-08-31

Publications (1)

Publication Number Publication Date
WO2007026924A1 true WO2007026924A1 (en) 2007-03-08

Family

ID=37809004

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2006/317417 WO2007026924A1 (en) 2005-08-31 2006-08-29 Image processing apparatus and method thereof

Country Status (6)

Country Link
US (1) US8004732B2 (en)
EP (1) EP1915853B1 (en)
JP (1) JP4557843B2 (en)
KR (1) KR100994644B1 (en)
CN (1) CN101253760B (en)
WO (1) WO2007026924A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7961951B2 (en) 2007-08-10 2011-06-14 Konica Minolta Business Technologies, Inc. Image processing apparatus capable of accurately removing isolated point noise, image processing method, and computer readable medium

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4557843B2 (en) * 2005-08-31 2010-10-06 キヤノン株式会社 Image processing apparatus and method
JP4834603B2 (en) * 2007-05-09 2011-12-14 京セラミタ株式会社 Image processing apparatus and image forming apparatus
JP4861967B2 (en) * 2007-11-30 2012-01-25 株式会社リコー Image processing apparatus, image processing method, image processing program, image forming apparatus, and storage medium
WO2010055558A1 (en) * 2008-11-12 2010-05-20 富士通株式会社 Character area extracting device, image picking-up device provided with character area extracting function and character area extracting program
JP5769415B2 (en) 2010-12-28 2015-08-26 キヤノン株式会社 Image forming apparatus
JP5482668B2 (en) * 2011-01-04 2014-05-07 コニカミノルタ株式会社 Image processing apparatus and program
JP6018398B2 (en) * 2011-05-13 2016-11-02 キヤノン株式会社 Image processing apparatus and processing method thereof
US9438890B2 (en) * 2011-08-25 2016-09-06 Panasonic Intellectual Property Corporation Of America Image processor, 3D image capture device, image processing method, and image processing program
US8971637B1 (en) 2012-07-16 2015-03-03 Matrox Electronic Systems Ltd. Method and system for identifying an edge in an image
JP5955822B2 (en) * 2013-10-25 2016-07-20 京セラドキュメントソリューションズ株式会社 Color conversion apparatus, image forming apparatus, color conversion method, and color conversion program
JP6516449B2 (en) * 2014-02-06 2019-05-22 キヤノン株式会社 Image processing apparatus, image forming apparatus, image processing method and program
US9235126B1 (en) * 2014-10-08 2016-01-12 Eastman Kodak Company Flexographic surface patterns
CN104537756B (en) * 2015-01-22 2018-04-20 广州广电运通金融电子股份有限公司 A kind of assortment of bank note discrimination method and device based on Lab color spaces

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03240365A (en) * 1990-02-19 1991-10-25 Matsushita Electric Ind Co Ltd Area identification device
JPH07212578A (en) * 1994-01-14 1995-08-11 Mita Ind Co Ltd Method and device for processing picture
JPH1185978A (en) * 1997-09-04 1999-03-30 Canon Inc Image processor and its method
JP2001245142A (en) * 2000-02-28 2001-09-07 Canon Inc Image processing apparatus and method
JP2003032483A (en) * 2001-07-11 2003-01-31 Canon Inc Image processing apparatus and its method
JP2003244432A (en) * 2002-02-14 2003-08-29 Canon Inc Image processor and method therefor
JP2004007049A (en) * 2002-05-30 2004-01-08 Canon Inc Image processing apparatus, image processing method, recording medium and its program
JP2004254032A (en) * 2003-02-19 2004-09-09 Canon Inc Image processor and its method
JP2004282324A (en) * 2003-03-14 2004-10-07 Canon Inc Image processor and image processing method
JP2005045506A (en) * 2003-07-28 2005-02-17 Canon Inc Apparatus and method for image processing, storage medium, and program

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4782398A (en) * 1986-02-14 1988-11-01 Canon Kabushiki Kaisha Image processing apparatus
US4958218A (en) * 1987-12-16 1990-09-18 Canon Kabushiki Kaisha Image processing method and apparatus with dot-processing
KR940007346B1 (en) * 1991-03-28 1994-08-13 삼성전자 주식회사 Edge detection apparatus for image processing system
DE69419545T2 (en) * 1993-02-26 1999-11-25 Nec Corp., Tokio/Tokyo Method and device for compressing binary image data
EP0685961B1 (en) * 1994-06-03 2000-08-23 Riso Kagaku Corporation Image processing apparatus
JP3240365B2 (en) 1995-05-10 2001-12-17 ティーディーケイ株式会社 Powder filling equipment
US6975777B1 (en) * 1999-03-26 2005-12-13 Victor Company Of Japan, Ltd. Apparatus and method of block noise detection and reduction
JP2002077599A (en) * 2000-08-24 2002-03-15 Minolta Co Ltd Image processing device
JP2002271616A (en) * 2001-03-09 2002-09-20 Minolta Co Ltd Image processing unit and imaging device
US7340092B2 (en) * 2001-12-21 2008-03-04 Minolta Co., Ltd. Image processing device, image processing method, program for executing image processing, and computer readable recording medium on which the program is stored
JP4007134B2 (en) * 2002-09-18 2007-11-14 コニカミノルタビジネステクノロジーズ株式会社 Image processing device
US6912309B2 (en) * 2003-03-06 2005-06-28 Lockheed Martin Corporation Method and system for identifying objects in an image
JP3873947B2 (en) * 2003-08-12 2007-01-31 コニカミノルタビジネステクノロジーズ株式会社 Image processing apparatus and image processing program
JP4243854B2 (en) * 2004-06-08 2009-03-25 富士ゼロックス株式会社 Image processing apparatus, image processing method, image processing program, and storage medium
JP4115460B2 (en) * 2005-04-12 2008-07-09 キヤノン株式会社 Image processing apparatus and method, and computer program and recording medium
JP4557843B2 (en) * 2005-08-31 2010-10-06 キヤノン株式会社 Image processing apparatus and method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03240365A (en) * 1990-02-19 1991-10-25 Matsushita Electric Ind Co Ltd Area identification device
JPH07212578A (en) * 1994-01-14 1995-08-11 Mita Ind Co Ltd Method and device for processing picture
JPH1185978A (en) * 1997-09-04 1999-03-30 Canon Inc Image processor and its method
JP2001245142A (en) * 2000-02-28 2001-09-07 Canon Inc Image processing apparatus and method
JP2003032483A (en) * 2001-07-11 2003-01-31 Canon Inc Image processing apparatus and its method
JP2003244432A (en) * 2002-02-14 2003-08-29 Canon Inc Image processor and method therefor
JP2004007049A (en) * 2002-05-30 2004-01-08 Canon Inc Image processing apparatus, image processing method, recording medium and its program
JP2004254032A (en) * 2003-02-19 2004-09-09 Canon Inc Image processor and its method
JP2004282324A (en) * 2003-03-14 2004-10-07 Canon Inc Image processor and image processing method
JP2005045506A (en) * 2003-07-28 2005-02-17 Canon Inc Apparatus and method for image processing, storage medium, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7961951B2 (en) 2007-08-10 2011-06-14 Konica Minolta Business Technologies, Inc. Image processing apparatus capable of accurately removing isolated point noise, image processing method, and computer readable medium

Also Published As

Publication number Publication date
KR100994644B1 (en) 2010-11-15
EP1915853A1 (en) 2008-04-30
KR20080049806A (en) 2008-06-04
US8004732B2 (en) 2011-08-23
EP1915853A4 (en) 2009-11-11
JP2007067932A (en) 2007-03-15
CN101253760A (en) 2008-08-27
US20100092092A1 (en) 2010-04-15
JP4557843B2 (en) 2010-10-06
EP1915853B1 (en) 2012-05-23
CN101253760B (en) 2012-02-29

Similar Documents

Publication Publication Date Title
US8004732B2 (en) Image processing apparatus and method thereof
US7502150B2 (en) Color converting device, image forming apparatus, color conversion method, computer program and recording medium
US7689050B2 (en) Image processing apparatus and method with a histogram of the extracted DC components
US8175155B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
US8139849B2 (en) Image processing apparatus, image processing method, and image processing program
US7880927B2 (en) Image forming apparatus, image forming method, program, and recording medium
US7916352B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2017175213A (en) Manuscript type recognition device, image forming apparatus, manuscript type recognition method and program
US6868183B1 (en) Image processing apparatus, image forming apparatus, and image processing method depending on the type of original image
JPH11238130A (en) Removal of non-text information from color image
JP2017175192A (en) Image compression apparatus, image formation apparatus, image compression method, and program
JP2005101765A (en) Method and apparatus for processing image, and image forming apparatus
JP2004350240A (en) Image processing apparatus and image processing method
JP2004187119A (en) Device, system, and method for processing image
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP4149368B2 (en) Image processing method, image processing apparatus and image forming apparatus, computer program, and computer-readable recording medium
JP4080252B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP2010045537A (en) Image processor, image forming device, image processing method, computer program and recording medium
JP2007189275A (en) Image processor
JP2023109520A (en) Image processing device
JP2002237958A (en) Color converter, color conversion profile generator and generating method, imaging device, program, recording medium
JP2006033726A (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer readable recording medium with image processing program recorded thereon
JP2006115347A (en) Image processing apparatus, method, and program, and recording medium recording image processing program
JPH09322007A (en) Color image processor and its method
JP2006211298A (en) Image processor and program

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200680032014.5

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 11997216

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2006797342

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE