System and method to detect, suppress and modify background regions of scanned documents
Patent Information
- Application Number
- JP2021151297
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-09-17
- Filing Date
- 2021-09-16
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2041-09-16
AI Technical Summary
Existing image processing systems struggle with background suppression, particularly in documents with poor contrast between foreground and background regions, leading to artifacts like 'punch-through' and increased file sizes, which are exacerbated by advances in pixel density in output devices.
A system and method that utilize advanced processors to perform background adjustment by calculating background intensity and luminance intensity for each pixel, applying highlight mapping to accurately segment and modify background regions, allowing for user-controlled adjustments to minimize artifacts and reduce toner usage.
Improves image quality by accurately segmenting foreground and background regions, reducing artifacts, and optimizing file size while maintaining document integrity, especially on colored substrates, and conserving toner.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical Field]
[0001] (Cross-reference of related applications) Cross-references are made to Metcalfe's concurrently pending U.S. Patent Application Publication No. 16 / 830,479, filed on 26 March 2020, entitled "SYSTEM AND METHOD FOR PROCESSING AND ENHANCING ACHROMATIC CHARACTERS OF SCANNED DIGITAL DOCUMENTS," and to Metcalfe et al.'s concurrently pending U.S. Patent Application Publication No. 16 / 830,419, filed on 26 March 2020, entitled "SYSTEM AND METHOD TO DETECT AND ADJUST IMAGE BACKGROUND," the disclosures thereof being incorporated herein in their entirety by reference.
[0002] (Field of invention) The exemplary embodiments relate to image adjustment and find specific applications in systems and methods for background suppression and background correction. [Background technology]
[0003] Digital image capture devices such as scanners and cameras capture images as an array of pixels, and each pixel is assigned a set of color values in a multidimensional color space such as the RGB (red, green, blue) color space, which is referred to herein as the input color space. The processed image captured by the digital device is generally in the L color space, which is referred to herein as the processing color space. * a * b * The process is performed within a multidimensional color space with a larger color gamut, such as a color space. The processed image can then be converted to a multidimensional output color space suitable for rendering the processed image, such as CMYK (cyan, magenta, yellow, and black), for printing purposes.
[0004] During image processing, various adjustments may be made to the image, often performed sequentially, and may include adjusting image resolution, color correction, removing undesirable artifacts, cropping, and background suppression.
[0005] Background suppression is a useful function provided by the image path in photocopiers and multifunction systems that removes or integrates background color in digitally acquired images. Background suppression removes or uniformizes the background so that the electronic image appears more uniform and consistent. Background suppression is more difficult for input images that contain poor contrast between the foreground and background areas. Unwanted backgrounds can be present for many reasons, such as aged, discolored, and / or soiled documents(s) scanned to generate the input image. In addition, the original document may be printed on colored substrates or recycled paper that customers generally do not want reproduced. Thin paper can also be a problem, as it tends to increase the probability of see-through, which occurs when detecting and rendering content from the opposite side of a double-sided print. Users generally do not want irrelevant dots or backgrounds reproduced in their copies, but rather a faithful reproduction of the actual content contained in the original print. Background suppression helps improve the contrast between the foreground and background areas. Background suppression also helps minimize compressed file sizes in applications such as scanning and document archiving.
[0006] To achieve acceptable throughput, the complexity of background suppression algorithms is generally limited by the processing power of image processing devices such as printer processors. Algorithms have been developed that segment an image into foreground and background regions and then apply corrections only to the background region. The threshold is set with the aim of producing a uniform background region, typically white (colorless), without undesiring an effect on the foreground region. The threshold can be close to the maximum value but less than it. For example, on a luminance channel with a scale of 0 to 255, where 0 is black and 255 is white, a threshold of 250 may be set, and all pixel values above the threshold can be made to 255, i.e., white, by applying a gain. However, pixels below 250 remain unadjusted and gray. The chrominance channel can be adjusted similarly. As a result, many existing threshold-based segmentation classification algorithms can produce abrupt switching artifacts, which are visible as non-uniform foreground or background regions in the output image. These are often referred to as "punch-through" artifacts in the halftone and highlight areas.
[0007] Furthermore, advancements in the number of pixels per bit (bpp), such as the change from 1bpp to 8bpp, available in output devices like marking engines, mean that these artifacts are more pronounced. In recent years, advancements in processing hardware and software have made it possible to use more complex algorithms without impacting throughput.
[0008] A system and method for background adjustment are disclosed that can leverage the processing power of more advanced processors to minimize artifacts that may occur during background suppression and provide background color selection. (Integrated by reference)
[0009] The following references are incorporated herein in their entirety by reference.
[0010] U.S. Patent Application Publication No. 20170255849(A1) by Xing Li et al., published on September 7, 2017, titled "DOCUMENT BACKGROUND SUPPRESSION PERFORMED DURING COLOR SPACE CONVERSION," describes a method of performing background suppression correction on an image after it has been converted from a first color space to a second color space, and then converting it to a third color space used by a printing device. The process of converting an image to a third color space involves sampling nodes of second color space values, classifying the nodes as background nodes or non-background nodes, multiplying the second color space values of background nodes by a percentage less than 100%, and then interpolating the values between nodes after multiplication. [Overview of the project] [Problems that the invention aims to solve]
[0011] According to one embodiment of an exemplary design, the image processing device includes an input device that receives image adjustment selections from an associated user interface device. The memory stores a user interface generator that generates a background adjustment selector for presentation to the user on the user interface device, and a background adjustment component that calculates an adjusted color value for each of a plurality of pixels in the input image as a function of (a) a background adjustment coefficient calculated for each pixel, and (b) a background class derived from the calculated background adjustment coefficient. The background adjustment coefficient is a function of the background intensity of the pixel and the luminance intensity of the pixel. The memory also stores an image output component that outputs an output image derived from the adjusted color values for the plurality of pixels. The processor implements the background adjustment component and the image output component.
[0012] According to another aspect of the exemplary embodiment, the image processing method includes receiving an input image containing a plurality of pixels. For each of the plurality of pixels, the method includes calculating the background intensity of the pixel, calculating the luminance intensity of the pixel, and calculating an adjusted luminance value and an adjusted chrominance value of the pixel as a function of a user-selected highlight color and the background intensity and luminance intensity of the pixel. The method further includes outputting an output image derived from the adjusted luminance value and adjusted chrominance value for the plurality of pixels.
[0013] One or more steps of this method may be performed by a processor.
[0014] According to another aspect of the exemplary embodiment, the image processing device includes an image adjustment unit that receives an input image, a selected highlight color, and a selected global adjustment coefficient. The image adjustment unit includes a background adjustment component that, for each of a plurality of pixels in the input image, calculates the background intensity of the pixel, the luminance intensity of the pixel, and calculates the adjusted luminance and adjusted chrominance values of the pixel as a function of the pixel's background intensity and luminance intensity, the selected highlight color, and the selected global adjustment coefficient. The image output device receives an output image derived from the adjusted luminance and adjusted chrominance values of the plurality of pixels and renders the output image by printing. [Brief explanation of the drawing]
[0015] [Figure 1] Figure 1 is a functional block diagram of an electronic transaction device according to one exemplary embodiment.
[0016] [Figure 2] Figure 2 is a flowchart showing a software image processing path according to another embodiment of the exemplary design.
[0017] [Figure 3] Figure 3 shows one embodiment of the background adjustment component in the device shown in Figure 1.
[0018] [Figure 4] Figure 4 shows background level determination using trilinear interpolation.
[0019] [Figure 5] Figure 5 illustrates the changes in image pixels during background adjustment by white point mapping in one embodiment of the exemplary method.
[0020] [Figure 6] Figure 6 illustrates the changes to image pixels during background adjustment by grayscale highlight mapping in another embodiment of the exemplary method.
[0021] [Figure 7] Figure 7 illustrates the changes in image pixels during background adjustment by direct highlight mapping in one embodiment of an exemplary method.
[0022] [Figure 8] Figure 8 shows an exemplary user interface for the system in Figure 1.
[0023] [Figure 9] Figure 9 shows a window for selecting an area within the exemplary user interface of Figure 8.
[0024] [Figure 10] Figure 10 shows a window for text selection within the exemplary user interface of Figure 8.
[0025] [Figure 11] Figure 11 is a schematic block diagram of the background adjustment kernel of the background adjustment component shown in Figure 3, according to one embodiment of an exemplary design.
[0026] [Figure 12] Figure 12 shows an exemplary transformation function for calculating the background intensity of a pixel.
[0027] [Figure 13] Figure 13 shows an exemplary transformation function for calculating the brightness intensity of a pixel.
[0028] [Figure 14] Figure 14 shows an exemplary white point mapping component of the background adjustment kernel in Figure 11.
[0029] [Figure 15] Figure 15 shows an example of the direct mapping components of the background adjustment kernel in Figure 11.
[0030] [Figure 16] Figure 16 shows an example of the grayscale mapping components of the background adjustment kernel in Figure 11.
[0031] [Figure 17] Figure 17 is a flowchart of a method for image adjustment according to another embodiment of the exemplary model.
[0032] [Figure 18] Figure 18 is a flowchart showing the background adjustment method in Figure 17.
[0033] [Figure 19] Figure 19 shows direct highlight editing with different global adjustment coefficients. [Modes for carrying out the invention]
[0034] A system and method for providing image processing that incorporates background highlight mapping is described. Exemplary background highlight mapping may form steps in a software image path (SWIP) as described herein, or it may be performed as a standalone operation. The exemplary system and method identify potential background pixels and process them based on highlight mapping commands. Highlight mapping commands may be pre-configured or selected by a user, such as a customer or another person entering commands for image processing.
[0035] Background highlight mapping, as used herein, is a method for correcting the color of background pixels in an image. The color change is adjustable, allowing the user to fine-tune the amount of background correction applied to the document. In one embodiment, the customer can select the amount of background correction via a user interface. For documents or copy jobs originally printed on colored paper, some of the background color of the document may be retained, but the saturation level will be reduced. This feature may also be incorporated as an economical print mode to reduce the amount of marking material, such as toner, used in any given copy job. This feature may also be incorporated as a method for minimizing scan file size when compressing images for scanning, electronic distribution, or archiving.
[0036] In one embodiment of the highlight mapping referred to herein as grayscale highlight mapping, the range to which any identified background pixel is driven toward a selected highlight color is based on the pixel's "background intensity" (or neutral intensity) (as opposed to being entirely labeled / classified as "background" versus "non-background"), and optionally also on a global adjustment coefficient.
[0037] In another embodiment, referred to as direct highlight mapping, the range over which identified background pixels are driven toward a user-selected highlight color is a function of a global adjustment coefficient.
[0038] If no highlight color is selected by the user, the identified background pixels will be mapped to the default (i.e., L) as referred to herein as white point mapping. * a * b * It can be driven toward "pure white" by (=255, 128, 128). In one embodiment, the default background adjustment can be based on the "background intensity" of pixels, similar to the grayscale mapping method (as opposed to being completely labeled / classified as "background" versus "non-background").
[0039] In one embodiment, the user (or an automatic region selector) can select a region of identified background pixels or text characters within identified background pixels to be processed according to one of the background highlighting methods (e.g., direct, grayscale, or default), while a second region of identified background pixels or text characters within identified background pixels is processed according to another of the background highlighting methods.
[0040] This system and method enable accurate segmentation and classification of background and foreground regions of a document, thereby significantly improving the image quality of the resulting printed document. This improvement is particularly important and noticeable not only in the low-frequency halftone region but also in other highlight regions where the paper's background characteristics are close to the document's foreground content.
[0041] The highlight mapping process allows the background area of a scanned document to be precisely altered and set to a preset or user-selectable color, while simultaneously ensuring that the remaining foreground area remains unchanged. For example, the background area of a document printed on colored paper can be completely suppressed, or if not, slightly adjusted to save toner or maintain color content but with reduced saturation.
[0042] As used herein, "image output device" can include any device for rendering an image on a print medium, such as a copier, laser printer, bookbinding machine, facsimile machine, or multifunction machine (including one or more functions such as scanning, printing, archiving, email, and fax).
[0043] "Print medium" can be a physical sheet of paper, plastic, or other suitable physical print medium substrate on which an image is placed. For example, the print medium can be substantially any type of medium on which a marking engine can print, such as high-quality bond paper, low-quality "copy" paper, overhead transparency sheets, high-gloss paper, colored paper, etc. "Job" or "document" refers to one or more sheets copied from an original job sheet(s) or electronic document page image from a particular user or other related users. According to the systems and methods herein, a "job" can be a print job, copy job, scan job, etc.
[0044] "Original image" or "input image" is used herein to mean an electronic (e.g., digital) record of information. The original image can include image data in the form of text, graphics, or bitmap.
[0045] As used herein, "pixel" refers to the smallest segment into which an image can be divided. The received pixels of an input image are associated with color values defined with respect to a color space such as color, intensity, lightness, brightness, or a mathematical transformation of some of them. Pixel color values can be obtained, for example, by using an RGB-L * ) and chrominance (a * b * ) values, for example, using an RGB-L * a * b * converter to convert to a chrominance-luminance space such as L * a * b * etc. Pixels can be in RGB or L * a *b * Please understand that it can be represented by values other than [the specified value].
[0046] L * a * b * The color space has an L dimension of lightness, and an opposite color dimension (i.e., chrominance), and has a and b based on nonlinearly compressed coordinates. * a * b * A color space includes all perceptible colors, which means its color gamut exceeds that of the RGB and CMYK color spaces, but L * a * b * - A color space is device-independent, meaning that its colors are defined independently of the nature of their generation or the device to which they are output (displayed or rendered).
[0047] Figure 1 shows an exemplary image processing device 10. The image processing device includes an image adjustment unit 12 and optionally an image output device 14. The image adjustment unit 12 receives an original digital image 16, such as a scanned image, in a first (input) color space such as RGB. The image adjustment unit 12 adjusts the original image 16 in a second color space, specifically L * a * b *The image is converted to a luminance-chrominance color space such as CMYK, where image adjustments are made to form an adjusted digital image 18. Adjustments may include background adjustments. The image adjustment unit 12 may convert the adjusted digital image 18 into an output digital image 20 in a third (output) color space such as CMYK in which the output device 14 operates. An exemplary output device 14 includes a marking device which renders the output digital image 20 onto a print medium such as paper using a marking material such as ink or toner to form a rendered (generally hard copy) image 22. The image processing device 10 may further include or be communicably connected to a source 24 of the original digital image, such as a scanner or computing device. In some embodiments, such as a scan-copy image processing path, the output image 20 may be stored in local or remote memory such as the source 24 of the digital image. The components 12, 14, and 24 of the image processing device 10 may be communicably connected by wired links 26 or wireless links 28, such as wires, local area networks, or wide area networks such as the Internet.
[0048] The image adjustment unit 12 includes a memory 30 that stores software instructions 32 for performing processing steps to generate the adjusted image 18 and the output image 20. A processor device ("processor") 34 that communicates with the memory 30 executes these instructions. The image adjustment unit 12 also includes one or more input / output (I / O) devices 36, 38, 40 for communicating with external devices, in particular, to receive the original image 16, to output the output image 20, and to receive the image adjustment selection 42 from a local or remote user interface device 43. The input / output (I / O) devices 36, 38, 40 enable the image adjustment unit 12 to communicate with other devices via a computer network such as a local area network (LAN), a wide area network (WAN), or the Internet, and may include a modulator / demodulator (modem), router, cable, and / or Ethernet port, respectively.
[0049] The user interface device 43 displays a graphical user interface, such as the illustrated background adjustment selector 44. The user interface device 43 may be a display device incorporating a display screen and one or more user input components, such as a touchscreen, keyboard, keypad, cursor control device, or voice command receiver. The user interface device 43 may be communicatively connected to an input / output device 40 by a wired or wireless link, thereby transmitting the GUI 44 to the user interface device 43 and receiving user selections from the user interface device.
[0050] The hardware components 30, 34, 36, 38, 38, and 40 of the image control unit 12 can communicate via the data / control bus 46.
[0051] The image control unit 12 may include one or more computing devices such as a microprocessor, a PC such as a desktop, laptop, palmtop computer, personal digital assistant (PDA), server computer, mobile phone, tablet computer, or a combination thereof, or other computing devices capable of executing instructions to carry out the exemplary method.
[0052] Memory 30 can represent any type of non-temporary computer-readable medium, such as random access memory (RAM), read-only memory (ROM), magnetic disk or magnetic tape, optical disk, flash memory, or holographic memory. In one embodiment, memory 30 includes a combination of random access memory and read-only memory. In some embodiments, the processor 34 and memory 30 may be combined on a single chip. Memory 30 may include one or more memory devices to store instructions for executing exemplary methods and processed data.
[0053] The digital processor device 34 can be embodied in various ways, such as a single-core processor, a dual-core processor (or more commonly, a multi-core processor), a digital processor, and a linked numerical coprocessor, a digital controller, etc. In addition to executing instructions 32, the digital processor 34 can also control the operation of the image output device 14. In one embodiment, the processor may be or include a dedicated processor specialized for processing image data, and may include an application-specific integrated circuit (ASIC) specialized for handling image processing operations, processing image data, calculating pixel values, etc. The processor may include a raster image processor (RIP), which processes the job as a raster image using the original image description. Thus, in the case of a print job, the print instruction data is translated into a printer-readable language. The print job description is generally used to generate a print-ready file. The print-ready file may be a compressed file that can be repeatedly accessed for multiple (and subsequent) passes.
[0054] As used herein, the term “software instruction” or simply “instruction” is intended to encompass any set of instructions that can be executed by a computer or other digital system to configure the computer or other digital system to perform a task that is the purpose of the software. As used herein, the term “software” is intended to encompass such instructions stored on a storage medium such as RAM, a hard disk, or an optical disk, and is also intended to encompass so-called “firmware,” which is software stored on ROM or the like. Such software can be organized in a variety of ways and may include software components organized as libraries, internet-based programs stored on remote servers, source code, interpret code, object code, and directly executable code. The software is intended to be able to invoke system-level code or calls to other software residing on a server or elsewhere to perform a particular function.
[0055] The illustrated instruction 32 includes a graphical user interface (GUI) generator 48, a first (input image) transformation component 50, optionally one or more image preprocessing components 52, a page background detection component 54, a background adjustment component 56, optionally one or more image postprocessing components 58, a second (adjusted image) transformation component 60, an image output component 62, and an optionally parameter learning component 64. As understood, one or more of the components 48, 50, 52, 54, 56, 58, 60, 62, and 64 may be separate or combined, and may be software or hardware components.
[0056] The GUI generator 48 generates a graphical user interface (GUI) for display on the UI 43. The GUI includes a background adjustment selector 44, which is provided for the user to create background adjustment selections 42 on the user interface 43, for example, via a touchscreen, keypad, etc., which are built into or otherwise associated with the device 43.
[0057] Referring to Figure 2, assuming that the input image 16 is not already in the luminance-chrominance color space, the first conversion component 50 receives the original image 16 in the first color space and converts the pixels 66 of the original image 16 to pixels 68 to form the converted image 70 (Figure 1) in the second (luminance-chrominance) color space. This converts RGB to L * a * b * The transformation is shown in Figure 2. As can be understood, if the original image 16 is already in the second color space, the first transformation component 50 may be omitted. This transformation can be carried out using a lookup table or by other methods such as using an appropriate transformation equation.
[0058] The optional image preprocessing component(s) 52 can perform various preprocessing operations on the transformed image pixels 68 in the second color space. These operations may include one or more of the following: cropping, scaling, padding, etc. As understood, one or more of these operations may be performed additionally or alternatively within the software image path. The output of the preprocessing is an optionally preprocessed image 72, which includes the preprocessed image pixels 74 in the second color space.
[0059] The optional page background detection component 54 can detect the background color 75 of each page and segment sequences of incoming pages into sets of pages with similar background colors. Component 54 can incorporate a page-based or leading-edge background detection kernel to assign a single background color to the entire page. This allows component 56 to process pages with a "white" background, distinct from colored backgrounds (non-white). In this way, the page background can be dynamically adjusted per document (or per page) based on the current scanner and paper media attributes. This enables full or partial background suppression when a mixture of both colored and standard white paper stocks is included in the same copy job. The component can perform a simple detection of the color 75 of background areas such as the page margins (i.e., outside the normal print area), resulting in all pages within a pre-selected color value range being classified as "white background," while other pages are classified as having an average L color other than white. * a * b * Pages can be classified by background color. Below, as an example, pages with detected pink and yellow backgrounds are shown.
[0060] The overall print image quality can be improved by the page background detection component 54, which allows for a precise background detection profile to be dynamically adjusted for each document based on the current scanner and paper media attributes, thereby enabling full or partial background suppression when a mixture of both colored and standard white paper materials is included in the same copy job.
[0061] The background adjustment component 56 applies background adjustments to pixels 74 of page image 70 or 72 according to any user selection via the background adjustment selector 44, or by using the default selection. The output of the background adjustment operation is that some of the pixels of the background adjustment image 76, i.e., the background correction image 78, may be adjusted for the purpose of providing improved image quality and / or background highlighting.
[0062] Optional image post-processing components(s) 58 can perform various post-processing operations on the pixels of the modified background adjustment image 78 in the second color space to form the adjustment image 18. If no post-processing is performed, the background adjustment image 78 functions as the adjustment image 18.
[0063] The second conversion component 60 converts the adjusted image 18 into pixels 80 of the output image 20 in a third color space such as CMYK.
[0064] Images 16, 18, 20, 70, 72, and 78 may be temporarily stored in memory 30 or a separate memory during processing.
[0065] The image output component 62 outputs the output image 20 to the image output device 14, for example, via the I / O device 38. Alternatively, the output image may be stored in memory or output to a remote computing device and / or memory storage device.
[0066] During the image processing described herein, the original image 16 can be converted into a bitmap image that shows values to be printed on each pixel of the image.
[0067] The optional parameter learning component 64 learns one or more parameters of the system, such as a lookup table or scalar parameters.
[0068] Referring to Figure 3, an example background adjustment component 56 is shown. The input to the illustrated component 56 is 8bpp for each channel for each pixel of the image, i.e., L * a* These are b values, each an 8-bit sequence (each bit can be 0 or 1) corresponding to a range of 0 to 255. However, other scales can also be conceived.
[0069] The background adjustment component 56 includes a background segmentation component 82 and a background adjustment kernel 84. In one embodiment, the background segmentation component 82 assigns a background level (or average background level) to all pixels in the image, which serves as an indicator of whether each pixel may be a background pixel. In another embodiment, the background segmentation component 82 segments the image into a background region and a foreground region, and identifies all pixels in the background region as background pixels.
[0070] The illustrated background segmentation component 82 includes a background level determination component 90 and an averaging component 92. Component 90 includes a planar-to-pixel aggregation component 96 and a background level output component 98 that can operate through trilinear interpolation.
[0071] The background level determination component 90 outputs a background level 100, which is essentially the probability that a given pixel is a background pixel. In an exemplary embodiment, L is closer to 0 than the second pixel. * The first pixel that has a value (i.e., black on a scale of 0 to 255) is the a of the two pixels. * Value and b * Assuming the values are the same, receive a background level value lower than that of the second pixel.
[0072] In the illustrated embodiment, the background level 100 is an 8-bit output, meaning each pixel has a background level of 0 to 255 on a decimal scale, but this may alternatively be a scale of 0 to 1 or 0 to 100, or other non-binary scales with a range of possible values. The determination of the background level 100 is performed for each pixel, without referring to surrounding pixels, and its L * a * , and b * It is a function of the value.
[0073] In the illustrated embodiment, the aggregation component 96 facilitates the calculation by the background level determination component 90 by input value L * a * , b * This is concatenated into a single Lab channel value 101. The output is L * a * , and b * It is a 24-bit sequence composed of the bit sequences L. * a * , and b * If the values are (1,0,0,0,0,1,0,0), (0,0,0,0,0,1,0,1), and (0,0,0,0,0,0,0,0,1), the aggregation component outputs (1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,1) as the aggregated Lab value 101.
[0074] The background level output component 98 receives a Lab value 101 and outputs the background level 100 as its function. The background level output component 98 essentially functions as a lookup table (LUT). To reduce memory requirements, trilinear interpolation is used to calculate intermediate values between the stored sets of grid points. In this embodiment, the most important bits are used to access grid points within the 3D color gamut (forming eight points of a cube around the interpolation points corresponding to pixels). The number of important bits used may be chosen to provide a trade-off between image quality and computation time. Each grid point is associated with a corresponding background level within the LUT. Interpolation is then performed to determine the background level of the pixel. In the exemplary embodiment, trilinear interpolation is performed in the X, Y, Z color space, but other color spaces have been conceived. In one embodiment, the trilinear interpolation LUT contains 3,375 grid point integer values (i.e., 15 × 15 × 15 LUT), but smaller or larger LUTs are conceivable. If memory size is not a constraint, interpolation may be replaced with a larger LUT, which is understood to sometimes achieve slightly higher image quality.
[0075] Figure 4 graphically illustrates the operation of an exemplary background level output component 98. * a * b * The values are mapped to the corresponding CIE XYZ tristimulus values using their respective mapping LUTs 102, 103, and 104. The XYZ values defined on the orthogonal axes are P 111 , P 110 , P 101 , P 100 , P 011 , P 010 , P 001 , P 000 The input is a grid point LUT 105 that identifies the eight nearest grid points 106 shown. The trilinear interpolation kernel 107 calculates the Euclidean distance from pixel P to each grid point. As shown in the figure, this involves generating a path from the pixel to the grid point using three vertical X, Y, and Z axes, and then calculating the Euclidean distance (shortest path) from there. The background level output is then a function of the background level, for example, in the equation below, which is assigned to each grid point as the inverse function of the Euclidean distance.
number
[0076] The trilinear interpolation component 98 programs the input remapping LUTs 102, 103, 104 and the 3D grid points 106, and which L * a * b * This provides a flexible and robust method for determining whether triplet values or color gamut regions should be classified as "background" pixels.
[0077] The LUTs 102, 103, 104, and 105 (Figure 4) used by the background level output component 98 can be generated to optimize the image quality of a given type of image set being processed. In one embodiment, two or more LUTs 105 may be stored, and the user is provided with the option to select one of the stored LUTs based on personal preference. To calculate the background level in the LUT, the pixel neutral scale can be derived from equation (1) below,
number
[0078] An optional averaging component 92 (Figure 3) adjusts the background level 100 of a given pixel output by the background level determination component 90 to consider the background level 100 of a set of local (e.g., surrounding) pixels. In one embodiment, component 92 outputs an average background level 108 for each pixel of the image. This provides the ability to segment relatively low-frequency halftone screens / regions that would otherwise be classified simply as background. Considering the attributes of adjacent pixels can reduce abrupt segmentation switching artifacts that may otherwise occur in a pure point-process classification scheme. In one embodiment, the average background level is the average of 9 pixels that form a box with a given pixel as the center pixel, having 8 nearest surrounding pixels. In other embodiments, a larger number of surrounding pixels may be considered. In some embodiments, different weights may be applied to the surrounding pixels, for example, depending on their proximity to a given pixel. The averaging component 92 may be any preferred box filter, such as a 3x3, 5x5, or 7x7 box filter. The result of averaging is that the background level of a given pixel is shifted to approximate the background levels of the surrounding pixels.
[0079] In another embodiment, suitable for directing highlight mapping, the background level 100 or average background level 108 may be thresholded or used to access a lookup table, which generates a binary "yes" or "no" decision of whether a pixel is classified as background. Other methods for generating "yes / no" decisions for background pixels can also be conceived, as will be illustrated in more detail with reference to Figure 11.
[0080] The background adjustment kernel 84 (Figure 3) applies the original (or pre-processed) L to each of the image pixels 68 or 74. * a * , b *The values 70 and 72 are taken as input, and background adjustments are applied. In one embodiment, this adjustment is a function of the background level 100 (or 108 if calculated), so that pixels with a high background level of 100 (or 108) receive a greater adjustment than pixels with a relatively low background level of 100 (or 108). The adjustment range and direction of adjustment in the color space are also a function of the background adjustment selection 42 input from the background adjustment selector 44 and / or the detected background color 75. In another embodiment, the adjustment range and direction of adjustment in the color space are primarily a function of the background adjustment selection 42 for those pixels classified as background, input from the background adjustment selector 44 and / or the detected background color 75.
[0081] In one embodiment (Figure 3), user input 42 includes one or more of the following: area / text selection 110, background highlight color selection 112, mode selection 114, and global adjustment factor (GAF) selection 116. The area / text selection 110 identifies the background area that the user wants to be processed and / or texted within the background area to be highlighted. The background highlight color selection 112 identifies the color to be used for the highlight. The mode selection 114 identifies one of several highlight modes (e.g., white point, grayscale, or direct mapping to background pixels of the background area or the entire image). The global adjustment factor (GAF) selection 116 identifies a global adjustment factor used in each mode (which may be 0 or 1 by default). The GAF is applied uniformly to each pixel being adjusted and is therefore independent of the pixel's luminance and chrominance values.
[0082] The background adjustment kernel 94 may have multiple operating modes, such as two, three, or more modes, which can be specified by the mode selection 114. In the first of these modes, referred to as white point mapping, any background pixel is set to "pure white" (i.e., L each). * a * b *The range driven towards (255, 128, 128) is based on the (average) background level 108 of the pixel in question and is in contrast to being fully labeled / classified as "background" versus "non-background". In a second mode called grayscale highlight mapping, rather than background pixels being driven towards "pure white" as in white point mapping, background pixels are driven towards a user-selectable color value that can be specified by a background highlight selection 112. The selected color can be a color value similar to the actual background color, for example, somewhat pink for a pink background or a completely different color such as yellow. In both the first and second modes, the new pixel color can also be a function of a global adjustment factor 116, i.e., a factor that is uniformly applied to the specified background pixels. A single mode can combine white point mapping and grayscale mapping modes, with the selected highlight color being chosen from white and other colors. In a third mode called direct highlight mapping, the specified background pixels are replaced with a color that is a function of the color value 112 selected by the user or the color value selected by the user and the global adjustment factor 116.
[0083] The background adjustment selector 44 can enable a customer to completely suppress any background level(s) on any document to be printed on a wide range of colored paper stocks using an accurate page background detection component 54. Similarly, the customer can decide to retain a portion of the background color of the document, although the saturation is reduced. This feature can also be combined with "economy print" and / or "draft mode" to reduce the amount of toner deposited on the document printed for any given copy job.
[0084] Figure 5 shows the white point mapping mode, with arrows 120, 122, 124 showing the range in which three exemplary pixels represented by Pixel A , Pixel B , and Pixel C move towards pure white. Pixel A is a * b* The component is L * is shifted more than Pixel because it is closer to the neutral axis. Similarly, Pixel B and Pixel C is shifted more. Similarly, Pixel B is a * b * The component is L * is adjusted more towards pure white than Pixel because it is closer to the neutral axis. L C In addition to the movement closer to the L axis, the a * b * values of the pixels are also shifted more than Pixel * and towards the neutral value (128, 128). A is Pixel B and Pixel C and shifted towards the neutral value (128, 128).
[0085] The L * a * b * background (neutral) region 126 of the color gamut is defined and generated by appropriately programming the trilinear interpolation lattice points and the input remapping LUT, and L * a * b * includes all regions of the domain to be classified as background. The remaining part of the color gamut is considered to be the foreground. The perimeter 128 of the background region defines the boundary between the neutral background pixels and the foreground image pixels. Pixels whose values are on or within the boundary 128 are candidates for adjustment (i.e., they can be adjusted, but it is not mandatory, while pixels outside the boundary do not receive adjustment). In this example, the background region 126 of the color gamut is circular and L * is in the brighter region of the axis a * b * is centered on the neutral axis. This is suitable for most documents printed on white paper.
[0086] However, for a copy printed on yellow paper stock, for example, the background region is yellow L * a * b *The area(s) can be contained and programmed, and further adjustments to these (yellow background) pixels can be achieved using the same variable processing method, for example, as shown in Figure 6. The degree of background adjustment can thus be adjusted based on customer preference and / or other factors (such as reducing toner usage). For example, in a copy of highly colored "yellow paper," the background may be suppressed to achieve a much brighter yellow while retaining at least some of the background content of the original print. Alternatively, the yellow background area may be removed while still maintaining the integrity of the print content. The "pure white" L used to derive the adjustment values * a * b * By providing the ability to change / program values, similar but different background adjustment effects can be achieved. For example, to create a light pink background from a white background, the detected L * a * b * (Pink) Value 75 or selected L * a * b * Pixel adjustment values can be created based on the (pink) value 112. Figure 6 shows the grayscale highlight mapping mode, where arrows 130, 132, and 134 indicate the conversion of pixels in the neutral background area to their corresponding R, G, and B components, as well as the automatic correction of the pink and yellow pixels in the exemplary pink and yellow portions of the color gamut, 136 and 138.
[0087] Figure 7 shows the direct highlight mapping mode, where arrows 140, 142, and 144 indicate the modification of pixels in the neutral background region to their corresponding R, G, and B components, as well as the modification of those pixels to exemplary pink and yellow portions of the color gamut based on a user-selected global adjustment factor (GAF). In the illustrated embodiment, the user can select a “pink” GAF in the range of 0 to 1 with respect to the background color, and a “yellow” GAF in the range of 0 to 1 with respect to the background color, where the background color is detected as having a color value within a predetermined range of “pink” color 75 and / or falls within the “yellow” range of background values. A GAF of 0, on average, retains more background color than a GAF closer to 1.
[0088] Referring here to Figure 8, an exemplary background adjustment selector 44 is shown. The user can use the “Select Background Color” button or icon 150 to select a background color. Window 152 opens to provide a color wheel or other color selector. The current (detected) background color 75 may be displayed in window 152, allowing the user to select the same color or change it to a new color 112. If the user does not select a background color 112, “Pure White” or the detected background color 75 may be selected by default.
[0089] A second icon or button 154 provides a “highlight area selection” function. This function can be used in combination with the background color selection function 150. When button 154 is selected, a scan 156 of the page to be printed may be displayed in window 152, allowing the user to draw a bounding box 158 or otherwise define it, as shown in Figure 9. The bounding box is shown as a rectangular bounding box, but other regular or freeform bounding boxes are also conceivable. Background pixels within the bounding box 158 are replaced with or driven toward the selected background color 112, while background pixels outside the bounding box are driven toward (or toward) pure white in this example. Window 152 can also display a simulated scan 160 (approximate) of how the page will look when the modifications are made. Figure 9 is shown in grayscale, but for the sake of clarity, please understand that region 162 of the simulated scan 160 (corresponding to the bounding box 158) appears within window 152 with, for example, a yellow background color, while the word "quality" (without background) has the same color as scan 156. Similarly, in region 164, pixels identified as background are shown as "white," while the word "quality" has the same color as scan 156.
[0090] A third icon or button 166 (Figure 8) allows the user to select text to be highlighted. A window 152 (Figure 10) can be opened when this function is activated, which allows the user to type the string to be highlighted, for example, the word "quality" in the text input box 168. The scan 16 is then OCR processed to identify instances of the selected string in the text. A simulated scan 170 with the identified instance 171 highlighted in the user-selected color 112 may be displayed in the window. This highlight may take the form of a rectangle of colored pixels densely surrounding the instance 171. Alternatively or additionally, the pixels of the instance 171 itself may be colored based on the selected color 112.
[0091] A fourth icon or button 172 (Figure 8) provides a GAF selection function, which controls the range to which background pixels are driven toward the background highlight color 112. A higher GAF value results in a given background pixel being driven more toward the selected background highlight color (or pure white) than when a lower GAF value is selected. The user may be presented with a slider or other input mechanism for selecting the GAF. A simulated scan similar to that shown in Figure 9 may be presented in a window 152 that visualizes the effect of changing the GAF.
[0092] A fifth icon or button 174 provides a "page type selector" function that allows the user to enter different commands for different pages. For example, the user can choose to process pages with a "white" background, as identified by the page background detection component 54, different from pages with a "pink" or "yellow" background.
[0093] To be understood, various functions of functions 150, 154, 166, 172, and 174 can be combined.
[0094] Referring to Figure 11, a functional block diagram of one embodiment of the background adjustment kernel 84 in Figure 3 is shown. The background adjustment kernel 84 receives incoming L * a * b * Image 72 is processed and background adjustment image pixels 76 are output. The illustrated kernel 84 includes a white point mapping component 180, a grayscale mapping component 182, a direct mapping component 184, a background adjustment factor (BAF) calculation component 186, a highlight / region identifier 188, a mixed component 190, and a background sweep function component 192. However, it should be understood that the background adjustment kernel 84 may work with fewer, more, or different components.
[0095] The optional white point mapping component 180 adjusts the white point background adjustment pixel (WBA L) based on the input value 72 of the background pixel. * a * , and b * ) maps to 196. This can be done using the method of the aforementioned patent application, U.S. Patent Application Publication No. 16 / 830,479 or No. 16 / 830,419. Briefly, this method involves adjusting each pixel as a function of the probability that it is a background pixel, as represented by the background adjustment coefficient 198 output by the BAF calculation component 186. The adjustment may also be a function of the global adjustment coefficient (GAF) 116.
[0096] The BAF calculation component 186 uses the (average) background level (ABL) 108 calculated by the averaging component 92 (Figure 3), and the pixel brightness value L * 72 is received as input, and a background adjustment coefficient 198 for the pixel is calculated as a function thereof. In the illustrated embodiment, component 186 includes a background intensity LUT 200, a luminance intensity LUT 202, and an aggregation coefficient 204. The background intensity LUT 200 converts the average background level 108 to background intensity according to a first nonlinear function. The luminance intensity LUT 202 converts the luminance (L) of the pixel. * The values are converted to luminance intensity according to a second nonlinear function. In an exemplary embodiment, the luminance intensity LUT 200 and background intensity LUT 202 are each 256-element floating-point LUTs, as described, for example, in concurrently pending U.S. Patent Application Publication 16 / 830,419. A programmable aggregation factor 204 aggregates (e.g., multiplies) the luminance intensity and background intensity to generate a background adjustment factor 198. Figures 12 and 13 show examples of nonlinear functions that may be applied by LUTs 200 and 202. The background adjustment factor 198 is therefore a function of the average background level of the pixel, which is independent of the luminance and chrominance values of the surrounding pixels, and the L of the pixel which is independent of the luminance values of the surrounding pixels. * The aggregated luminance and chrominance (L) values of the pixels have been modified to reflect the actual values. * a * b *It is a function of the values. For direct mapping, BAF198 can be converted to binary 199 (or class) corresponding to whether or not the pixel is considered background.
[0097] Figure 12 shows an exemplary first nonlinear function that can be applied by the LUT200. For a first range of background levels R1, for example, 0 to 90 on a scale of 0 to 255, i.e., when the probability of a pixel being background is very low, the background intensity is set to 0 (or a very low value close to 0) on a scale of 0 to 1. For a second range of background levels R2, for example, 90 to 220 on a scale of 0 to 255, i.e., when the probability of a pixel being background is moderate, the background intensity increases with increasing background levels, for example, exponentially up to the maximum background intensity (1 in the exemplary embodiment). For example, all pixels in a third region R3 with an average background level of 220 to 255 are automatically assigned a maximum background intensity of 1. As can be understood, the three ranges are adjustable, and ranges less than three or greater than three may be used. In other embodiments, different functions may be applied.
[0098] Figure 13 shows an exemplary second nonlinear function that can be applied by LUT202. * For the first range of values R1, for example, on a scale of 0 to 255, if the value is between 0 and 120, i.e., the probability that the pixel is part of the background is very low, then the brightness intensity is set to 0 (or a very low value close to 0) on a scale of 0 to 1. * For the second range of values R2, for example, on a scale of 0 to 255, if it is 120 to 240, i.e., when the probability of the pixel being background is moderate, the luminance intensity is L * It increases with increasing values, for example, exponentially up to the maximum background intensity (1 in the exemplary embodiment). For example, L from 220 to 255 *All pixels in the third region R3 that have a value are automatically assigned a maximum luminance intensity of 1. As can be understood, the three ranges are adjustable. In other embodiments, different functions may be applied. Hereinafter, we assume that each of the 256-element LUTs for background intensity and luminance intensity has output floating-point values in the range of 0.0 to 1.0.
[0099] Therefore, the background adjustment coefficient 198 is a function of the background intensity and luminance intensity output by the corresponding LUTs 200 and 202. In one embodiment, the aggregation function 204 is a multiplication function such that the background adjustment coefficient 198 is the product of the background intensity and the luminance intensity. As a result, if at least one of the background intensity and luminance intensity is 0, the background adjustment coefficient 198 is 0, and if both the background intensity and luminance intensity are non-zero, the background adjustment coefficient 198 is greater than 0, with a maximum value of 1. The 256-element LUTs 200 and 202 of background intensity and luminance intensity have output floating-point values in the range of 0.0 to 1.0, which are multiplied together to form the composite background adjustment coefficient value 198.
[0100] The BAF calculation component 186 can use the BAF 198 to calculate the background class 208 of a pixel. Pixels with a BAF 198 greater than the threshold 194 (e.g., 0 or 0.1) receive a background class 208 of 1 (background), while pixels at or below the threshold 194 receive a background class of 0 (non-background).
[0101] As shown in Figure 14, when white point mapping is selected as the mode used for some or all of the image pixels, the input L for these pixels * a * , b * The value 72 can be processed by the white point mapping component 180. At 210, the maximum L of 255. * value
number
number
number
number
[0102] Similarly, the same background adjustment coefficient is applied to the adjusted chrominance value.
number
number
number
[0103] For example, if BAF is 0.9 and input L* a * , and b * If the values are (240, 123, 127), then the three background adjustment values of 196 become (254, 128, 128), which is close to pure white but not strictly pure white. If the BAF is low (less likely to be a background pixel), the adjustment will be less.
[0104] In the exemplary embodiment, the difference value ΔL * Δa * , and Δb * This is determined as the Cartesian distance to pure white (255, 128, 128), but a different point in the color gamut may be selected.
[0105] As a result, if the calculated background intensity and luminance intensity are sufficiently high (based on the LUT profile), the pixel's composite white point background adjustment value (multiple values possible) 196 will be close to or exactly equal to "1.0", which corresponds to the maximum delta value for each L * a * b * It is applied to the constituent elements, thereby forcing the pixels to a pure white value. If a pixel lies outside or outside the "background" region so that the pixel is defined and derived within a programmable three-line grid point table, the pixel's composite background adjustment value becomes equal to "0.0", which is the input L that has not been modified for output. * a * b * This effectively allows the pixel values to pass through. On the other hand, if a pixel is close to or within the boundary between "background" and "non-background," the composite background adjustment range changes between 0.0 and 1.0, thereby adjusting the pixel's L based on the "neutrality" of the input pixel. * a * b * Adjust the value. In practice, this neutralizes pixels classified as background and avoids and minimizes the abrupt switching artifact that is traditionally a problem in threshold-based segmentation algorithms. * a * b * The value is dynamically adjusted toward pure white.
[0106] Referring to Figure 15, one embodiment of the direct mapping component 184 of Figure 11 is shown. The direct mapping component 184 is
number
number
number
[0107] The direct mapping component 184 applies the following direct highlight mapping formula to calculate the HBA value 230 for the background pixels (pixels with background class 199 corresponding to "background"),
number
[0108] Therefore, for example, if the user selects {Lab}_{highlight\}112 and 0.5 GAF116, L 83, 24, 4) * a * b * If you select the pink color which has a value, the output value will be calculated as follows:
number
[0109] Therefore, the output Lab HBA 230 is (rounded to the nearest integer) (169, 76, 66).
[0110] Figure 15 shows how this can be achieved in simplified steps. For example, in 240, selected
number
number
number
number
number
number
[0111] Referring to Figure 16, one embodiment of the grayscale mapping component 182 of Figure 11 is shown. The grayscale mapping component 182 takes as input:
number
[0112] The grayscale mapping component 182 employs the following grayscale highlight mapping formula for each color channel:
number
[0113] Equation (6) is therefore identical to that for direct highlight mapping components, except that each pixel is associated with the respective BAF198 used in the calculation. For example, if the same user has selected pink (83, 24, 4) and GAF(0.5) as described above, and assumes that the pixels have a high probability of being the background (e.g., BAF of 0.9), then the equation becomes as follows:
number
[0114] Therefore, the output Lab HBA 230 becomes (160, 71, 60) (the value is rounded to the nearest integer). In contrast, if the probability that a pixel is a background pixel (e.g., BAF of 0.1) is low, the output Lab HBA 230 becomes (92, 29, 10). Therefore, in the latter case, the pixel is driven only slightly toward the selected color at this stage, i.e., it retains most or all of its original color, or is driven only slightly, so that it is not considered background. Pixels that do not exceed a pre-selected threshold BAF (e.g., 0) are not adjusted at this stage.
[0115] To make it clear, the following set of formulas can be used for the direct method and the grayscale method, and they are:
number
number
number
[0116] Unlike white dot mapping, these formulas are based on input L * a * , and b * Please note that values are not used.
[0117] Returning to Figure 11, the highlight region identifier 188 determines which pixels should be modified based on the selected region 158 or text 162, and outputs a corresponding pixel class 250 for each pixel based on the selection. The classes may include white point mapping, grayscale highlight mapping, and direct highlight mapping. The mixed component 190 receives the pixel class 250 and adjusts the (L) of each pixel based on that class. * a * b * ) A suitable component 180, 182, or 184 is called for a value of 196 or 230. In one embodiment, if BAF198 is greater than threshold 194 (e.g., 0) and the pixel is within the highlight area 158 or selected text 162, the mixed component is adjusted for the highlight background.
number
number
[0118] The arbitrarily selected background sweep function 192 is adjusted L * The value is
number
number
number
number
[0119] The sweep threshold 254 may be programmable by the user, for example. For example, the user may be able to select between two or more values for the sweep threshold.
number
number
[0120] The adjusted values for each pixel, which have been selectively modified by the sweep function 192, are output from the background adjustment component 84, as shown in Figure 3, 76, and input to the post-processing component(s) 58, if present.
[0121] In an exemplary embodiment, all pixels of an image are processed by the background adjustment component 56. However, it is also intended that such processing may be limited to pixels in one or more regions of an image that together occupy less of the entire image than the entire image, such as the image boundary region or the text region of the image. In one embodiment, identifying candidate background regions for processing by the background adjustment component 56 is performed by a page background detection component 54 upstream of the background adjustment component.
[0122] Figure 17 shows an image processing method that can be performed with the device shown in Figure 1. The method starts at S100.
[0123] In S102, parameters for the adjustment unit are provided. This may include learning and / or setting parameters for the LUT (or other preferred data structure generally referred to as a LUT) and other parameters in the parameter learning component 64, as will be further described below.
[0124] In S104, one or more original images 16, such as scanned images of hard copy documents, may be received by the input device 36 and stored in the memory 30.
[0125] In S106, preparations are made for the user to input background adjustment selections 42 via the background adjustment selector (GUI) 44. These may include one or more of the following: selected highlight color 112, selected mapping mode 114, selected areas 158 and / or text 162 to be highlighted, global adjustment coefficient (GAF) 116, aBAF threshold 194, background sweep threshold 254, selected LUTs 200, 202, pages to be processed differently, etc. As can be understood, some of these selections may be pre-set for a detected background that is pink, for example, and a pink highlight color 112 will be automatically selected.
[0126] In S108, each original image 16 is converted to a color space suitable for processing by the first conversion component 50.
[0127] In S110, each converted image 70 can be preprocessed by one or more preprocessing operations using the component 52 to generate a preprocessed digital image 72.
[0128] In S112, the background color 75 of the page is identified by component 54, for example, from the boundaries of the copied page or the boundaries of other areas that are likely to be the background. At this stage, page images with similar background colors can be identified by component 54. The background color 75 may be the average of the colors of pixels in the predicted background area or other functions. This step may be performed on the original image 16, the converted image 70, or the preprocessed image 72. The background color may be displayed to the user, for example, via the user interface 44, and / or used to define a background color 150 selected in an automated system / mode.
[0129] In S114, background adjustment is performed on the page image(s) that have been optionally preprocessed by component 56 based on user selection, and also optionally on the background color detected in S112. Further details of the background adjustment step are described below with reference to Figure 18.
[0130] In S116, the background adjustment image can be post-processed by one or more post-processing operations using the component 58.
[0131] In S118, the background-adjusted and optionally post-processed image is converted by component 60 into an output image in an output device color space such as CMYK (for printers) or RGB (for color monitors).
[0132] In S120, the output image is output by component 62.
[0133] In S122, the output image may be rendered in hard copy format by printing. Alternatively, or additionally, in S124, the output image may be stored in memory, for example, to be viewed later on a screen or for subsequent processing.
[0134] This procedure terminates in S126.
[0135] Referring to Figure 18, a flowchart is shown that summarizes the background adjustment process in S114 of Figure 17.
[0136] In S200, the received user selection 42 is used by the component 188 to identify the highlight color 112 selected by the user (or automatically selected) if it exists (by default, pure white or the detected background color).
[0137] In S202, when the user selects a region or text to be highlighted, the corresponding region / text is identified.
[0138] In S204, if the user selects a mapping method, a suitable mapping component 180, 182, or 184 is selected for each pixel.
[0139] In S206, if each pixel is identified as text to be highlighted, the method proceeds to S214; otherwise, the method proceeds to S208.
[0140] In S208, BAF198 is calculated for each remaining pixel (or, if selected, only for pixels in the highlight region), as explained with respect to Figure 11. Specifically, background intensity is calculated for each pixel based on its (average) background level. Brightness intensity is also calculated for each pixel based on its brightness value. The two values are aggregated (e.g., multiplied) to calculate the BAF.
[0141] In S210, if BAF exceeds the BAF threshold of 194, the method proceeds to S214; otherwise, it proceeds to S212.
[0142] In S212, each pixel retains its input color as its output color.
[0143] In S214, the selected mapping method is applied to the other pixels. The mixed component can invoke a suitable mapping component for each pixel. Each pixel is processed according to its mapping class to an adjustment value 196 or 230 generated by the identified mapping component, as described above for Figures 11 and 14-16.
[0144] If the user selects text highlighting, this can, by default, become the background pixels surrounding the text that receive white point mapping, while the highlighted pixels receive direct highlight mapping.
[0145] If the user selects grayscale highlight mapping for the entire image, this may result in all pixels being classified as background pixels in the image, with pixel colors adjusted according to formula (6) based on the selected highlight color and GAF.
[0146] If the user selects grayscale highlight mapping for a specific area (smaller than the entire image), this may result in all pixels within the selected area being classified as background pixels with pixel colors adjusted according to formula (6), while pixels outside that area will either remain unadjusted or undergo white point adjustment.
[0147] If the user chooses to directly apply highlight mapping to the entire image, this may result in all pixels being classified as background pixels in the image, with pixel colors adjusted according to formula (5).
[0148] If the user selects direct highlight mapping for only a portion of the image (less than the entire image), this may result in all pixels within that region of the image being classified as background pixels with pixel colors adjusted according to formula (5). Pixels outside the region may either remain unadjusted or undergo white point adjustment.
[0149] If the user selects white point mapping, this may result in all pixels being classified as background pixels in an image with pixel colors adjusted according to formulas (2-4).
[0150] In S216, a background sweep threshold (or multiple thresholds) 254 may be applied to the adjustment value 196 or 230 for each pixel undergoing adjustment mapping. When the threshold(s) 254 are met, the pixel is replaced with pure white (in the case of white point mapping) or a selected color (in the case of direct highlight mapping or grayscale highlight mapping).
[0151] In S218, the background-adjusted image pixels are outputs for optional post-processing and conversion to the rendering color space.
[0152] The method illustrated in FIGS. 17 and 18 can be implemented in a computer program product executable on a computer. The computer program product can include a non - transitory computer - readable recording medium on which a control program is recorded (stored), such as a disk, a hard drive, etc. General forms of non - transitory computer - readable media include, for example, floppy disks, flexible disks, hard disks, magnetic tapes, or any other magnetic storage media, CD - ROMs, DVDs, or any other optical media, RAMs, PROMs, EPROMs, FLASH - EPROMs, or other memory chips or cartridges, or any other tangible media that can be read from and used by a computer internally. The computer program product can be integrated with the image adjustment unit 12 (e.g., an internal hard drive of the RAM), or can be separate (e.g., an external hard drive operably connected to the unit 12), or can be separate and accessible via a digital data network such as a local area network (LAN) or the Internet (e.g., as a Redundant Array of Inexpensive / Independent disks (RAID) or other network server storage indirectly accessed by the unit 12 via the digital network).
[0153] Alternatively, the method can be implemented in a transient medium such as a transmissible carrier wave, where the control program is embodied as a data signal using a transmission medium such as sound waves or light waves, such as those generated during radio waves and infrared data communication.
[0154] Exemplary methods may be implemented on one or more general-purpose computers, dedicated computers, programmed microprocessors or microcontrollers, and peripheral integrated circuit elements, ASICs or other integrated circuits, digital signal processors, discrete element circuits such as wired electronic circuits or logic circuits, PLDs, PLAs, FPGAs, graphics card CPUs (GPUs), or programmable logic devices such as PALs. Generally, any device capable of implementing a finite state machine that can execute the flowcharts shown in FIGS. 17 and / or 18 in sequence can be used to implement a method for image adjustment. As will be appreciated, all steps of the method may be performed by a computer, but in some embodiments, one or more of the steps may be performed at least partially manually. Also as will be appreciated, all steps of the present method need not proceed in the order described, and fewer, more, or different steps may be performed.
[0155] Further aspects of the system and method are described herein.
[0156] As discussed above, various LUTs and adjustment parameters are used in the exemplary system, which can be programmed and adjusted to optimize the results for the particular printer, paper type, and / or colorant used.
[0157] Although not intended to limit the scope of the exemplary embodiments, the following examples illustrate the use of the system and method.
Example
[0158] The image adjustment unit 10 is instantiated as either a CPU or GPU resource within the software image path(s), thereby optimizing the overall image processing throughput rate or providing a "balancing" mechanism.
[0159] The software image path used to evaluate this method includes a background adjustment component 56, a first transformation component 50, a second transformation component 60, and various pre-processing components 52 and post-processing components 58. These include a symmetric filter, as well as components for cropping, scaling, padding, neutral (gray) edge enhancement, error diffusion, and compression. First transformation (RGB to L * a * b * ) is performed by a 3x3 color space transformation component. Second transformation (L * a * b * The transformation (from CMYK) is performed by trilinear interpolation. In the background adjustment component 56, the trilinear interpolation component 98 and the (3x3, 5x5, or 7x7) box filter 92 are compiled using an Intel precompiled GPU kernel. The background adjustment kernel 84 is generated using the OpenCL language with vectorized SIMD intrinsic functions (compiled on an ApolloLake™ GPU). The first transformation, neutral edge enhancement, and second transformation are performed using a GPU kernel (Intel precompiled GPU). Each kernel is multithreaded and processes the image tile by tile to accelerate the overall visualization time. The three input remapping LUTs 102, 103, 104, luminance intensity LUT 202, and background intensity LUT 200 (as shown in Figures 4 and 11) are 256-element floating-point LUTs, respectively.
[0160] Both highlight mapping methods offer unique rendering characteristics due to the accuracy with which the background kernel can segment and detect what is defined and measured as "background." While a simple direct highlight mapping method provides consistently uniform background CMYK marking values, when processing an image via a grayscale highlight mapping method, pixel gray multilevel (8bpp) information may be used to match the natural paper variations present in the original scanned document.
[0161] Figure 19 shows the L generated via a software model to illustrate the direct highlight mapping method under various levels of Global Adjustment Factors (GAFs). * a * b * An image snippet is shown. The original document is a scanned text document originally printed on yellow paper, processed using a global adjustment factor (GAF) ranging from 0.00 to 1.00 in increments of 0.20, via a global background pink highlight mapping across the entire document. Although shown in black and white for ease of illustration, the background is actually a different level of pink depending on the selected GAF. In the image snippet, the background is properly detected and corrected without generating any accompanying artifacts within the foreground (text) area. This is primarily due to leveraging the full capability of the 3D trilinear interpolation kernel to precisely segment the color gamut to detect and correct areas classified as background.
[0162] It will be understood that variations of those disclosed above, as well as other features and functions, or substitutes thereof, may be combined into other different systems or applications. Various substitutes, modifications, variations, or improvements therein that are not currently anticipated or anticipated may be made thereafter by those skilled in the art, and these are also intended to be covered by the following claims.
Claims
1. 1. An image processing device, comprising: an input device for receiving image adjustment selections from an associated user interface device; A processor; A memory storing processor-executable instructions that, when executed by the processor, a user interface generator that generates a background adjustment selector for presentation to a user on the user interface device; A background adjustment component, comprising: a background adjustment factor calculated for each pixel, the background adjustment factor being a function of the pixel's background intensity and the pixel's luminance intensity; and a background adjustment component that calculates an adjusted color value for each of a plurality of pixels of an input image as a function of at least one of: and an image output component that outputs an output image derived from the adjusted color values for the plurality of pixels.
2. The image processing device of claim 1 , wherein the background intensity of each of the plurality of pixels is derived from a luminance value of the pixel.
3. 3. The image processing device of claim 2, wherein the background intensity of each of the plurality of pixels is derived from an aggregate background level derived from a luminance value of the pixel and a set of luminance values of local pixels.
4. The image processing device of claim 3 , wherein the background intensity for each of the plurality of pixels is calculated as a non-linear function of the aggregate background level.
5. 2. The image processing device of claim 1, wherein the luminance intensity of each of the plurality of pixels is calculated as a non-linear function of the luminance value of the pixel.
6. The image processing device of claim 1, wherein the color values include luminance values and chrominance values, and for each of the plurality of pixels, the background adjustment component calculates an adjusted luminance value and an adjusted chrominance value as a function of the background adjustment coefficient calculated for the respective pixel.
7. The image processing device of claim 1, wherein the color values include luminance values and chrominance values, and for each of the plurality of pixels, the background adjustment component calculates an adjusted luminance value and an adjusted chrominance value as a function of the background class calculated for the respective pixel.
8. The image processing device of claim 1 , wherein for each of the plurality of pixels, the background adjustment component calculates the background adjustment factor as a product of the background intensity and a luminance intensity of the pixel.
9. The selection includes a selected highlight color, and for each of at least a portion of the plurality of pixels, the background adjustment component adjusts the adjusted luminance value [0010] and adjusted chrominance values [0025] of, [0030] or calculate according to that function, During the ceremony, B is the background adjustment function calculated for each pixel and is between 0 and 1, or B is the background class selected from 0 to 1; [0045] are the luminance and chrominance values of the selected highlight color, [0050] are the luminance and chrominance values of white, 2. The image processing device of claim 1, wherein GAF is a global adjustment factor that is independent of luminance and chrominance values of the pixel.
10. The image processing device of claim 9 , wherein the image adjustment selection comprises the global adjustment factor.
11. The image processing device of claim 1 , wherein the image adjustment selection includes a highlight region, and the plurality of pixels form the highlight region.
12. 2. The image processing device of claim 1, wherein the image adjustment selections include a text highlight color and a character string to be highlighted, and the memory further includes processor-executable instructions for identifying an occurrence of the character string within the image as a function of the text highlight color.
13. 2. The image processing device of claim 1, wherein for each of the plurality of pixels, the background adjustment component determines whether the adjusted luminance value exceeds a sweep threshold, and if the adjusted luminance value exceeds the sweep threshold, the adjusted luminance value and adjusted chrominance value of the pixel are set to the selected color value, and otherwise the adjusted luminance value and adjusted chrominance value of the pixel are left unchanged.
14. The memory, a first transformation component that transforms the plurality of pixels of the input image from an input color space to a luminance-chrominance color space; 2. The image processing device of claim 1, further storing processor-executable instructions to cause the device to perform a second transformation component that transforms the adjusted luminance and chrominance values of the plurality of pixels to an output color space.
15. The memory, a pre-processing component that performs pre-processing of the plurality of pixels in the luminance-chrominance color space prior to background adjustment; 15. The image processing device of claim 14, further storing processor executable instructions to cause said device to implement: a post-processing component that performs post-processing of said plurality of pixels in said luminance-chrominance color space after said background adjustment.
16. The image processing device of claim 1 , further comprising an image output device for rendering the output image.
17. The image output device includes: a printer for rendering the output image on a print medium; and a display device for displaying the output image on a display screen.
18. 1. An image processing method, comprising: Receiving an input image comprising a plurality of pixels; For each of the plurality of pixels, calculating a background intensity of said pixel; calculating the luminance intensity of said pixel; calculating a background adjustment factor that is a function of the background intensity and the luminance intensity of the pixel; calculating an adjusted luminance value and an adjusted chrominance value for the pixel as a function of a user selected highlight color and the background adjustment factor for the pixel; and outputting an output image derived from the adjusted luminance values and the adjusted chrominance values for the plurality of pixels.
19. the background intensity for each of the plurality of pixels is calculated as a non-linear function of the aggregation of the luminance value of the pixel and a set of local pixel luminance values; and / or 20. The image processing method of claim 18, wherein the luminance intensity of each of the plurality of pixels is calculated as a non-linear function of the luminance value of the pixel.
20. 1. An image processing device, comprising: an image adjustment unit receiving an input image, a selected highlight color, and a selected global adjustment factor; A processor and a memory storing processor-executable instructions, the processor-executable instructions, when executed by the processor, a background adjustment component for each of a plurality of pixels of the input image, Calculate the background intensity of said pixel; Calculating the luminance intensity of said pixel; calculating a background adjustment factor that is a function of the background intensity and the luminance intensity of the pixel; an image adjustment unit for calculating adjusted luminance and chrominance values of the pixels as a function of the background, the selected highlight color, and the selected global adjustment factor; an image output device that receives an output image derived from the adjusted luminance and chrominance values of the plurality of pixels and renders the output image by printing.
