CN111831238B - Image processing method, image processing apparatus, image forming apparatus, and storage medium - Google Patents

Image processing method, image processing apparatus, image forming apparatus, and storage medium Download PDF

Info

Publication number
CN111831238B
CN111831238B CN202010711324.1A CN202010711324A CN111831238B CN 111831238 B CN111831238 B CN 111831238B CN 202010711324 A CN202010711324 A CN 202010711324A CN 111831238 B CN111831238 B CN 111831238B
Authority
CN
China
Prior art keywords
image data
adjustment
data segment
image
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010711324.1A
Other languages
Chinese (zh)
Other versions
CN111831238A (en
Inventor
吴杰宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Pantum Electronics Co Ltd
Original Assignee
Zhuhai Pantum Electronics Co Ltd
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 Zhuhai Pantum Electronics Co Ltd filed Critical Zhuhai Pantum Electronics Co Ltd
Priority to CN202010711324.1A priority Critical patent/CN111831238B/en
Publication of CN111831238A publication Critical patent/CN111831238A/en
Application granted granted Critical
Publication of CN111831238B publication Critical patent/CN111831238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1208Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1242Image or content composition onto a page
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The embodiment of the application provides an image processing method, an image processing device, an image forming device and a storage medium, wherein the method is applied to the image forming device and comprises the following steps: acquiring an image to be processed, wherein the image to be processed comprises N lines of image data, N is more than or equal to 1, and each line of image data comprises at least two pixel points; dividing each line of image data into set segments to obtain each image data segment; for each image data segment, determining the adjustment parameters of each pixel point of the image data segment according to the number of segments of the image data segment; and adjusting the duty ratio corresponding to the pixel points based on the adjustment parameters, so as to print the image to be processed according to the pulse waves formed by the duty ratios corresponding to the adjusted pixel points. Before printing, duty ratio adjustment is carried out on the image to be printed, so that the phenomenon that the printing result has concentration difference is effectively avoided, and the printing quality is improved.

Description

Image processing method, image processing apparatus, image forming apparatus, and storage medium
Technical Field
The present invention relates to the field of image forming apparatuses, and more particularly, to an image processing method, an image processing apparatus, an image forming apparatus, and a storage medium.
Background
With the continuous development of science and technology, image forming apparatuses have become an indispensable part of people's daily life.
However, when the existing image forming apparatus prints a gray image, the linear velocity of the scanning laser is inconsistent due to the structural characteristics of the internal laser scanning Unit (LASER SCANNING Unit, LSU), so that density differences occur in different areas of the printed image, the printing quality is poor, and bad experience is brought to users.
Disclosure of Invention
The embodiment of the application provides an image processing method, an image processing device, an image forming device and a storage medium, wherein the image is preprocessed before printing, so that the problem of density difference of printed images is solved, and the printing quality is improved.
In a first aspect, an embodiment of the present application provides an image processing method, which is applied to an image forming apparatus, including:
acquiring an image to be processed, wherein the image to be processed comprises N lines of image data, N is more than or equal to 1, and each line of image data comprises at least two pixel points; dividing each line of image data into set segments to obtain each image data segment; for each image data segment, determining an adjustment parameter of each pixel point of the image data segment according to the number of segments of the image data segment; and adjusting the duty ratio corresponding to the pixel points based on the adjustment parameters, and printing the image to be processed according to the pulse waves formed by the duty ratios corresponding to the adjusted pixel points.
Optionally, the determining, according to the number of segments where the image data segment is located, an adjustment parameter of each pixel point of the image data segment includes:
acquiring a pre-established corresponding relation between the adjusting parameters of the image forming device and the number of segments; and determining the adjustment parameters of each pixel point of the image data segment according to the segment number of the image data segment and the corresponding relation.
Optionally, the determining, according to the number of segments where the image data segment is located and the correspondence, an adjustment parameter of each pixel point of the image data segment includes:
Respectively determining adjustment parameters corresponding to a first pixel point and a second pixel point of the image data segmentation according to the number of segments where the image data segmentation is located and the corresponding relation; and determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points and the adjustment parameters corresponding to the second pixel points.
Optionally, the determining, according to the number of segments where the image data segment is located and the correspondence, an adjustment parameter of each pixel point of the image data segment includes:
Respectively determining adjustment parameters corresponding to a start pixel point and an end pixel point of the image data segment according to the number of segments where the image data segment is located and the corresponding relation, wherein the start pixel point is the first pixel point in the image data segment, and the end pixel point is the last pixel point in the image data segment; determining the adjustment parameters corresponding to each pixel point in the image data segment based on the adjustment parameters corresponding to the initial pixel point, the adjustment parameters corresponding to the end pixel point and the pixel point number of the image data segment
Optionally, the determining, based on the adjustment parameters corresponding to the first pixel point and the adjustment parameters corresponding to the second pixel point, the adjustment parameters corresponding to each pixel point in the image data segment includes:
Acquiring an adjustment parameter limit value of the image data segment; and determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points, the adjustment parameters corresponding to the second pixel points and the adjustment parameter limiting values.
Optionally, before acquiring the correspondence between the adjustment parameter and the number of segments previously established in the image forming apparatus, the method includes:
Obtaining standard pixel values of all pixel points of a printing test page and printing pixel values of all pixel points of the printing test page printed by the image forming device; for each image data segment, determining an adjustment parameter of each pixel point of the image data segment according to the difference value of the standard pixel value and the printing pixel value of each pixel point; and establishing a corresponding relation between the adjusting parameters of the image forming device and the segment numbers according to the segment numbers of the image data segments and the adjusting parameters of the image data segments.
Optionally, the dividing each line of image data into the set segments to obtain the respective image data segments includes:
Determining the segmentation number of each line of image data of the image to be processed according to the printing resolution of the image forming device and the model of printing paper; and dividing each line of image data into set segments according to the number of segments to acquire each image data segment.
Optionally, the determining, according to the number of segments where the image data segment is located, an adjustment parameter of each pixel point of the image data segment includes:
Determining an adjusting base of the image data segment according to the segment number of the image data segment; acquiring the number of pixels included in the image data segment; determining a unit adjustment amount of the image data segment according to the number of pixels of the image data segment, an adjustment base and an adjustment base of the next image data segment; and determining the adjustment parameters corresponding to each pixel point of the image data segment according to the adjustment base, the unit adjustment quantity and the positions of the pixel points.
Optionally, after determining the unit adjustment amount of the image data segment, the method further comprises:
Acquiring a minimum adjustment value of a duty ratio of a system-in-chip of the image forming apparatus; when the absolute value of the unit adjustment quantity is smaller than the minimum adjustment value, determining the grouping step length of the image data segment according to the ratio of the minimum adjustment value to the absolute value of the unit adjustment quantity; grouping the image data segments according to the grouping step length to obtain each pixel group; correspondingly, according to the adjustment base, the unit adjustment quantity and the positions of the pixel points, determining the adjustment parameters corresponding to each pixel point of the image data segment comprises the following steps: and determining the adjustment parameters corresponding to each pixel point in the pixel group according to the adjustment base, the minimum adjustment value and the position of the pixel group.
In a second aspect, an embodiment of the present application further provides an image processing apparatus, including:
The image processing device comprises a to-be-processed image acquisition module, a processing module and a processing module, wherein the to-be-processed image acquisition module is used for acquiring to-be-processed images, the to-be-processed images comprise N rows of image data, wherein N is more than or equal to 1, and each row of image data comprises at least two pixel points; the image segmentation module is used for dividing each line of image data into set segments so as to acquire each image data segment; the adjustment parameter determining module is used for determining adjustment parameters of all pixel points of each image data segment according to the number of segments of the image data segment; and the duty ratio adjusting module is used for adjusting the duty ratio corresponding to the pixel points based on the adjusting parameters so as to print the image to be processed according to the pulse waves formed by the duty ratios corresponding to the adjusted pixel points.
Optionally, the adjustment parameter determining module includes:
A correspondence acquiring unit configured to acquire a correspondence between adjustment parameters and the number of segments previously established in the image forming apparatus; and the adjustment parameter determining unit is used for determining adjustment parameters of all pixel points of the image data segment according to the segment number of the image data segment and the corresponding relation.
Optionally, the adjustment parameter determining unit includes:
The pixel point parameter determining subunit is used for respectively determining adjustment parameters corresponding to a first pixel point and a second pixel point of the image data segment according to the segment number of the image data segment and the corresponding relation; and the adjustment parameter determination subunit is used for determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points and the adjustment parameters corresponding to the second pixel points.
Optionally, the adjustment parameter determining subunit is specifically configured to:
Acquiring an adjustment parameter limit value of the image data segment; respectively determining adjustment parameters corresponding to a first pixel point and a second pixel point of the image data segmentation according to the number of segments where the image data segmentation is located and the corresponding relation; and determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points, the adjustment parameters corresponding to the second pixel points and the adjustment parameter limiting values.
Optionally, the image processing apparatus further includes:
A test page pixel value acquisition module, configured to acquire a standard pixel value of each pixel point of a print test page and a print pixel value of each pixel point of the print test page printed by the image forming apparatus before acquiring a corresponding relationship between an adjustment parameter of the image forming apparatus and a segment number established in advance; the pixel point adjustment parameter determining module is used for determining adjustment parameters of all pixel points of each image data segment according to the difference value of the standard pixel value and the printing pixel value of each pixel point for each image data segment; and the corresponding relation establishing module is used for establishing the corresponding relation between the adjusting parameters of the image forming device and the segment numbers according to the segment numbers of the image data segments and the adjusting parameters of the image data segments.
Optionally, the image segmentation module includes:
A segmentation number determining unit configured to determine the segmentation number of each line of image data of the image to be processed according to a print resolution of the image forming apparatus and a model of printing paper; and the image segmentation unit is used for dividing each row of image data into set segments according to the segmentation number so as to acquire each image data segment.
Optionally, the adjustment parameter determining module includes:
An adjustment base determining unit, configured to determine an adjustment base of the image data segment according to a segment number where the image data segment is located; a pixel number obtaining unit, configured to obtain the number of pixels included in the image data segment; a unit adjustment amount determining unit configured to determine a unit adjustment amount of the image data segment according to the number of pixels of the image data segment, an adjustment base, and an adjustment base of a next image data segment; and the second adjustment parameter determining unit is used for determining adjustment parameters corresponding to each pixel point of the image data segment according to the adjustment base, the unit adjustment quantity and the positions of the pixel points.
Optionally, the image processing apparatus further includes:
A minimum adjustment value acquisition module configured to acquire a minimum adjustment value of a duty ratio of a system-in-chip of the image forming apparatus after determining a unit adjustment amount of the image data segment; a grouping step size determining module, configured to determine a grouping step size of the image data segment according to a ratio of the minimum adjustment value to the absolute value of the unit adjustment value when the absolute value of the unit adjustment value is smaller than the minimum adjustment value; a pixel subgroup acquiring module, configured to group the image data segments according to the grouping step length, so as to acquire each pixel subgroup; correspondingly, the second adjustment parameter determining unit is specifically configured to: and determining the adjustment parameters corresponding to each pixel point in the pixel group according to the adjustment base, the minimum adjustment value and the position of the pixel group.
In a third aspect, an embodiment of the present application further provides an image forming apparatus including: an optical scanning system, an imaging system, and an image processing system; wherein the image processing system is configured to perform the image processing method according to any embodiment of the present application, so as to generate an adjusted duty cycle of each pixel point; the laser scanning system is used for generating a laser beam and scanning an image to be processed according to the laser beam and the adjusted duty ratio so as to generate laser scanning data; the imaging system is used for printing and imaging the image to be processed according to the laser scanning data.
In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium having stored therein computer-executable instructions, which when executed by a processor, are configured to implement the image processing method according to any of the embodiments of the present application.
According to the image processing method, the device, the image forming device and the storage medium, before printing an image to be processed, each line of image data of the image data to be processed is segmented, for each segment of image data, the adjustment parameters of all pixel points of the segment are determined according to the number of segments where the image data are located, and the duty ratio of the corresponding pulse is adjusted according to the adjustment parameters, so that the image printing is performed according to the adjusted duty ratio, the image processing speed is high, the problem that the printing result has concentration difference is effectively solved, the printing quality is improved, and for each segment of image data, different adjustment parameters can be respectively set, and the flexibility of adjusting the image concentration is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is an application scenario diagram of an image processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of an image processing method according to an embodiment of the present invention;
FIG. 3 is a schematic illustration of print rendering density in the embodiment of FIG. 2 in accordance with the present application;
FIG. 4 is a flowchart of an image processing method according to another embodiment of the present application;
FIG. 5 is a flowchart of an image processing method according to another embodiment of the present application;
FIG. 6 is a flowchart illustrating step S507 in the embodiment of FIG. 5 according to the present application;
Fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural view of an image forming apparatus according to an embodiment of the present invention.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The following explains the application scenario of the embodiment of the present application:
Fig. 1 is an application scenario diagram of an image processing method according to an embodiment of the present application, where, as shown in fig. 1, the image processing method according to an embodiment of the present application may be run on an image forming apparatus, such as a printer, a copier, a scanner, or other electronic devices connected to the image forming apparatus, such as a computer, a server, or the like. The client 110 transmits the image to be processed 111 and the print instruction 112 to the printer 120, and the printer 120 receives the image to be processed 111 and the print instruction 112 and prints the image to be processed 111 according to the print instruction 112.
Fig. 2 is a flowchart of an image processing method according to an embodiment of the present application, which is applied to an image forming apparatus, and as shown in fig. 2, the image processing method according to the embodiment includes the following steps:
step S201, a to-be-processed image is acquired.
The image to be processed comprises N lines of image data, wherein N is more than or equal to 1, and each line of image data comprises at least two pixel points. The image to be processed represents an image to be printed by the image forming apparatus, and may be a color image or a gray-scale image, or may be a word document or other print job. For the image forming apparatus, a file to be printed in a print job sent by a user is generally converted into image information recognizable by the image forming apparatus, and therefore the file to be printed is collectively referred to as a to-be-processed image.
Further, after acquiring the image to be processed, the method further comprises:
and carrying out image segmentation on the image to be processed to obtain the image to be processed which only comprises the preset area. Accordingly, the subsequent steps can be performed on the image to be processed only including the preset area, so that the data processing amount is reduced, and the image processing speed is improved.
The preset area represents an area to be adjusted or processed, and may be all or part of an image to be processed, for example, one or more designated rows of pixels, for example, the middle row or three rows, or a designated or default area. The position of the pixel point may be the position of the pixel point in the preset area, or the position of the pixel point in the image to be processed, and may be described in a coordinate form, for example, the position of the pixel point in the 5 th row and 20 th column of the preset area may be (5, 20).
Specifically, an area where a preset area of the image to be processed is located can be determined based on an image recognition algorithm, and then image segmentation is performed on the image to be processed according to the area where the preset area is located.
Step S202, dividing each line of image data into set segments to obtain each image data segment.
The setting section may be a fixed value, such as 5 sections, 10 sections, or other values, and may be determined according to structural characteristics of the image forming apparatus and gray value distribution of pixels of the image to be processed.
In particular, the image data of different lines may have the same segmentation or may be different. I.e. each line of image data of the image to be processed can be divided into image data segments of the same set segment. It is also possible that for each line of image data, it is divided into image data segments of its corresponding set segment.
Specifically, each line of image data of the image to be processed is divided into X segments on average, and the number of pixels of each line of image data is M, so that each image data segment comprises M/X pixels.
Specifically, the number of pixel points in each line of image data of the image to be processed can be determined according to the printing resolution of the image forming device and the model of the printing paper; according to the determined number of segments and the number of pixels in each line of image data, each line of image data may be divided into set segments to obtain each image data segment.
Wherein the print resolution includes a landscape resolution and a portrait resolution. The model of the printing paper or the specification of the printing paper, which is used to describe the size of the printing paper, may be A3, A4, A5, B4, B5 or other specifications.
Specifically, a correspondence between the print resolution, the type of the print paper, and the segmentation method may be established in advance, and then the segmentation method of the image data of the image forming apparatus may be determined according to the correspondence, the print resolution of the image forming apparatus, and the type of the print paper, and then each line of image data may be divided into setting segments to obtain each image data segment.
Specifically, the width and length of the printing paper can be obtained according to the model of the printing paper, the number of pixels included in each row of the image to be processed can be obtained according to the width and the horizontal resolution of the printing paper, the number of rows included in the image to be processed can be obtained according to the length and the vertical resolution of the printing paper, and then the number of pixels and the number of rows included in each row of the image to be processed can be obtained.
Further, a reserved frame of the image to be processed can be determined according to the model of the printing paper, and the number of pixel points of the image to be processed, which need to be subjected to parameter adjustment, is reduced according to the reserved frame; after the number of pixel points included in each row of the image to be processed, namely the number of columns of the pixel points, the segmentation mode of the image to be processed can be determined according to the corresponding relation between the number of columns preset by the image forming device and the segmentation mode, wherein the segmentation mode comprises the segmentation number and the number of the pixel points corresponding to each segment.
Specifically, the printing test page under various printing resolutions and various printing paper types can be printed for a plurality of times in advance, so that the number of segments of each line of image data of the printing test page corresponding to the type of each printing paper and the printing resolution is determined by comparing the pixel value of each pixel point of the printed printing test page with the standard pixel value of each pixel point corresponding to the printing test page, the corresponding relation among the printing resolution, the type of the printing paper and the number of segments is obtained, and then the number of segments of each line of image data of the image to be processed can be determined according to the printing resolution of the image forming device, the type of the printing paper and the corresponding relation.
Further, a row of pixel data of the printed test page can be randomly selected, curves of standard pixel values and pixel values after printing are drawn, intersection points of the two curves are used as segmentation nodes, and generally two intersection points, so that the row of pixels are divided into 3 large segments according to the 2 intersection points, and the 3 large segments are further divided according to printing requirements, specifically: for each large segment, the requirements can be met, the large segment is divided into different small segments, and the more the number of the segments is, the better the adjusting effect is.
Further, the number of pixel points corresponding to each segment may be the same or different.
Of course, the number of segments may also be user-defined or default to the system.
By way of example, assuming that each row of the image to be processed includes 1000 pixels, the image data segments are divided into 20 segments by column, each image data segment includes 50 pixels, and the number of pixels of each image data segment is equal to 50.
Step S203, for each image data segment, determining an adjustment parameter of each pixel point of the image data segment according to the number of segments where the image data segment is located.
The adjustment parameter may be an adjustment amount of a duty ratio of the pulse wave corresponding to the pixel point, and is generally described in a form of percentage.
Specifically, the adjustment parameter corresponding to each image data segment is related to the position of the segment where the adjustment parameter is located or the number of segments where the segment is located.
Optionally, the determining the adjustment parameter of each pixel point of the image data segment according to the number of segments where the image data segment is located includes:
acquiring a corresponding relation between the adjustment parameters of the image forming device and the number of segments, which is established in advance; and determining the adjustment parameters of each pixel point of the image data segment according to the segment number of the image data segment and the corresponding relation. Wherein the correspondence may be determined by counting differences between images printed by the image forming apparatus and expectations.
Specifically, the correspondence between the adjustment parameters and the number of segments may be established in combination with the structural characteristics of the image forming apparatus itself, such as the configuration of the laser scanning unit of the image forming apparatus.
Specifically, the adjustment parameters of the pixels of each image data segment can be determined through the corresponding relation, that is, the adjustment parameters of the pixels of all image data segments of the image to be processed are determined according to the corresponding relation.
Optionally, the determining, according to the number of segments where the image data segment is located and the correspondence, an adjustment parameter of each pixel point of the image data segment includes:
respectively determining adjustment parameters corresponding to a first pixel point and a second pixel point of the image data segmentation according to the number of segments where the image data segmentation is located and the corresponding relation; and determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points and the adjustment parameters corresponding to the second pixel points.
The first pixel point and the second pixel point are two different pixel points, and specifically, the adjustment parameters corresponding to each pixel point in the image data segment can be determined according to the adjustment parameters corresponding to the first pixel point and the second pixel point and the positions corresponding to the first pixel point and the second pixel point. The first pixel point and the second pixel point may be a start pixel point and an end pixel point, respectively. Wherein the start pixel is the first pixel in the image data segment, and the end pixel is the last pixel in the image data segment.
Further, the adjustment parameters of each pixel of the image data segment form an arithmetic progression, and assuming that the number of the first pixel is n 1, the adjustment parameter is a 1, the number of the second pixel is n 2, the adjustment parameter is a 2, and for the pixel with the number of n i, the expression of the adjustment parameter a i is:
Further, the corresponding relationship may only include an adjustment parameter and an adjustment expression of a set pixel point of the image data segment, so as to obtain an adjustment parameter of each pixel point of the image data segment according to the adjustment parameter and the adjustment expression of the set pixel point. The set pixel points at least include two pixel points in the image data segment, specifically, a start pixel point and an end pixel point, that is, a first pixel point and a last pixel point of the image data segment. The adjustment parameters of each pixel point can be an arithmetic progression, so that after the adjustment parameters of any two pixel points of the image data segment are determined, the adjustment parameters of each pixel point of the image data segment can be obtained.
Further, when the set pixel point includes the start pixel point, the corresponding relation may be only an adjustment parameter of the start pixel point of each image data segment or one pixel point of the pixel points at other designated positions, so that the adjustment parameters of each pixel point of the current image data segment may be determined according to the number of the pixel points of the current image data segment and the difference value of the adjustment parameters of 2 pixel points in the current image data segment.
For example, assuming that the correspondence is the adjustment parameters of the start pixel point and the end pixel point of each image data segment, the current image data segment includes 10 pixel points, the adjustment parameters of the start pixel point are 30%, and the adjustment parameters of the end pixel point are 39%, the adjustment parameters of each pixel point of the image data segment can be obtained according to the arithmetic progression correlation calculation formula, and the adjustment parameters are as follows: 30%, 31%, 32%, 33%, 34%, 35%, 36%, 37%, 38% and 39%.
For example, assuming that the correspondence is the initial pixel adjustment parameter of each image data segment, the current image data segment includes 10 pixels, the adjustment parameter of the initial pixel is 30%, and the adjustment parameter of the third pixel in the image data segment is 32%, the adjustment parameters of each pixel of the image data segment can be obtained according to the arithmetic progression correlation calculation formula, where the adjustment parameters are sequentially as follows: 30%, 31%, 32%, 33%, 34%, 35%, 36%, 37%, 38% and 39%.
Further, a parameter adjustment curve of each line of image data of the image to be processed may be determined according to the structural feature of the image forming apparatus, wherein an abscissa of the parameter adjustment curve is a position of a pixel point in the line, that is, a column of the pixel point in the line, and an ordinate is an adjustment parameter, so that a duty ratio of a pulse wave of each pixel point is determined according to the parameter adjustment curve and the position of each pixel point.
Fig. 3 is a schematic diagram of a print rendering density in the embodiment of fig. 2 of the present application, where the print rendering density is the density that is rendered after the image to be processed is directly printed without performing a density correction process, and fig. 3 is a description taking a row of pixels as an example, and for a printed image, the distribution of the print rendering density curve of each row is generally similar, and the abscissa indicates the position of the pixel, and may be the serial number or the column number of the pixel of the row, and the ordinate concentration. As shown in fig. 3, the print arrangement density, i.e., the density that is expected to be exhibited after the image to be processed is printed is shown by the broken line in fig. 3, whereas the print exhibiting density is smaller at both edges and larger at the middle portion, and there are two intersections E and F between them, mainly due to the characteristics of the laser scanning unit of the image forming apparatus itself, which results in the linear velocity of the laser light at both edges of the printed image being smaller than the central linear velocity, resulting in the central density being deep and the densities at both sides being shallow. Based on this feature, with respect to the characteristics of the laser scanning unit of the image forming apparatus, the corresponding parameter adjustment curve thereof can be preliminarily determined so that the print presentation density of each line of the print image of the adjusted image to be processed is approximated to a straight line.
Step S204, according to the adjustment parameters corresponding to the pixel points, the duty ratios corresponding to the pixel points are adjusted, and the image to be processed is printed according to the pulse waves formed by the duty ratios corresponding to the adjusted pixel points.
The duty ratio refers to a duty ratio of a PWM (Pulse Width Modulation ) pulse wave of a system on chip of the image forming apparatus. The larger the duty ratio is, the larger the print density is indicated.
Specifically, after the adjustment parameters of each pixel point in a certain row are determined, the adjustment parameters of all the pixel points of the image to be processed, that is, the adjustment parameters of the pixel points with the same column number, may be determined according to the adjustment parameters of each pixel point in the row. After the adjustment parameters corresponding to all the pixel points of the image to be processed are obtained, the duty ratios corresponding to all the pixel points are determined according to the adjustment parameters.
Specifically, the adjustment parameter may be an adjustment amount indicating a duty ratio of a current pixel, and after the adjustment parameter of the pixel is determined, the adjustment parameter is added to the print configuration density to obtain a duty ratio corresponding to the pixel, and then the duty ratio of a PWM wave of an SOC (System-on-a-Chip) of the image forming apparatus is adjusted according to the duty ratio, so that printing is performed according to the adjusted duty ratio.
According to the image processing method provided by the embodiment of the application, before the image to be processed is printed, each line of image data of the image data to be processed is segmented, the adjustment parameters of each pixel point of each segment are determined according to the number of segments of each segment of image data, and the duty ratio of the corresponding pulse is adjusted according to the adjustment parameters, so that the image is printed according to the adjusted duty ratio, the image processing speed is high, the problem that the printing result has concentration difference is effectively solved, the printing quality is improved, and different adjustment parameters can be respectively set according to each segment of image data, and the flexibility of adjusting the image concentration is improved.
Fig. 4 is a flowchart of an image processing method according to another embodiment of the present application, as shown in fig. 4, where the image processing method according to this embodiment is further refined in step S203 based on the image processing method according to the embodiment shown in fig. 2, and the image processing method according to this embodiment includes the following steps:
Step S401, acquiring an image to be processed.
The image to be processed comprises N lines of image data, wherein N is more than or equal to 1, and each line of image data comprises at least two pixel points.
In step S402, each line of image data is divided into set segments to acquire respective image data segments.
The number of pixels in each image data segment may or may not be equal.
Specifically, the number of pixels per image data segment may be entered by a user. It may also be determined based on the number of packets and the number of columns and rows of images to be processed.
Step S403, for each image data segment, determining an adjustment base of the image data segment according to the number of segments where the image data segment is located.
The adjustment base may be the smallest adjustment parameter or the largest adjustment parameter of the image data segment, or may be an average of the adjustment parameters. The adjustment cardinality is used to characterize the level of overall adjustment amplitude of the image data segment.
Specifically, a preset corresponding relation table of the number of segments where the image data segments are located and the adjustment base number can be obtained, and the adjustment base number of the image data segments is determined according to the corresponding relation table and the image data segment sequence number.
Further, the correspondence table may be determined according to a difference between a display effect of the history print data of the image forming apparatus and a pixel value of the preset effect.
Further, the adjustment mode of the PWM duty ratio of each pixel point in the image data segment can be determined according to the number of segments where the image data segment is located, that is, the adjustment base is added or subtracted with the unit adjustment amount of one or several times of the subsequent unit adjustment amount.
Step S404, determining the unit adjustment amount of the image data segment according to the pixel number, the adjustment base and the adjustment base of the next image data segment.
Wherein the next image data segment is the next image data segment of the image data segments. The adjustment base may be an adjustment parameter of the first pixel, the last pixel, or any other pixel of the image data segment, or may be an average value of adjustment parameters of each pixel of the image data segment, for example, an adjustment parameter of the middle pixel or an average value of adjustment parameters of the middle two pixels.
Specifically, according to the adjusting base of the image data segment and the next image data segment, determining the adjusting base difference value of the image data packet, wherein the ratio of the adjusting base difference value to the number of pixels is the unit adjusting quantity of the image data segment.
Specifically, assuming that the adjustment base of the current image data segment is a X, where the adjustment base a X may be an adjustment parameter of the first pixel point of the current image data segment, that is, the starting pixel point, and the number of pixels is n, where n=m/X, X represents the number of packets, and M is the number of columns or the number of pixels in each row of the image to be processed, the unit adjustment amount of the image data segment is expressed as follows:
CX=(AX-AX+1)/n
Where a X+1 represents the adjustment base of the next image data segment, which may be the adjustment parameter of the first pixel of the next image data segment.
For example, assuming that the number of pixels per line of the image to be processed is 1000 and the number of groups is 20, n=50, the adjustment base A1 of group 1 is 20%, that is, the adjustment parameter of the starting pixel (first pixel) of group 1 is 20%, the adjustment base A2 of group 2 is 10%, that is, the adjustment parameter of the starting pixel (first pixel) of group 2 is 10%, the adjustment base a X of group X is 5%, that is, the adjustment parameter of the starting pixel (first pixel) of group X is 5%, the adjustment base a X+1 of group x+1 is 15%, that is, the adjustment parameter of the starting pixel (first pixel) of group x+1 is 15%, then for group 1, the unit adjustment amount C 1 = (20% -10%)/50 is 0.2%, and the adjustment base C X = (5% -15%)/50 of group X is-0.2%.
Step S405, acquiring a minimum adjustment value of the duty ratio of the system on chip of the image forming apparatus.
Specifically, for the image forming apparatus, the SOC (system on chip) thereof corresponds to a minimum adjustment value of the duty cycle of one PWM, which can be used to characterize the adjustment accuracy of the duty cycle of the image forming apparatus.
Step S406, when the absolute value of the unit adjustment amount is smaller than the minimum adjustment value, determining the grouping step of the image data segment according to the ratio of the minimum adjustment value to the absolute value of the unit adjustment amount.
When the absolute value of the unit adjustment amount is smaller than the minimum adjustment value, the hardware of the image forming apparatus cannot meet the adjustment accuracy, and adjustment is required, that is, the plurality of pixel points are regarded as a whole to be adjusted according to the ratio of the two.
Further, when the absolute value of the unit adjustment amount is greater than or equal to the minimum adjustment value, the step S405 and the step S406 may be omitted, and the adjustment parameters corresponding to the pixels of the image data segment may be determined directly according to the adjustment base, the unit adjustment amount, and the positions of the pixels, and then the duty ratios corresponding to the pixels may be adjusted based on the adjustment parameters, so as to print the image to be processed according to the pulse waves formed according to the duty ratios corresponding to the adjusted pixels.
Specifically, when the absolute value of the unit adjustment amount is equal to or greater than the minimum adjustment value, the expression of the adjustment parameter of the i-th pixel point of the current image data segment is:
AXi=AX+(i-1)*CX
Wherein A X is the adjustment base of the current image data segment; c X is the unit adjustment amount of the current image data segment.
By way of example, assuming that the current image data segment of the image to be processed includes 10 pixels whose adjustment bases are 20%, i.e., the adjustment parameters of the starting pixels are 20%, the unit adjustment amount is-0.4%, and the minimum adjustment value of the image forming apparatus is 0.2%,0.4>0.2, it means that the accuracy of the hardware of the current image forming apparatus is high enough to implement the adjustment parameters of the respective pixels of the image to be processed. Furthermore, the adjustment parameters of the 5 th pixel point of the current image data segment can be obtained as follows: 20% +4 (-0.4%) =18.4%.
Step S407, grouping the image data segments according to the grouping step length to obtain each pixel group.
For example, assuming that the unit adjustment amount is 0.2% and the minimum adjustment value of the image forming apparatus is 0.4%, two (0.4%/0.2% =2) pixels in each image data segment are regarded as a small group or whole to be adjusted.
Step S408, according to the adjustment base, the minimum adjustment value and the position of the pixel group, determining the adjustment parameters corresponding to the pixel points in the pixel group.
Specifically, the adjustment parameters of the pixels in the same pixel group are the same.
For example, the current image data segment of the image to be processed includes n pixel subgroups, where the unit adjustment amount is Min%, the minimum adjustment value is C%, each pixel subgroup of the image data segment includes C/Min pixels, the adjustment parameter of each pixel of the first pixel subgroup a 1 is a X-1% (the adjustment parameter is also the adjustment base of the current image data segment), the adjustment parameter of each pixel of the second pixel subgroup a 2 is a X-1% + C%, and so on, then the adjustment parameter of each pixel of the last pixel subgroup a n may be obtained as follows: (a X-1%+(n-1)*C%)=AX% -C), wherein a X% is an adjustment base of a next image data segment of the current image data segment, i.e. an adjustment parameter of each pixel point of a first pixel group of the next image data segment.
Specifically, after the adjustment parameters of each pixel group and each image data segment are determined, the adjustment parameters of the whole image to be processed can be obtained.
And S409, adjusting the duty ratio corresponding to the pixel points based on the adjustment parameters, and printing the image to be processed according to the pulse waves formed by the duty ratios corresponding to the adjusted pixel points.
In this embodiment, an image to be processed is segmented, an adjustment base of an image data segment is determined according to the number of segments, a unit adjustment amount of the image data segment is determined according to the number of pixels of the image data segment, the adjustment base and the adjustment base of the next image data segment, and then adjustment parameters corresponding to each pixel point of the image data segment are determined according to the adjustment base, the unit adjustment amount and the positions of the pixel points, so that adjustment of the duty ratio of the image is realized, the phenomenon that the printing result has concentration difference is effectively avoided, and the printing quality is improved; when the minimum adjustment value of the image forming device is larger than the unit adjustment value, a plurality of pixel points in each image data segment are regarded as a whole for adjustment, so that the problem of parameter adjustment failure caused by lower hardware precision is effectively solved.
Fig. 5 is a flowchart of an image processing method according to another embodiment of the present application, as shown in fig. 5, in which step S203 is further refined, and steps of determining a correspondence between adjustment parameters and a number of segments are added before step S202, where the image processing method according to the present embodiment includes the following steps:
Step S501, obtaining standard pixel values of each pixel point of a print test page, and print pixel values of each pixel point of the print test page printed by the image forming apparatus.
The printing test page can be set by user definition or default. The standard pixel value is the preset pixel value of the pixel point corresponding to the printing test page. The print pixel value is a pixel value or a presentation density of each pixel point on the print image obtained after the print test page is printed by the image forming apparatus, such as a printer.
From the foregoing, it can be appreciated that, due to the limitations of the printer's own structure, there is a certain deviation between the print pixel value and the standard pixel value, and thus, parameter adjustment is required for the image printed by the printer subsequently according to the deviation.
Step S502, for each image data segment, determining an adjustment parameter of each pixel point of the image data segment according to a difference value between the standard pixel value and the print pixel value of each pixel point.
Further, the manner of printing the test page and the image segmentation of each line of image data of the subsequent image to be printed can also be determined according to the difference value between the standard pixel value and the printing pixel value of each pixel point. Specifically, for each line of image data, the point with the difference value of 0 can be regarded as a critical point, and is usually two, and then the two critical points divide a printing test page or a subsequent image to be printed into 3 large segments, and then each large segment is divided into small segments with set number, and the specific number of the small segments can be determined according to the printing requirement, the user requirement or the type of the image to be printed. The more segments, the better the corresponding adjustment effect.
Step S503, according to the number of segments of each image data segment and the adjustment parameters of each image data segment, establishing the corresponding relation between the adjustment parameters and the number of segments of the image forming device.
Step S504, a to-be-processed image is acquired.
The image to be processed comprises N lines of image data, wherein N is more than or equal to 1, and each line of image data comprises at least two pixel points.
In step S505, each line of image data is divided into set segments to acquire respective image data segments.
Specifically, the segmentation method of the image data and the determination method of the set segment may be determined according to the comparison result of the image historically printed by the image forming apparatus and the standard image thereof.
Step S506, according to the number of segments where the image data segments are located and the corresponding relation, respectively determining adjustment parameters corresponding to the first pixel point and the second pixel point of the image data segments.
The first pixel point and the second pixel point may be any two different pixel points of the image data segment, such as a start pixel point and an end pixel point. The start pixel is the first pixel in the image data segment, and the end pixel is the last pixel in the image data segment.
Specifically, the corresponding relation configures a corresponding first adjustment parameter and a corresponding second adjustment parameter for each image data segment, wherein the first adjustment parameter corresponds to an adjustment parameter of a first pixel point, and the second adjustment parameter corresponds to an adjustment parameter of a second pixel point.
Step S507, determining an adjustment parameter corresponding to each pixel point in the image data segment based on the adjustment parameter corresponding to the first pixel point and the adjustment parameter corresponding to the second pixel point.
Specifically, the adjustment parameters of each pixel point of each image data segment may form an arithmetic sequence, that is, the difference values of the adjustment parameters of two adjacent pixel points are equal.
For example, assuming that the current image data segment includes 10 pixels, the adjustment parameter corresponding to the start pixel P 1 is 11% and the adjustment parameter corresponding to the end pixel P 10 is 20%, the adjustment parameters of P 2-P9 are in turn: 12%, 13%, 14%, 15%, 16%, 17%, 18% and 19%.
Optionally, fig. 6 is a flowchart of step S507 in the embodiment of fig. 5, where, as shown in fig. 6, step S507 includes:
in step S5071, the adjustment parameter limit value of the image data segment is acquired.
Specifically, the above-mentioned adjustment parameter limit value may be a minimum adjustment value of the duty ratio of a system-in-chip of an image forming apparatus such as a printer; and can also be a limit value which is custom set by a user.
Step S5072 determines an adjustment parameter corresponding to each pixel in the image data segment based on the adjustment parameter corresponding to the first pixel, the adjustment parameter corresponding to the second pixel, and the adjustment parameter limit value.
Specifically, determining a unit adjustment amount of the image data segment according to the adjustment parameter corresponding to the first pixel point and the adjustment parameter corresponding to the second pixel point; when the unit adjustment amount is smaller than the adjustment parameter limit value, determining a grouping step length of the image data segment according to a ratio of the adjustment parameter limit value to an absolute value of the unit adjustment amount; grouping the image data segments according to the grouping step length to obtain each pixel group; and determining the adjustment parameters of each pixel subgroup in the image data segment based on the adjustment parameters corresponding to the first pixel point, the adjustment parameters corresponding to the second pixel point and the adjustment parameter limiting value, wherein the adjustment parameters of the same pixel subgroup are the same.
Step S508, based on the adjustment parameters, adjusting the duty ratio corresponding to the pixel points, and printing the image to be processed according to the pulse wave formed by the adjusted duty ratio corresponding to each pixel point.
In this embodiment, the correspondence between the adjustment parameters of each pixel point of each image data segment and the number of segments is determined according to the comparison result between the print pixel value of each pixel point of the print test page printed by the image forming device and the standard pixel value of each pixel of the print test page, so as to determine the adjustment parameters of each image data segment according to the correspondence, thereby improving the accuracy of parameter adjustment, further improving the print quality, and making the density distribution of the printed image uniform.
Fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention, and as shown in fig. 7, the image processing apparatus according to the embodiment includes: a pending image acquisition module 710, an image segmentation module 720, an adjustment parameter determination module 730, and a duty cycle adjustment module 740.
The image to be processed acquiring module 710 is configured to acquire an image to be processed, where the image to be processed includes N lines of image data, where N is greater than or equal to 1, and each line of image data includes at least two pixel points; an image segmentation module 720, configured to divide each line of image data into set segments to obtain each image data segment; an adjustment parameter determining module 730, configured to determine, for each image data segment, an adjustment parameter of each pixel point of the image data segment according to the number of segments where the image data segment is located; the duty ratio adjustment module 740 is configured to adjust the duty ratio corresponding to the pixel point based on the adjustment parameter, so as to print the image to be processed according to the pulse wave formed by the adjusted duty ratio corresponding to each pixel point.
Optionally, the adjustment parameter determination module 730 includes:
A correspondence acquiring unit configured to acquire a correspondence between the adjustment parameters and the number of segments previously established in the image forming apparatus; and the adjustment parameter determining unit is used for determining the adjustment parameters of all pixel points of the image data segment according to the segment number of the image data segment and the corresponding relation.
Optionally, the adjustment parameter determining unit includes:
a pixel parameter determining subunit, configured to determine adjustment parameters corresponding to a first pixel point and a second pixel point of the image data segment according to the number of segments where the image data segment is located and the correspondence; and the adjustment parameter determination subunit is used for determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points and the adjustment parameters corresponding to the second pixel points.
Optionally, the above adjustment parameter determining subunit is specifically configured to:
Acquiring an adjustment parameter limit value of the image data segment; respectively determining adjustment parameters corresponding to a first pixel point and a second pixel point of the image data segmentation according to the number of segments where the image data segmentation is located and the corresponding relation; and determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points and the adjustment parameters corresponding to the second pixel points.
Optionally, the image processing apparatus further includes:
a test page pixel value obtaining module, configured to obtain a standard pixel value of each pixel point of a print test page and a print pixel value of each pixel point of the print test page printed by the image forming apparatus before obtaining a corresponding relation between an adjustment parameter and a segment number of the image forming apparatus; a pixel adjustment parameter determining module, configured to determine, for each image data segment, an adjustment parameter of each pixel of the image data segment according to a difference between the standard pixel value and the print pixel value of each pixel; and the corresponding relation establishing module is used for establishing the corresponding relation between the adjusting parameters of the image forming device and the segment numbers according to the segment numbers of the image data segments and the adjusting parameters of the image data segments.
Optionally, the image segmentation module 720 includes:
A segmentation number determining unit configured to determine the segmentation number of each line of image data of the image to be processed according to the printing resolution of the image forming apparatus and the model of the printing paper; and the image segmentation unit is used for dividing each row of image data into set segments according to the segmentation number so as to acquire each image data segment.
Optionally, the adjustment parameter determining module 730 includes:
An adjustment base determining unit configured to determine an adjustment base of the image data segment according to a number of segments in which the image data segment is located; a pixel number obtaining unit, configured to obtain the number of pixels included in the image data segment; a unit adjustment amount determining unit configured to determine a unit adjustment amount of the image data segment based on the number of pixels of the image data segment, an adjustment base, and an adjustment base of a next image data segment; and the second adjustment parameter determining unit is used for determining the adjustment parameters corresponding to the pixel points of the image data segment according to the adjustment base, the unit adjustment quantity and the positions of the pixel points.
Optionally, the image processing apparatus further includes:
A minimum adjustment value acquisition module configured to acquire a minimum adjustment value of a duty ratio of a system-in-chip of the image forming apparatus after determining a unit adjustment amount of the image data segment; a grouping step determining module, configured to determine a grouping step of the image data segment according to a ratio of the minimum adjustment value to the absolute value of the unit adjustment value when the absolute value of the unit adjustment value is smaller than the minimum adjustment value; a pixel group acquisition module, configured to group the image data segments according to the grouping step length, so as to acquire each pixel group; correspondingly, the second adjustment parameter determining unit is specifically configured to: and determining the adjustment parameters corresponding to the pixel points in the pixel group according to the adjustment base, the minimum adjustment value and the position of the pixel group.
The description may be understood correspondingly with reference to the description and effects corresponding to the steps of fig. 2 to fig. 6, and will not be repeated here.
Fig. 8 is a schematic diagram of an image forming apparatus according to an embodiment of the present invention, and as shown in fig. 8, the image forming apparatus according to the embodiment includes: an image processing system 810, a light scanning system 820, and an imaging system 830.
Wherein the image processing system 810 is configured to perform the image processing method according to any embodiment of the present application, so as to generate an adjusted duty cycle of each pixel; the laser scanning system 820 is configured to generate a laser beam, and scan an image to be processed according to the laser beam and the adjusted duty ratio to generate laser scanning data; the imaging system 820 is used for printing and imaging the image to be processed according to the laser scanning data.
An embodiment of the present invention provides a computer readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the image processing method provided in any of the embodiments corresponding to fig. 2 to 6 of the present invention.
The computer readable storage medium may be, among other things, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, e.g., the division of modules, units, and sub-units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. An image processing method, the method being applied to an image forming apparatus, the method comprising:
Acquiring an image to be processed, wherein the image to be processed comprises N lines of image data, N is more than or equal to 1, and each line of image data comprises at least two pixel points;
dividing each line of image data into set segments to obtain each image data segment;
for each image data segment, determining an adjustment parameter of each pixel point of the image data segment according to the number of segments of the image data segment;
based on the adjustment parameters, adjusting the duty ratio corresponding to the pixel points, and printing the image to be processed according to pulse waves formed by the duty ratios corresponding to the adjusted pixel points;
The determining the adjustment parameters of each pixel point of the image data segment according to the segment number of the image data segment comprises the following steps:
Acquiring a pre-established corresponding relation between the adjusting parameters of the image forming device and the number of segments;
Determining adjustment parameters of all pixel points of the image data segment according to the segment number of the image data segment and the corresponding relation;
or determining the adjusting base number of the image data segment according to the segment number of the image data segment;
acquiring the number of pixels included in the image data segment;
Determining a unit adjustment amount of the image data segment according to the number of pixels of the image data segment, an adjustment base and an adjustment base of the next image data segment;
And determining the adjustment parameters corresponding to each pixel point of the image data segment according to the adjustment base, the unit adjustment quantity and the positions of the pixel points.
2. The method according to claim 1, wherein determining the adjustment parameters of each pixel point of the image data segment according to the number of segments where the image data segment is located and the correspondence relation includes:
Respectively determining adjustment parameters corresponding to a first pixel point and a second pixel point of the image data segmentation according to the number of segments where the image data segmentation is located and the corresponding relation;
And determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points and the adjustment parameters corresponding to the second pixel points.
3. The method of claim 2, wherein the determining the adjustment parameters for each pixel in the image data segment based on the adjustment parameters for the first pixel and the adjustment parameters for the second pixel comprises:
acquiring an adjustment parameter limit value of the image data segment;
And determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points, the adjustment parameters corresponding to the second pixel points and the adjustment parameter limiting values.
4. The method of claim 1, wherein after determining the unit adjustment amount of the image data segment, the method further comprises:
acquiring a minimum adjustment value of a duty ratio of a system-in-chip of the image forming apparatus;
when the absolute value of the unit adjustment quantity is smaller than the minimum adjustment value, determining the grouping step length of the image data segment according to the ratio of the minimum adjustment value to the absolute value of the unit adjustment quantity;
Grouping the image data segments according to the grouping step length to obtain each pixel group;
correspondingly, according to the adjustment base, the unit adjustment quantity and the positions of the pixel points, determining the adjustment parameters corresponding to each pixel point of the image data segment comprises the following steps:
and determining the adjustment parameters corresponding to each pixel point in the pixel group according to the adjustment base, the minimum adjustment value and the position of the pixel group.
5. An image processing apparatus, comprising:
The image processing device comprises a to-be-processed image acquisition module, a processing module and a processing module, wherein the to-be-processed image acquisition module is used for acquiring to-be-processed images, the to-be-processed images comprise N rows of image data, wherein N is more than or equal to 1, and each row of image data comprises at least two pixel points;
The image segmentation module is used for dividing each line of image data into set segments so as to acquire each image data segment;
The adjustment parameter determining module is used for determining adjustment parameters of all pixel points of each image data segment according to the number of segments of the image data segment;
the duty ratio adjusting module is used for adjusting the duty ratio corresponding to the pixel points based on the adjusting parameters so as to print the image to be processed according to the pulse waves formed by the duty ratios corresponding to the adjusted pixel points;
The adjustment parameter determining module includes:
A correspondence acquiring unit configured to acquire a correspondence between adjustment parameters and the number of segments previously established in the image forming apparatus;
an adjustment parameter determining unit, configured to determine an adjustment parameter of each pixel point of the image data segment according to the number of segments where the image data segment is located and the correspondence;
Or, the adjustment parameter determining module includes:
an adjustment base determining unit, configured to determine an adjustment base of the image data segment according to a segment number where the image data segment is located;
a pixel number obtaining unit, configured to obtain the number of pixels included in the image data segment;
A unit adjustment amount determining unit configured to determine a unit adjustment amount of the image data segment according to the number of pixels of the image data segment, an adjustment base, and an adjustment base of a next image data segment;
and the second adjustment parameter determining unit is used for determining adjustment parameters corresponding to each pixel point of the image data segment according to the adjustment base, the unit adjustment quantity and the positions of the pixel points.
6. The apparatus according to claim 5, wherein the adjustment parameter determination unit includes:
The pixel point parameter determining subunit is used for respectively determining adjustment parameters corresponding to a first pixel point and a second pixel point of the image data segment according to the segment number of the image data segment and the corresponding relation;
And the adjustment parameter determination subunit is used for determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points and the adjustment parameters corresponding to the second pixel points.
7. The apparatus according to claim 6, wherein the adjustment parameter determination subunit is configured to:
acquiring an adjustment parameter limit value of the image data segment;
Respectively determining adjustment parameters corresponding to a first pixel point and a second pixel point of the image data segmentation according to the number of segments where the image data segmentation is located and the corresponding relation;
And determining the adjustment parameters corresponding to the pixel points in the image data segment based on the adjustment parameters corresponding to the first pixel points, the adjustment parameters corresponding to the second pixel points and the adjustment parameter limiting values.
8. The apparatus as recited in claim 5, further comprising:
a minimum adjustment value acquisition module configured to acquire a minimum adjustment value of a duty ratio of a system-in-chip of the image forming apparatus after determining a unit adjustment amount of the image data segment;
a grouping step size determining module, configured to determine a grouping step size of the image data segment according to a ratio of the minimum adjustment value to the absolute value of the unit adjustment value when the absolute value of the unit adjustment value is smaller than the minimum adjustment value;
A pixel subgroup acquiring module, configured to group the image data segments according to the grouping step length, so as to acquire each pixel subgroup;
correspondingly, the second adjustment parameter determining unit is specifically configured to: and determining the adjustment parameters corresponding to each pixel point in the pixel group according to the adjustment base, the minimum adjustment value and the position of the pixel group.
9. An image forming apparatus, comprising: a laser scanning system, an imaging system, and an image processing system;
Wherein the image processing system is configured to perform the image processing method of any one of claims 1-4 to generate an adjusted duty cycle for each pixel point;
the laser scanning system is used for generating a laser beam and scanning an image to be processed according to the laser beam and the adjusted duty ratio so as to generate laser scanning data;
The imaging system is used for printing and imaging the image to be processed according to the laser scanning data.
10. A computer-readable storage medium, in which computer-executable instructions are stored, which when executed by a processor are adapted to implement the image processing method according to any one of claims 1 to 4.
CN202010711324.1A 2020-07-22 2020-07-22 Image processing method, image processing apparatus, image forming apparatus, and storage medium Active CN111831238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010711324.1A CN111831238B (en) 2020-07-22 2020-07-22 Image processing method, image processing apparatus, image forming apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010711324.1A CN111831238B (en) 2020-07-22 2020-07-22 Image processing method, image processing apparatus, image forming apparatus, and storage medium

Publications (2)

Publication Number Publication Date
CN111831238A CN111831238A (en) 2020-10-27
CN111831238B true CN111831238B (en) 2024-05-28

Family

ID=72924752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010711324.1A Active CN111831238B (en) 2020-07-22 2020-07-22 Image processing method, image processing apparatus, image forming apparatus, and storage medium

Country Status (1)

Country Link
CN (1) CN111831238B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05167810A (en) * 1990-11-22 1993-07-02 Canon Inc Image processing method
US5867203A (en) * 1997-05-16 1999-02-02 Lexmark International Inc. EMI reduction in output devices
JP2009220531A (en) * 2008-03-18 2009-10-01 Casio Comput Co Ltd Light exposure system and image forming apparatus
CN102442079A (en) * 2010-09-10 2012-05-09 兄弟工业株式会社 Image processing device and image processing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4508478B2 (en) * 2001-06-27 2010-07-21 キヤノン株式会社 Image recording device
JP4736766B2 (en) * 2005-03-29 2011-07-27 セイコーエプソン株式会社 Printing apparatus, printing program, printing method and image processing apparatus, image processing program, image processing method, and recording medium recording the program
US20190114759A1 (en) * 2017-10-13 2019-04-18 Konica Minolta, Inc. Inspection apparatus, image forming apparatus, and recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05167810A (en) * 1990-11-22 1993-07-02 Canon Inc Image processing method
US5867203A (en) * 1997-05-16 1999-02-02 Lexmark International Inc. EMI reduction in output devices
JP2009220531A (en) * 2008-03-18 2009-10-01 Casio Comput Co Ltd Light exposure system and image forming apparatus
CN102442079A (en) * 2010-09-10 2012-05-09 兄弟工业株式会社 Image processing device and image processing method

Also Published As

Publication number Publication date
CN111831238A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
US20150243010A1 (en) Image inspection device, image inspection system, and recording medium storing image inspection program
US11630975B1 (en) Secondary color uniformity compensation mechanism
US20060285764A1 (en) Model-based line width control
US9681022B2 (en) Image processing apparatus, image processing method, and recording medium
CN111831238B (en) Image processing method, image processing apparatus, image forming apparatus, and storage medium
JP2000056525A (en) Image forming device/method
US9536183B2 (en) Image processing device and image processing method
CN111917934B (en) Image processing method, image processing apparatus, image forming apparatus, and storage medium
EP0789325B1 (en) Method and apparatus for efficiently interpolating an image
US9609171B2 (en) Applying luminance conversion processing in accordance with image attribute information to improve edge detection and image data correction for pseudo halftone processing
JP2005184685A (en) Image processing device, program, and recording medium
CN104519237B (en) Image processing apparatus and image processing method
US8941884B1 (en) Method and apparatus for dynamically generating a stochastic threshold table
JPH07334672A (en) Picture processor
US20160092758A1 (en) Intelligent Pixel Location Selection Process For A Low Overhead Near Unity Scaling Technique
JPH04139589A (en) Graphic processor
US9361554B2 (en) Low overhead near unity scaling technique
US20100259795A1 (en) System and method of image edge growth control
US8797555B2 (en) Redistribution of pixel values in an image forming apparatus or method
CN111839580A (en) Dental film image generation method and device, electronic equipment and storage medium
JP4237555B2 (en) Image correction method and image correction apparatus
CN107220222B (en) Font adjusting method
JP2010146557A (en) Method and apparatus for slow scan magnification adjustment using non-redundant overwriting
CN114792288B (en) Curved screen image gray scale correction method and related device
US11863727B2 (en) Image calibration method, image formation device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant