1. Technical Field
The present invention relates to an image processing method, an image processing apparatus, and an image processing program related to processing of converting image data into print data, and a printing system.
2. Related Art
In an image processing apparatus which outputs general image data of RGB obtained by a digital camera, or the like, by converting the image data into print data for performing printing in an ink jet printer, as a method of converting multi-grayscale image data into binarized print data, an error diffusion method, for example, is used. The error diffusion method is a method in which a quantization error when binarizing a target pixel is diffused to a grayscale value of a pixel in the vicinity of the target pixel which is not subjected to binarization, and each grayscale value thereof is successively binarized.
Since data conversion processing using the error diffusion method is performed while diffusing a quantization error one after another, it is possible to form a dependency relationship in data processing with respect to data in a diffusion destination, and it is necessary to continuously perform conversion processing in series, in a range in which the dependency relationship is present. As a result, for example, in a case in which an image becomes large, and becomes an image with high resolution, the number of pixels to be continuously processed in series increases, and accordingly, a processing time becomes long.
In a case of processing large image data which exceeds a size of a memory space for performing data processing, in many cases, the processing proceeds while dividing the image data into an allowable size. With respect to the above described problem, in JP-A-2011-95807, an image processing apparatus and an image processing method are described, in which it is possible to process divided image data in parallel in a dependency direction of data processing, by setting a division direction thereof to a direction orthogonal to a direction in which a dependency relationship in data processing is present, when dividing the image data, and as a result, it is possible to improve throughput of data processing.
However, in the image processing apparatus and the image processing method which are described in JP-A-2011-95807, there is a problem in that a dependency relationship in data processing, that is, a direction for performing an error diffusion is limited in order to make a division of image data possible, and depending on a direction in which a division is possible. In addition, there is a problem in that, in a case in which a direction of proceeding printing sequentially is orthogonal to a direction in which image data is divided, it is not possible to start printing until conversion processing of the entire image data is completed, in a case of a printing apparatus which performs printing while sequentially receiving converted print data.
The invention can be realized in the following application examples or aspects.
According to this application example, there is provided an image processing method in which image data including a grayscale value in each pixel is converted into print data including formation necessity of dots, the method including extracting a region in which a total value of the grayscale value of the pixel included in each predetermined division in which the image data is divided does not become a predetermined threshold value as a non-processing region; and extracting a region surrounded with the non-processing region as a processing region.
According to the image processing method in the application example, it is possible to divide a region of image data using an index of a grayscale value (that is, density of dots) of a pixel by extracting a region in which a total value of a grayscale value of a pixel included in each predetermined division does not become a predetermined threshold value as a non-processing region, and extracting a region of which the periphery is surrounded with the non-processing region as a processing region. By dividing a region of image data in this manner, it is possible to select a data conversion method which is appropriate for respective regions.
In the image processing method according to the application example, data for determining formation necessity of dots which is included in the non-processing region, and corresponds to a pixel included in the division which is not in contact with the processing region may be set so as not to form dots.
According to the image processing method in the application example, in processing of converting image data into print data, it is possible to perform batch processing in which data for determining formation necessity of dots corresponding to a pixel which is included in the non-processing region, and is included in a division which is not in contact with the processing region is set so as not to form dots. That is, since it is not necessary to perform conversion processing of data related to each pixel in the same way, in the entire image data, it is possible to improve throughput in data conversion processing.
In addition, a pixel included in a division which is in contact with a processing region becomes a data conversion target, and since error diffusion from the pixel included in the processing region is reflected in a case of performing halftoning processing using the error diffusion method, for example, it is possible to suppress a deterioration in image quality at a boundary between the processing region and the non-processing region.
In the image processing method according to the application example, halftoning processing may be simultaneously performed with respect to the respective processing regions, in a case in which there are a plurality of the processing regions which are extracted.
According to the image processing method in the application example, in a case in which there are a plurality of the processing regions which are extracted, it is possible to improve throughput in data conversion processing by simultaneously performing the halftoning processing with respect to the respective processing regions. For example, it is possible to simultaneously use a plurality of digital signal processors (DSP) as a data conversion processing engine, and improve throughput in data conversion processing.
In the image processing method according to the application example, in the halftoning processing, error diffusion processing based on the error diffusion method may be performed, the error diffusion processing may be performed from a pixel which is included in the processing region, and is in contact with the non-processing region to a pixel which is included in the non-processing region, and is included in the division which is in contact with the processing region, and the error diffusion processing may not be performed with respect to a pixel included in the non-processing region, and is included in the division which is not in contact with the processing region.
According to the image processing method in the application example, in the halftoning processing, the error diffusion processing based on the error diffusion method is performed, and the error diffusion processing is performed from a pixel which is included in the processing region, and is in contact with the non-processing region to a pixel which is included in the non-processing region, and is included in a division which is in contact with the processing region. For this reason, since error diffusion of a pixel included in the processing region is appropriately performed, by appropriately setting a predetermined division, it is possible to perform data conversion without deteriorating a printing quality.
In addition, since the error diffusion processing is not performed with respect to a pixel included in the non-processing region, and is included in a division which is not in contact with the processing region, it is possible to make a time necessary for the error diffusion processing short, and improve throughput in data conversion processing.
According to the application example, there is provided an image processing apparatus which converts image data including a grayscale value in each pixel into print data including formation necessity of dots, the apparatus including an input unit which inputs the image data; and an operation unit which converts the input image data into the print data, in which the operation unit performs non-processing region extracting processing of extracting a region in which a total value of the grayscale value of the pixel included in each predetermined division in which the image data is divided does not become a predetermined threshold value as a non-processing region, and processing region extracting processing of extracting a region surrounded with the non-processing region as a processing region.
According to the image processing apparatus in the application example, it is possible to divide a region of image data using an index of a grayscale value (that is, density of dots) of a pixel, by extracting a region in which a total value of a grayscale value of a pixel included in each predetermined division does not become a predetermined threshold value as a non-processing region, and extracting a region of which the periphery is surrounded with the non-processing region as a processing region. By dividing the region of image data in this manner, it is possible to select a data conversion method which is appropriate for respective regions.
In the image processing apparatus according to the application example, the operation unit may set data for determining formation necessity of dots corresponding to a pixel which is included in the non-processing region, and is included in the division which is not in contact with the processing region so as not to form dots.
According to the image processing apparatus in the application example, in processing of converting image data into print data, it is possible to perform batch processing in which data for determining formation necessity of dots corresponding to a pixel which is included in the non-processing region, and is included in a division which is not in contact with the processing region is set so as not to form dots. That is, since it is not necessary to perform conversion processing of data related to each pixel in the same way, in the entire image data, it is possible to improve throughput in data conversion processing.
In addition, a pixel included in a division which is in contact with a processing region becomes a data conversion target, and since error diffusion from the pixel included in the processing region is reflected in a case of performing halftoning processing using the error diffusion method, for example, it is possible to suppress a deterioration in image quality at a boundary between the processing region and the non-processing region.
In the image processing apparatus according to the application example, the operation unit may simultaneously perform halftoning processing with respect to the respective processing regions, in a case in which there are a plurality of the processing regions which are extracted.
According to the image processing apparatus according to the application example, it is possible to improve throughput in data conversion processing, by simultaneously performing the halftoning processing with respect to respective processing regions, in a case in which there are a plurality of extracted processing regions. For example, it is possible to improve throughput in data conversion processing by simultaneously using a plurality of DSPs, as a data conversion processing engine.
According to the application example, there is provided an image processing program which is executed in an image processing apparatus which converts image data including a grayscale value in each pixel to print data including formation necessity of dots, the program including extracting a region in which a total value of the grayscale value of the pixel included in each predetermined division in which the image data is divided does not become a predetermined threshold value as a non-processing region, and extracting a region surrounded with the non-processing region as a processing region.
According to the image processing program in the application example, it is possible to divide a region of image data using an index of a grayscale value (that is, density of dots) of a pixel by extracting a region in which a total value of a grayscale value of a pixel included in each predetermined division does not become a predetermined threshold value as a non-processing region, and extracting a region of which the periphery is surrounded with the non-processing region as a processing region. By dividing a region of image data in this manner, it is possible to select a data conversion method which is appropriate for respective regions.
According to the application example, there is provided a printing system including a printing apparatus which performs printing based on the image processing apparatus according to the above described application example, and print data which is generated by the image processing apparatus.
According to the printing system in the application example, it is possible to perform printing with high efficiency since the image processing apparatus according to the above described application example is provided.
The invention will be described with reference to the accompanying drawings, wherein like numbers reference like elements.
Hereinafter, an embodiment in which the invention is embodied will be described with reference to drawings. The following embodiment is one embodiment of the invention, and does not limit the invention. In each figure below, there is a case in which scales different from actual scales are described, in order to make descriptions easy to understand. In addition, in coordinates added to drawings, a Z axis direction is set to a vertical direction, a +Z direction is set to an upper direction, a Y axis direction is set to an anteroposterior direction, a +Y direction is set to a forward direction, an X axis direction is set to a horizontal direction, a +X direction is set to a left direction, and an X-Y plane is set to a horizontal plane.
The printing system 1 is configured of a printing apparatus 100, and a personal computer 110 (hereinafter, referred to as PC 110) as an “image processing apparatus” which is connected to the printing apparatus 100. The printing apparatus 100 is an ink jet printer which prints a desired image on a long printing medium 5 which is supplied in a state of being wound in a roll shape, based on print data which is received from the PC 110.
The PC 110 is provided with a printer control unit 111 as an “operation unit”, an input unit 112, a display unit 113, a storage unit 114, and the like, and performs a printing job control in which the printing apparatus 100 is caused to perform printing.
General image processing application software (hereinafter, referred to as application) which treats image data to be printed, or printer driver software (hereinafter, referred to as printer driver) which controls the printing apparatus 100, or generates print data for causing the printing apparatus 100 to execute printing is included in software which the PC 110 operates.
The printer control unit 111 is provided with a central processing unit (CPU) 115, an application specific integrated circuit (ASIC) 116, a plurality of digital signal processors (DSP) 117, a memory 118, a printer interface 119, and the like, and performs a centralized management of the entire printing system 1.
The input unit 112 is an information input unit for the PC 110, and specifically, is a port, or the like, to which a keyboard as a human interface, or an information input device, for example, is connected.
The display unit 113 is an information display unit (display) as a human interface, and on which information input from the input unit 112, an image to be printed in the printing apparatus 100, information on a printing job, and the like, are displayed based on a control of a printer control unit 111.
The storage unit 114 is a rewriteable storage medium such as a hard disk drive (HDD), a memory card, or the like, in which the software (program operated in printer control unit 111) which the PC 110 operates, an image to be printed, information on a printing job, and the like, are stored.
The memory 118 is a storage medium which secures an area for storing a program which the CPU 115 operates, a work area for operating, and the like, and is configured of a storage element such as a RAM, an EEPROM, or the like.
The printer interface 119 is an interface which connects the PC 110 and the printing apparatus 100, and transmits and receives information, and has a function of sending print data for causing the printing apparatus 100 to perform printing.
The printing apparatus 100 is configured of a printing unit 10, a printing medium moving unit 20, a control unit 30, and the like. The printing apparatus 100 which receives print data from the PC 110 controls the printing unit 10, and the printing medium moving unit 20 using the control unit 30, and prints an image (image forming) on the printing medium 5.
The print data is, for example, data for forming an image which is obtained by converting general image data (for example, digital image information of RGB) which is obtained by a digital camera, or the like, so as to be printed in the printing apparatus 100 using the application and the printer driver included in the PC 110, and includes a command for controlling the printing apparatus 100.
The printing unit 10 is configured of a printing head 11, a printing head control unit 12, and the like.
The printing medium moving unit 20 is configured of a main scanning unit 40, a sub-scanning unit 50, and the like. The main scanning unit 40 is configured of a carriage 41, a guide shaft 42, a carriage motor (not illustrated), and the like. The sub-scanning unit 50 is configured of a supply unit 51, an accommodating unit 52, a transport roller 53, a platen 55, and the like.
The printing head 11 includes a plurality of nozzles (nozzle column) which eject printing ink (hereinafter, referred to as ink) as liquid droplets (hereinafter, also referred to as ink droplets). The printing head 11 is mounted on the carriage 41, and reciprocates in a scanning direction along with the carriage 41 which moves in the scanning direction (Y axis direction illustrated in
As ink, for example, as an ink set formed of a dark ink composition, there is an ink set of four colors, or the like, in which a black color (K) is added to an ink set of three colors of cyan (C), magenta (M), and yellow (Y). In addition, there is an ink set of eight colors, or the like, to which an ink set of light cyan (Lc), light magenta (Lm), light yellow (Ly), light black (Lk), and the like, which are formed of a light ink composition obtained by making density of respective coloring materials light is added, for example.
As an ink droplet ejecting method (ink jet method), a piezoelectric method is preferably used. The piezoelectric method is a method in which a pressure corresponding to a printing information signal is applied to ink stored in a pressure chamber using a piezoelectric element, and printing is performed by discharging (ejecting) ink droplets from a nozzle which communicates with the pressure chamber.
A method of ejecting ink droplets is not limited to this, and may be another recording method in which ink is discharged in a liquid droplet shape, and a dot group is formed on the printing medium. For example, it may be a method of forcibly discharging ink droplets by applying a pressure to ink using a small pump, and mechanically vibrating a nozzle using a crystal resonator, or the like, a method of performing recording by discharging ink droplets, by causing ink to be heated and foamed, using a microelectrode according to a recording information signal (thermal jet method), or the like.
The printing medium moving unit 20 (main scanning unit 40 and sub-scanning unit 50) causes the printing medium 5 to relatively move with respect to the printing unit 10 under a control of the control unit 30.
The guide shaft 42 extends in the scanning direction, and supports the carriage 41 in a state of being in sliding contact therewith, and the carriage motor becomes a driving source when causing the carriage 41 to reciprocate along the guide shaft 42. That is, the main scanning unit 40 (carriage 41, guide shaft 42, and carriage motor) moves the carriage 41 (that is, printing head 11) in the scanning direction along the guide shaft 42 under a control of the control unit 30.
The supply unit 51 rotatably supports a reel on which the printing medium 5 is wound in a roll shape, and sends the printing medium 5 to a transport path. The accommodating unit 52 rotatably supports a reel which winds up the printing medium 5, and winds up the printing medium 5 on which printing is completed from the transport path.
The transport roller 53 is formed of a driving roller which moves the printing medium 5 in the sub-scanning direction (X axis direction illustrated in
The control unit 30 is provided with an interface unit 31, a CPU 32, a memory 33, a driving control unit 34, and the like, and performs a control of the printing apparatus 100.
The interface unit 31 is connected to the printer interface 119, and performs transceiving of data between the PC 110 and the printing apparatus 100.
The CPU 32 is an operation processing unit for performing a control of the entire printing apparatus 100.
The memory 33 is a storage medium for securing an area for storing a program which the CPU 32 operates, and a work area for operating, and is configured of a storage element such as a RAM, an EEPROM, and the like.
The CPU 32 controls the printing medium moving unit 20 (main scanning unit 40 and sub-scanning unit 50), and the printing unit 10 (printing head 11) through the driving control unit 34 according to a program which is stored in the memory 33, and print data received from the PC 110.
Printing on the printing medium 5 is started when print data is sent from the PC 110 connected to the printing apparatus 100. Print data is generated by the printer driver.
Hereinafter, basic contents in a process of generating print data will be described with reference to
The printer driver receives image data (for example, text data, or image data of full color) from an application, converts the image data into print data with a format which can be interpreted by the printing apparatus 100, and outputs the print data to the printing apparatus 100. When converting image data from an application into print data, the printer driver performs resolution conversion processing, color conversion processing, half toning processing, rasterizing processing, command adding processing, or the like.
Hereinafter, a case in which image data before generating print data is data including 256 grayscales (grayscale value (0 to 255)) will be described as an example. In addition, for easy understanding, the grayscale value is used in the sense that, when the value increases, density becomes dark.
The resolution conversion processing is processing in which image data output from an application is converted into data with a resolution (printing resolution) when being printed on the printing medium 5. For example, in a case in which a printing resolution is designated to 720 dpi×720 dpi, image data of a vector format which is received from the application is converted into image data of a bitmap format with a resolution of 720 dpi×720 dpi. Each pixel data of image data after being subjected to resolution conversion processing is configured of pixels which are arranged in matrix in a two-dimensional data space. Each pixel includes a grayscale value of 256 grayscales of an RGB color space. That is, pixel data after the resolution conversion denotes a grayscale value of a corresponding pixel.
Pixel data corresponding to pixels of one column which align in a predetermined direction in the pixels arranged in matrix is referred to as raster data. In addition, the predetermined direction in which pixels corresponding to the raster data align corresponds to a movement direction (scanning direction) of the printing head 11 when printing an image.
The color conversion processing is processing in which RGB data is converted into data of a CMYK color space. The CMYK color is cyan (C), magenta (M), yellow (Y), and black (K), and image data of the CMYK color space is data corresponding to a color of ink included in the printing apparatus 100. Accordingly, for example, in a case in which the printing apparatus 100 uses ink of ten types of the CMYK color, the printer driver generates image data of a ten-dimensional space of the CMYK color, based on the RGB data.
The color conversion processing is performed based on a table (color conversion look up table LUT) in which a grayscale value of the RGB data and a grayscale value of the CYMK color data are associated with each other. Pixel data after the color conversion processing is the CMYK color data of 256 grayscales which is expressed, using the CMYK color space.
The halftoning processing is quantization processing in which data of high grayscale (256 grayscales) is converted into data of grayscales which can be formed by the printing apparatus 100 in each ink color provided in the printing apparatus 100. By performing the halftoning processing, data denoting 256 grayscales is converted into 1 bit data which denotes two grayscales (with or without dot), or 2 bit data which denotes four grayscales (no dot, small dot, medium dot, and large dot). Specifically, a dot generating ratio (for example, each generating ratio of no dot, small dot, medium dot, and large dot in case of four grayscales) corresponding to a grayscale value is obtained from a dot generating ratio table in which the grayscale value (0 to 255) and the dot generating ratio correspond to each other, and pixel data is created so that dots are formed by being distributed, using a dither method, the error diffusion method, or the like, in the obtained generating ratio.
That is, pixel data after the halftoning processing is 1 bit data or 2 bit data, and becomes data which denotes formation necessity of dots (presence or absence of dots, or size of dots) in each pixel. For example, a conversion of four stages is performed such as a grayscale value of a dot [00] corresponding to no dot, a grayscale value of a dot [01] corresponding to formation of a small dot, a grayscale value of a dot [10] corresponding to formation of a medium dot, and a grayscale value of a dot [11] corresponding to formation of a large dot, in a case of 2 bits (four grayscales).
The rasterizing processing is processing in which pixel data items aligned in matrix are rearranged according to a dot forming order at a time of performing printing.
The command adding processing is processing of adding command data corresponding to a printing method to data which is rasterized. As the command data, for example, there is transport data related to a transport specification (movement amount, speed, or the like, in sub-scanning direction) of the medium.
Processing of these using the printer driver is performed by an ASIC 116 and a DSP 117 (refer to
In the basic function which is described above, an image processing method which characterizes the embodiment will be subsequently described. An effect of the image processing method in the embodiment is exhibited in data processing in which a dependency relationship can be formed between data items, as in data conversion using the error diffusion method.
The error diffusion method is a method of successively binarizing each grayscale value while diffusing a quantization error which occurs when converting (quantizing) a grayscale value of a target pixel into binarized data of 1 bit or 2 bits into a grayscale value of a pixel in the vicinity of the target pixel which is not subjected to binarization, as a correction grayscale value.
In the error diffusion method, a direction of proceeding quantization is determined in advance with respect to raster data. In the example illustrated in
When describing a simple example of processing using the error diffusion method with reference to
For example, in a case in which the data for determining formation necessity of dots is 1 bit data (two grayscales), the data for determining formation necessity of dots is set to [1] which denotes that it is necessary to form dots in a case of Mm≧Mt, and for example, in a case of setting pixels which are subjected to error diffusion to four pixels ((2, 4), (3, 2), (3, 3), and (3, 4)) which are adjacent to each other, and are not subjected to quantization, the correction grayscale value Mh which is divided by four (=(Mm−Mt)/4), for example, which is based on a value of the grayscale value (Mm−Mt) which exceeds the dot formation threshold value Mt is complemented to grayscale values Mn1 to Mn4 of respective pixels.
In addition, in a case of Mm<Mt, data for determining formation necessity of dots is set to [0] which denotes that it is not necessary to form dots, and for example, the correction grayscale value Mh which is divided by 4 (=Mm/4) based on the grayscale value Mm is complemented to grayscale values Mn1 to Mn4 of the respective pixels.
For example, in a case in which data for determining formation necessity of dots is 2 bit data (four grayscales), first, a generation ratio of dots (respective generation ratio of no dot, small dot, medium dot, and large dot) corresponding to the grayscale value Mm is obtained from the dot generation ratio table in which the grayscale value (0 to 255) and the dot generation ratio correspond to each other, and dots to be formed are selected with a probability of corresponding to the obtained generation ratio of dots. Subsequently, the correction grayscale value Mh is derived based on the grayscale value Mm and a correction value predetermined in each selected dot (no dot, small dot, medium dot, and large dot). For example, in a case in which a small dot with a small generation ratio is selected with respect to a pixel of which a grayscale value is relatively large, a large correction grayscale value Mh in which dots are easily formed in an adjacent pixel is derived, and is equally distributed to the adjacent pixel, for example. In contrast to this, in a case in which a large dot with a small generation ratio is selected with respect to a pixel of which a grayscale value is relatively small, a correction grayscale value Mh in which dots are rarely formed in an adjacent pixel (for example, negative correction value) is derived, and is equally distributed to the adjacent pixel, for example.
A range of diffusing the correction grayscale value Mh is not limited to four pixels which are illustrated in
In this manner, in the data conversion using the error diffusion method, it is possible to form a dependency relationship in data processing with respect to data in a diffusion destination, and it is necessary to continuously perform the conversion processing in series, in a range in which the dependency relationship is present, since processing is performed while diffusing a quantization error one after another. As a result, for example, in a case in which an image is large, and is an image with high resolution, the number of pixels to be continuously processed in series increases, and accordingly, a processing time becomes long. Therefore, according to the embodiment, it is possible to further improve throughput of processing by detecting a boundary of a dependency relationship in data processing, and reducing the number of pixels to be continuously processed in series, using an image processing method which will be described below.
The image processing method according to the embodiment is an image processing method in which image data formed of a grayscale value in each pixel which is arranged in a two-dimensional data space is converted into print data including formation necessity of dots which configure a printed image, the method including a non-processing region extracting process of extracting a region in which a total value of the grayscale value of the pixel included in each predetermined division in which a two-dimensional data space is divided does not become a predetermined threshold value as a non-processing region, and a processing region extracting processing of extracting a region of which the periphery is surrounded with the non-processing region as a processing region in the two-dimensional data space, in order to increase throughput of processing in halftoning processing using the error diffusion method in which a dependency relationship in data processing is formed. Specific descriptions thereof will be made below.
First, as a preparation stage, image data to be printed is input to the PC 110 through the input unit 112 (refer to
Subsequently, the printer driver is started up from the application, and a dimension of a division for dividing the image data formed of a grayscale value of each pixel which is arranged in a two-dimensional data space is determined as a “predetermined division” (step S2). In addition, a threshold value for extracting a non-processing region and a processing region is set (step S3). It is preferable to set so that it is possible to estimate a quality of a printed image, and a speed of image processing, by performing an evaluation in advance, since a quality of a printed image, and throughput of image processing for generating print data become different depending on a setting method thereof. In addition, it is preferable to set the threshold value while confirming a quality of the printed image, by displaying the printed image on the display unit 113 (function of previewing printing) prior to printing.
Subsequently, the printer driver is shifted to a printing executing mode, and generation processing of print data is started.
The printer driver performs the resolution conversion processing (step S4) and the color conversion processing (step S5) which are described above.
Subsequently, the printer driver performs the “non-processing region extracting processing” in which the non-processing region is extracted, as the “non-processing region extracting process”, before shifting to an execution of the half toning processing (step S6). Specifically, first, image data is divided into predetermined divisions which are set.
Subsequently, the printer driver performs the “processing region extracting processing” (step S7) in which a region of which the periphery is surrounded with the non-processing region is extracted as a processing region, in the two-dimensional data space as the “processing region extracting process”. Specifically, as illustrated in regions in which hatched pixels are surrounded with a broken line in
Like the processing region G2c illustrated in
Returning to
Subsequently, the printer driver performs halftoning processing of pixels in the processing region, using the error diffusion method (step S9). A direction in which error diffusion is performed is set to, for example, four pixels in four directions illustrated in
That is, in processing of the region in which dots are not formed (step S8), data for determining formation necessity of dots of print data corresponding to pixels included in the division of the non-processing region which is in contact with the processing region is temporarily set so as not to form dots; however, the data for determining formation necessity of dots is finally determined according to a result obtained by performing error diffusion processing of pixels in the processing region. Accordingly, the data for determining formation necessity of dots corresponding to pixels which are included at least in the non-processing region, and included in the division which is not in contact with the processing region is set so as not to form dots.
In this manner, since the error diffusion using halftoning processing is performed up to pixels included in a division in the non-processing region which is in contact with the processing region in the direction in which the error diffusion is performed, and is not performed with respect to pixels included in a division beyond the division, there is no case in which a dependency relationship in data processing is continued at a boundary portion. As a result, it is possible to simultaneously perform halftoning processing. Specifically, as exemplified in
Subsequently, the rasterizing processing (step S10) and the command adding processing (step S11) are performed when the halftoning processing with respect to the entire processing region is completed, and generating processing of print data is completed.
As described above, the printer driver is an image processing program which is executed in the image processing apparatus (PC 110) in which image data formed of a grayscale value of each pixel which is arranged in a two-dimensional data space is converted into print data including formation necessity of dots which configures a printed image, the program including a non-processing region extracting step in which a region in which a total value of the grayscale value of the pixel included in each predetermined division in which a two-dimensional data space is divided does not become a predetermined threshold value is extracted as a non-processing region, and a processing region extracting step in which a region of which the periphery is surrounded with the non-processing region is extracted as a processing region in the two-dimensional data space.
As described above, it is possible to obtain the following effects according to the image processing method, the image processing apparatus, the image processing program, and the printing system according to the embodiment.
It is possible to divide a region of image data using an index of a grayscale value (that is, density of dots) of a pixel by extracting a region in which a total value of a grayscale value of a pixel included in each predetermined division does not become a predetermined threshold value as a non-processing region, and extracting a region of which the periphery is surrounded with the non-processing region as a processing region. By dividing a region of image data in this manner, it is possible to select a data conversion method which is appropriate for respective regions.
In the processing of converting image data into print data, it is possible to perform batch processing in which data for determining formation necessity of dots corresponding to a pixel included in the non-processing region, and is included in a division which is not in contact with the processing region is set so as not to form dots. That is, since it is not necessary to perform conversion processing of data related to each pixel in the same way, in the entire image data, it is possible to improve throughput in data conversion processing.
In addition, a pixel included in a division which is in contact with a processing region becomes a data conversion target, and since error diffusion from the pixel included in the processing region is reflected in a case of performing halftoning processing using the error diffusion method, for example, it is possible to suppress a deterioration in image quality at a boundary between the processing region and the non-processing region.
It is possible to improve throughput in data conversion processing by simultaneously performing halftoning processing with respect to respective processing regions, in a case in which there are a plurality of extracted processing regions. For example, it is possible to improve throughput in data conversion processing, by using the plurality of DSPs 117 simultaneously, as a data conversion processing engine.
In the halftoning processing, the error diffusion processing based on the error diffusion method is performed, and the error diffusion processing is performed from the pixels which are included in the processing region, and are in contact with the non-processing region to the pixels which are included in the non-processing region, and are included in the division which is in contact with the processing region. For this reason, it is possible to perform the data conversion without deteriorating printing quality, since error diffusion of pixels included in the processing region is appropriately performed by appropriately setting a predetermined division.
In addition, since the error diffusion processing is not performed in pixels which are included in the non-processing region, and are included in a division which is not in contact with the processing region, it is possible to make a time necessary for error diffusion processing short, and improve throughput in data conversion processing.
According to the printing system 1, it is possible to perform printing with high efficiency.
This application claims priority under 35 U.S.C. 119 to Japanese Patent Application No. 2016-031687, filed Feb. 23 2016. The entire disclosure of Japanese Patent Application No. 2016-031687 is hereby incorporated herein by reference.
Number | Date | Country | Kind |
---|---|---|---|
2016-031687 | Feb 2016 | JP | national |