Image processing device, recording device, image processing method, and recording method
The image processing device and method address the limitation of two-dimensional image formation by calculating gradation values and distributing errors in multiple directions to create high-quality three-dimensional images with improved dispersibility.
Patent Information
- Application Number
- JP2020113034
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-06-30
AI Technical Summary
Conventional image processing techniques are limited to forming images on two-dimensional planes and cannot create shapes in three-dimensional space.
An image processing device and method that calculates gradation values for three-dimensional pixels, distributing errors in multiple directions, including the Z-axis, to form images on three-dimensional objects using a recording device with controlled liquid ejection to achieve desired spatial frequency characteristics.
Enables the formation of high-quality images on three-dimensional objects with improved dispersibility and quality, even on surfaces that are not parallel to the primary plane, by distributing errors in multiple directions.
Smart Images

Figure 0007540213000003 
Figure 0007540213000008 
Figure 0007540213000016
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing device, a recording device, an image processing method, and a recording method. [Background technology]
[0002] As described in Patent Document 1, a technique for forming an image on a two-dimensional plane by performing halftone processing using an error diffusion method has been conventionally known. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-065100 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, the conventional technology has a problem in that it is not possible to form an image having a shape other than a two-dimensional plane. [Means for solving the problem]
[0005] In order to solve the above problems, an image processing device according to one embodiment of the present invention comprises an acquisition unit that acquires image data indicating gradation values of an image to be displayed by each of a plurality of pixels in a three-dimensional space when representing an image in the three-dimensional space, and a generation unit that generates display data by quantizing the gradation values indicated by the image data, wherein the generation unit comprises a selection unit that selects a pixel from the plurality of pixels, and a distribution unit that distributes an error based on the quantization of the gradation value corresponding to the pixel to a first pixel located in a first direction of the pixel at a first distribution rate, to a second pixel located in a second direction of the pixel at a second distribution rate, and to a third pixel located in a third direction of the pixel at a third distribution rate, wherein the second direction is a direction that intersects with the first direction, and the third direction is a direction different from the extension direction of a plane defined by the first direction and the second direction.
[0006] In addition, a recording device according to another aspect of the present invention is a recording device that forms an image on an object with a three-dimensional shape, and includes a head unit that ejects liquid, and a control unit that controls the ejection of liquid from the head unit so that the image is formed on the object by a plurality of dots whose arrangement is determined by an error diffusion method and which are formed by the liquid ejected from the head unit, and the control unit controls the ejection of liquid from the head unit so that, when the object has a first surface, the distribution of the plurality of dots on the first surface has frequency characteristics in the spatial frequency domain such that high-frequency components higher than a predetermined frequency are more numerous than low-frequency components lower than the predetermined frequency, and, when the object has a second surface that is not parallel to the first surface, the distribution of the plurality of dots on the second surface has frequency characteristics in the spatial frequency domain such that high-frequency components higher than a predetermined frequency are more numerous than low-frequency components lower than the predetermined frequency.
[0007] Moreover, an image processing method according to one embodiment of the present invention includes an acquisition step of acquiring image data indicating a gradation value of an image to be displayed by each of a plurality of pixels in a three-dimensional space when representing an image in the three-dimensional space, and a generation step of generating display data by quantizing the gradation value indicated by the image data, wherein the generation step includes a selection step of selecting one pixel from the plurality of pixels, and a distribution step of distributing an error based on the quantization of the gradation value corresponding to the one pixel to a first pixel located in a first direction of the one pixel at a first distribution rate, to a second pixel located in a second direction of the one pixel at a second distribution rate, and to a third pixel located in a third direction of the one pixel at a third distribution rate, wherein the second direction is a direction intersecting the first direction, and the third direction is a direction different from the extension direction of a plane defined by the first direction and the second direction.
[0008] Furthermore, a program according to one embodiment of the present invention causes a computer to function as an acquisition unit that acquires image data indicating gradation values of an image to be displayed by each of a plurality of pixels in a three-dimensional space when representing an image in the three-dimensional space, and a generation unit that generates display data by quantizing the gradation values indicated by the image data, wherein the generation unit functions as a selection unit that selects a pixel from the plurality of pixels, and a distribution unit that distributes an error based on the quantization of the gradation value corresponding to the pixel to a first pixel located in a first direction of the pixel by a first distribution rate, to a second pixel located in a second direction of the pixel by a second distribution rate, and to a third pixel located in a third direction of the pixel by a third distribution rate, wherein the second direction is a direction that intersects with the first direction, and the third direction is a direction different from the extension direction of a plane defined by the first direction and the second direction. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is an explanatory diagram illustrating an example of a recording system Sys according to an embodiment of the present invention. [Diagram 2] 2 is a functional block diagram showing an example of the configuration of a terminal device 1. FIG. [Diagram 3] FIG. 2 is a functional block diagram showing an example of the configuration of a recording device 5. [Figure 4] FIG. 2 is an explanatory diagram showing an example of an image formation space SP. [Diagram 5] FIG. 2 is an explanatory diagram showing an example of image data GD. [Figure 6] 13 is a flowchart illustrating an example of a display data generating process. [Figure 7] FIG. 11 is an explanatory diagram showing an example of error diffusion data GK. [Figure 8] FIG. 13 is an explanatory diagram showing an example of error diffusion data GK-Z1 according to a reference example. [Figure 9] 11A and 11B are explanatory diagrams illustrating an example of a display data generating process according to a reference example; [Figure 10] 11A and 11B are explanatory diagrams illustrating an example of a display data generating process according to a reference example; [Figure 11] FIG. 13 is an explanatory diagram showing an example of display data Img according to a reference example. [Figure 12] FIG. 13 is an explanatory diagram showing an example of display data Img according to a reference example. [Figure 13] FIG. 13 is an explanatory diagram showing an example of error diffusion data GK-Z2 according to a reference example. [Figure 14] FIG. 13 is an explanatory diagram showing an example of error diffusion data GK-Z3 according to a reference example. [Figure 15] FIG. 11 is an explanatory diagram showing an example of a display data generating process. [Figure 16] FIG. 11 is an explanatory diagram showing an example of a display data generating process. [Figure 17] FIG. 13 is an explanatory diagram showing an example of display data Img. [Figure 18] FIG. 13 is an explanatory diagram showing an example of display data Img. [Figure 19] FIG. 2 is an explanatory diagram showing an example of a curve FB. [Figure 20] FIG. 13 is an explanatory diagram showing an example of error diffusion data GK-A according to Modification 1. [Figure 21] FIG. 13 is an explanatory diagram showing an example of error diffusion data GK-B according to Modification 1. [Figure 22]It is an explanatory diagram showing an example of error diffusion data GK-C according to Modification 1. [Diagram 23] It is an explanatory diagram showing an example of error diffusion data GK-D according to Modification 1. [Figure 24] It is an explanatory diagram showing an example of error diffusion data GK-E according to Modification 1. [Diagram 25] It is a flowchart showing an example of display data generation processing according to Modification 2. [Figure 26] It is a flowchart showing an example of display data generation processing according to Modification 3. [Figure 27] It is a flowchart showing an example of display data generation processing according to Modification 3.
Best Mode for Carrying Out the Invention
[0010] Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings. However, in each figure, the dimensions and scales of each part are appropriately different from the actual ones. Further, the embodiments described below are preferred specific examples of the present invention, and thus various technically preferable limitations are imposed. However, the scope of the present invention is not limited to these embodiments unless otherwise specified in the following description to limit the present invention.
[0011] <<A. Embodiment>> The recording system Sys according to the present embodiment will be described. In the present embodiment, the recording system Sys is a system for forming an image G on the surface SF of an object Obj having a three-dimensional shape. Note that the recording system Sys may be capable of forming an image G on an object Obj having a two-dimensional shape.
[0012] <<1. Outline of Recording System Sys>> Hereinafter, first, with reference to FIGS. 1 to 3, an example of an outline of the configuration of the recording system Sys according to the present embodiment will be described.
[0013] FIG. 1 is an explanatory diagram showing an example of a recording system Sys.
[0014] As illustrated in FIG. 1, the recording system Sys includes a terminal device 1 and a recording device 5. Among these, the terminal device 1 generates display data Img that indicates an image G that the recording system Sys forms on the surface SF of the object Obj. Furthermore, based on the display data Img generated by the terminal device 1, the recording device 5 forms an image G indicated by the display data Img on the surface SF of the object Obj.
[0015] As illustrated in Fig. 1, the terminal device 1 sets a three-dimensional coordinate system having an X axis, a Y axis, and a Z axis in an image formation space SP, which is a three-dimensional space in which the object Obj exists. Hereinafter, one direction along the X axis is referred to as the +X direction, the direction opposite to the +X direction is referred to as the -X direction, one direction along the Y axis is referred to as the +Y direction, the direction opposite to the +Y direction is referred to as the -Y direction, one direction along the Z axis is referred to as the +Z direction, and the direction opposite to the +Z direction is referred to as the -Z direction. Hereinafter, the +X direction and the -X direction may be collectively referred to as the X-axis direction, the +Y direction and the -Y direction may be collectively referred to as the Y-axis direction, and the +Z direction and the -Z direction may be collectively referred to as the Z-axis direction. In this embodiment, it is assumed that the terminal device 1 sets the X-axis, Y-axis, and Z-axis so as to be perpendicular to each other, but the present invention is not limited to this aspect, and it is sufficient that the X-axis, Y-axis, and Z-axis are set so as to intersect each other.
[0016] FIG. 2 is a functional block diagram showing an example of the configuration of the terminal device 1. As shown in FIG.
[0017] As illustrated in FIG. 2, the terminal device 1 includes a terminal control unit 2 and a storage unit 3.
[0018] The storage unit 3 stores image data GD, error diffusion data GK, and a control program Pgt for the terminal device 1. Among these, the image data GD indicates an image Gf that a user of the recording system Sys intends to form on the surface SF of the object Obj using the recording system Sys. Specifically, the image data GD indicates the gradation values of the image Gf corresponding to each of the multiple pixels Px constituting the image formation space SP. Note that, as will be described in detail later, the recording system Sys may not be able to express the gradation values of the image Gf indicated by the image data GD. For this reason, the recording system Sys forms an image G in which the image Gf is expressed with gradation values that the recording system Sys can express. Specifically, the recording system Sys uses the error diffusion data GK stored in the storage unit 3 to generate display data Img based on the image data GD, and forms the image G indicated by the generated display data Img on the surface SF of the object Obj. The error diffusion data GK will be described later.
[0019] 2, the terminal control unit 2 includes one or more CPUs and controls each part of the terminal device 1. Here, CPU is an abbreviation for Central Processing Unit. The one or more CPUs provided in the terminal control unit 2 execute a control program Pgt stored in the storage unit 3 and operate according to the control program Pgt, thereby functioning as an image data acquisition unit 21 and a display data generation unit 22.
[0020] Of these, the image data acquisition unit 21 acquires the image data GD stored in the storage unit 3. Note that, in this embodiment, it is assumed as an example that the image data GD is stored in the storage unit 3, but the present invention is not limited to this aspect. For example, the image data GD may be stored in an external device that exists outside the terminal device 1. In this case, the image data acquisition unit 21 may acquire the image data GD from the external device.
[0021] The display data generating unit 22 also generates the display data Img by executing a quantization process that quantizes the gradation value of the pixel Px indicated by the image data GD. Specifically, in this embodiment, the display data generating unit 22 performs a so-called error diffusion process as the quantization process, in which the gradation value is changed for each pixel Px in sequence while reflecting an error that occurs when the gradation value of the image Gf corresponding to one pixel Px is changed in the gradation values of the image Gf corresponding to the other pixels Px. In this embodiment, the display data generating unit 22 includes a pixel selecting unit 221, a calculation processing unit 222, and an error distribution unit 223. Of these, the pixel selecting unit 221 selects a target pixel PxT, which is a pixel Px that is a target of error diffusion processing. The calculation processing unit 222 determines a gradation value of an image G corresponding to the target pixel PxT by performing error diffusion processing on the gradation value of an image Gf corresponding to the target pixel PxT. The error distribution unit 223 distributes an error E between the gradation value of the image Gf corresponding to the target pixel PxT and the gradation value of the image G corresponding to the target pixel PxT to the gradation values of the image Gf corresponding to the surrounding pixels PxS located around the target pixel PxT, by using error diffusion data GK.
[0022] FIG. 3 is a functional block diagram showing an example of the configuration of the recording device 5. As shown in FIG.
[0023] As shown in FIG. 3, the recording apparatus 5 includes a recording control unit 6, a head unit 7, an ink supply unit 8, and a robot hand 9.
[0024] The recording control unit 6 includes a processing circuit such as a CPU or FPGA, and a storage circuit such as a semiconductor memory, and controls each element of the recording device 5. Here, FPGA is an abbreviation for Field Programmable Gate Array. The processing circuit provided in the recording control unit 6 can function as a head control unit 61 and a hand control unit 62. Of these, the head control unit 61 generates a drive control signal SI for controlling the drive of the head unit 7 based on the display data Img. The head control unit 61 also generates a drive signal Com for driving the head unit 7 and a control signal Ctr-L for controlling the ink supply unit 8. Furthermore, the hand control unit 62 generates a control signal Ctr-R for controlling the position and posture of the robot hand 9 in the image formation space SP, based on the display data Img.
[0025] The head unit 7 includes a drive signal supply unit 71 and a recording head 72 . Of these, the recording head 72 includes a plurality of ejection sections D. Each ejection section D is driven by a drive signal Com to eject ink filled inside the ejection section D and form dots on the surface SF of the target object Obj. Furthermore, the drive signal supply unit 71 switches whether or not to supply the drive signal Com to each of the multiple discharge units D based on the drive control signal SI. In this embodiment, a case in which the head unit 7 is attached to the tip of a robot hand 9 is assumed as an example.
[0026] The ink supply unit 8 supplies the ink stored inside the ink supply unit 8 to the head unit 7 based on the control signal Ctr-L.
[0027] The robot hand 9 changes the position and posture of the tip of the robot hand 9 in the image formation space SP based on the control signal Ctr-R. As a result, the robot hand 9 changes the position and posture of the head unit 7 attached to the tip of the robot hand 9 in the image formation space SP so that the head unit 7 is in a position and posture suitable for forming an image G on the surface SF of the object Obj.
[0028] As described above, when the display data Img is supplied, the recording control unit 6 controls the ejection of ink from the multiple ejection sections D provided in the head unit 7 by the drive control signal SI generated based on the display data Img. The recording control unit 6 also controls the position and posture of the head unit 7 attached to the tip of the robot hand 9 in the image formation space SP by the control signal Ctr-R generated based on the display data Img. Therefore, the recording device 5 can form an image G corresponding to the display data Img on the surface SF of the object Obj placed in the image formation space SP. Hereinafter, the process in which the recording device 5 forms an image G corresponding to the display data Img on the surface SF of the object Obj may be referred to as a printing process.
[0029] <<2. Image formation space and image data>> The image formation space SP and the image data GD will be described below with reference to FIGS.
[0030] FIG. 4 is an explanatory diagram showing an example of a plurality of pixels Px arranged in the image formation space SP.
[0031] As illustrated in FIG. 4, in the image formation space SP according to this embodiment, a total of Mx*My*Mz pixels Px are arranged such that Mx pixels Px extend in the X-axis direction, My pixels Px extend in the Y-axis direction, and Mz pixels Px extend in the Z-axis direction. Here, the values Mx, My, and Mz are natural numbers of 2 or more. It is preferable that the values Mx, My, and Mz are natural numbers of 128 or more. In this embodiment, as an example, it is assumed that the values Mx, My, and Mz are natural numbers of 256 or more. In the following, a natural number M is defined as "M=Mx*My*Mz". That is, in this embodiment, M pixels Px are arranged in the image formation space SP.
[0032] In the following, a natural number variable mx that satisfies 1≦mx≦Mx is introduced, a natural number variable my that satisfies 1≦my≦My is introduced, and a natural number variable mz that satisfies 1≦mz≦Mz is introduced. As illustrated in Fig. 4, among M pixels Px present in the image formation space SP, a pixel Px that is located at the mxth position counting from the -X side to the +X side in the X-axis direction, the myth position counting from the -Y side to the +Y side in the Y-axis direction, and the mzth position counting from the -Z side to the +Z side in the Z-axis direction may be referred to as pixel Px(mx, my, mz). Furthermore, hereinafter, the position of pixel Px(mx,my,mz) in the image formation space SP in the X-axis direction is referred to as "X[mx]," the position of pixel Px(mx,my,mz) in the image formation space SP in the Y-axis direction is referred to as "Y[my]," and the position of pixel Px(mx,my,mz) in the image formation space SP in the Z-axis direction is referred to as "Z[mz]." In other words, the position of pixel Px(mx,my,mz) in the image formation space SP is expressed as (X,Y,Z)=(X[mx],Y[my],Z[mz]).
[0033] In the following description, a plurality of pixels Px located at Y=Y[my] and Z=Z[mz] will be referred to as a pixel row PxL[my][mz]. The pixel row PxL[my][mz] is composed of Mx pixels Px extending in the X-axis direction. The M pixels Px present in the image formation space SP include (My*Mz) pixel rows PxL[my][mz]. In the following, the pixels Px located at Z=Z[mz] are referred to as a pixel plane PxP[mz]. The pixel plane PxP[mz] is composed of (Mx*My) pixels Px existing on a plane parallel to the XY plane. The M pixels Px existing in the image formation space SP include Mz pixel planes PxP[mz].
[0034] Fig. 5 is an explanatory diagram for explaining an example of image data GD. In Fig. 5, as an example, it is assumed that the surface SF of the object Obj includes a plane SF1, a plane SF2, and a plane SF3.
[0035] As described above, the image data GD is data representing the image Gf. Specifically, the image data GD indicates the gradation value to be displayed by each of the M pixels Px present in the image formation space SP in order to display the image Gf in the image formation space SP. In the following, as illustrated in FIG. 5, the gradation value of the image Gf at the pixel Px (mx, my, mz) represented by the image data GD is referred to as the gradation value Gg (mx, my, mz). Note that in the following, the gradation value of the image Gf at the pixel Px represented by the image data GD may be simply referred to as the gradation value Gg.
[0036] In this embodiment, it is assumed that the gradation value Gg(mx, my, mz) is a natural number between the minimum gradation value Gg-min and the maximum gradation value Gg-max. Specifically, in this embodiment, it is assumed that the gradation value Gg-min is "0" and the gradation value Gg-max is "255". In addition, in this embodiment, it is assumed that the gradation value Gg(mx, my, mz) is one of the 256 values from "0" to "255". In this embodiment, for pixels Px(mx,my,mz) in the image formation space SP where the surface SF of the object Obj does not exist, the gradation value Gg(mx,my,mz) is set to the gradation value Gg-min. Note that in this embodiment, when the gradation value Gg(mx,my,mz) is the gradation value Gg-min, the pixel Px(mx,my,mz) is a pixel Px that does not display anything.
[0037] As described above, the terminal control unit 2 generates the display data Img based on the image data GD. The display data Img indicates the gradation values to be displayed by each of the M pixels Px present in the image formation space SP in order to form an image G on the surface SF of the object Obj present in the image formation space SP. Hereinafter, the gradation value of image G at pixel Px(mx, my, mz) indicated by display data Img will be referred to as gradation value GI(mx, my, mz). In this embodiment, gradation value GI(mx, my, mz) indicates one of two values, the maximum gradation value GI-1 and the minimum gradation value GI-0. Note that in this embodiment, as an example, it is assumed that the maximum gradation value GI-1 is the same value "255" as the gradation value Gg-max, and the minimum gradation value GI-0 is the same value "0" as the gradation value Gg-min. Furthermore, in this embodiment, a dot is formed by ink ejected from the recording device 5 at pixel Px(mx,my,mz) whose gradation value GI(mx,my,mz) is the highest gradation value GI-1. On the other hand, in this embodiment, a dot is not formed at pixel Px(mx,my,mz) whose gradation value GI(mx,my,mz) is the lowest gradation value GI-0. Hereinafter, a pixel Px which displays the highest gradation value Gg-1 and where a dot is formed will be referred to as a dot-forming pixel Px-1. Also, a pixel Px which displays the lowest gradation value Gg-0 and where a dot is not formed will be referred to as a non-dot-forming pixel Px-0.
[0038] <<3. Operation of the recording system>> An example of the operation of the recording system Sys according to this embodiment will be described below with reference to Fig. 6 and Fig. 7. In this embodiment, the processes of steps S10 to S23 in Fig. 6 correspond to error diffusion processing (quantization processing) for M pixels Px.
[0039] 6 is a flowchart showing an example of the operation of the recording system Sys when the recording system Sys executes a display data generation process. Here, the display data generation process is a process for generating display data Img based on image data GD. In other words, the display data generation process is an error diffusion process for M pixels Px.
[0040] As illustrated in FIG. 6, when the display data generation process is started, the pixel selection unit 221 sets a variable mx to "1", a variable my to "1", and a variable mz to "1" (S10). Next, the pixel selection unit 221 selects a pixel Px(mx, my, mz) as a target pixel PxT (S11).
[0041] After that, the calculation processing unit 222 determines whether the gradation value of the image Gf at the target pixel PxT indicated by the image data GD, i.e., the gradation value Gg(mx, my, mz), is equal to or greater than a threshold value Th(mx, my, mz) (S12). Here, the threshold value Th(mx, my, mz) is a value that satisfies the following formula (1). (1-γ1)*Gg-min + γ1*Gg-max ≦ Th(mx,my,mz) ≦ (1-γ2)*Gg-min + γ2*Gg-max …… Formula (1) In this embodiment, the value γ1 is a real number that satisfies, for example, "0.3≦γ1≦0.5", and the value γ2 is a real number that satisfies, for example, "0.5≦γ2≦0.7". Furthermore, it is preferable that the threshold value Th(mx, my, mz) is the same value in all of the M pixels Px. Therefore, in this embodiment, it is assumed that the threshold value Th(mx, my, mz) is "128" in all of the M pixels Px.
[0042] Next, if the result of the judgment in step S12 is positive, the calculation processing unit 222 sets the gradation value GI(mx, my, mz) corresponding to the pixel Px(mx, my, mz) which is the target pixel PxT to the highest gradation value GI-1 (S13). Then, the error distribution unit 223 calculates an error E corresponding to pixel Px(mx, my, mz) based on the gradation value Gg(mx, my, mz) and the gradation value GI(mx, my, mz) set in step S13 (S14). In the present embodiment, as an example, the error distribution unit 223 calculates a value based on a value obtained by subtracting the gradation value Gg(mx, my, mz) from the gradation value GI(mx, my, mz) in step S14 as the error E corresponding to pixel Px(mx, my, mz). More specifically, in step S14, the error distribution unit 223 adds "1" to the highest gradation value GI-1 and further subtracts the gradation value Gg(mx, my, mz) to calculate the error E corresponding to pixel Px(mx, my, mz). Note that the error distribution unit 223 may calculate, for example, in step S14, a value obtained by subtracting the gradation value Gg(mx, my, mz) from the highest gradation value GI-1 as the error E corresponding to pixel Px(mx, my, mz). Hereinafter, the error E corresponding to pixel Px(mx, my, mz) may be referred to as error E(mx, my, mz). In this embodiment, in step S14, the error distribution unit 223 calculates the error E(mx, my, mz) as a value obtained by subtracting the gradation value Gg(mx, my, mz) from the gradation value GI(mx, my, mz), but this is merely an example, and the present invention is not limited to this. For example, the error distribution unit 223 may calculate the error E(mx, my, mz) as a value obtained by subtracting the gradation value Gg(mx, my, mz) from a constant such as the gradation value Gg-max. In this case, the maximum gradation value GI-1 may be set to "1", and the minimum gradation value GI-0 may be set to "0". In this embodiment, the error E(mx, my, mz) calculated in step S14 satisfies "E(mx, my, mz)≧0".
[0043] On the other hand, if the result of the judgment in step S12 is negative, the calculation processing unit 222 sets the gradation value GI(mx, my, mz) corresponding to the pixel Px(mx, my, mz) which is the target pixel PxT to the lowest gradation value GI-0 (S15). Then, the error distribution unit 223 calculates an error E(mx, my, mz) based on the gradation value Gg(mx, my, mz) and the gradation value GI(mx, my, mz) set in step S15 (S16). Specifically, in step S16, the error distribution unit 223 calculates a value obtained by subtracting the gradation value Gg(mx, my, mz) from the gradation value GI(mx, my, mz) as the error E(mx, my, mz). More specifically, in step S16, the error distribution unit 223 calculates a value obtained by subtracting the gradation value Gg(mx, my, mz) from the lowest gradation value GI-0 as the error E(mx, my, mz). In this embodiment, in step S16, the error distribution unit 223 calculates the error E(mx, my, mz) as a value obtained by subtracting the gradation value Gg(mx, my, mz) from the gradation value GI(mx, my, mz), but this is merely an example, and the present invention is not limited to this. For example, the error distribution unit 223 may calculate the error E(mx, my, mz) as a value obtained by subtracting the gradation value Gg(mx, my, mz) from a constant such as the gradation value Gg-min. In this case, too, the maximum gradation value GI-1 may be set to "1" and the minimum gradation value GI-0 may be set to "0". In this embodiment, the error E(mx, my, mz) calculated in step S16 satisfies "E(mx, my, mz)≦0".
[0044] In this embodiment, as illustrated in FIG. 6 as step S100, the processes of steps S12, S13, and S15 executed by the calculation processing unit 222 correspond to error diffusion processing for one pixel Px (quantization processing for one pixel Px).
[0045] Thereafter, the error distribution unit 223 executes an error distribution process (S17) using the error diffusion data GK to distribute the error E(mx, my, mz) to one or more gradation values Gg corresponding to one or more surrounding pixels PxS located around the target pixel PxT. Note that in the following, when the target pixel PxT is pixel Px(mx, my, mz), the surrounding pixel PxS may be expressed as pixel Px(mx+dx, my+dy, mz+dz). Here, the values dx, dy, and dz are integers.
[0046] Specifically, in the error distribution process of step S17, when a pixel Px(mx+dx, my+dy, mz+dz) that is a surrounding pixel PxS exists, the error distribution unit 223 changes the gradation value Gg(mx+dx, my+dy, mz+dz) corresponding to the pixel Px(mx+dx, my+dy, mz+dz) based on the following equations (2) and (3). Gg(mx+dx,my+dy,mz+dz) = Gg(mx+dx,my+dy,mz+dz) - EB(dx,dy,dz) …… Equation (2) EB(dx,dy,dz) = {E(mx,my,mz)*B(dx,dy,dz)}... Equation (3) That is, in the error distribution process of step S17, the error distribution unit 223 changes the gradation value Gg(mx+dx,my+dy,mz+dz) indicated by the image data GD by subtracting the distribution value EB(dx,dy,dz), which is the product of the error E(mx,my,mz) and the distribution rate B(dx,dy,dz), from the gradation value Gg(mx+dx,my+dy,mz+dz). Note that in this embodiment, as an example, when the right side of formula (3) includes a value after the decimal point, the right side of formula (3) is rounded up, rounded down, or the like so that the distribution value EB(dx,dy,dz) becomes an integer value. Here, the distribution ratio B(dx, dy, dz) is a real number that satisfies "0 < B(dx, dy, dz) < 1". In this embodiment, one or more surrounding pixels PxS corresponding to the target pixel PxT and the distribution ratio B corresponding to each surrounding pixel PxS are determined by the error diffusion data GK.
[0047] FIG. 7 is an explanatory diagram for explaining the error diffusion data GK according to this embodiment.
[0048] As shown in FIG. 7, the error diffusion data GK is data that determines the surrounding pixel PxS and the distribution ratio B corresponding to the surrounding pixel PxS. Specifically, when the pixel Px(mx, my, mz) is the target pixel PxT, the error diffusion data GK is the value dx, the value dy, and the value dz for specifying the pixel Px(mx + dx, my + dy, mz + dz) that is the surrounding pixel PxS, and the distribution ratio B(dx, dy, dz) corresponding to the pixel Px(mx + dx, my + dy, mz + dz), and is data that associates them. In this embodiment, when the target pixel PxT is the pixel Px(mx, my, mz), it is assumed as an example that the cases where the pixel Px(mx + 1, my, mz), the pixel Px(mx, my + 1, mz), and the pixel Px(mx, my, mz + 1) correspond to the surrounding pixel PxS.
[0049] Also, in this embodiment, it is assumed that the following relationships shown in Expressions (4) to (6) hold among the distribution ratio B(1, 0, 0) corresponding to the pixel Px(mx + 1, my, mz), the distribution ratio B(0, 1, 0) corresponding to the pixel Px(mx, my + 1, mz), and the distribution ratio B(0, 0, 1) corresponding to the pixel Px(mx, my, mz + 1). B(1, 0, 0) > B(0, 1, 0) …… Expression (4) B(0, 1, 0) > B(0, 0, 1) …… Expression (5) B(1, 0, 0) + B(0, 1, 0) + B(0, 0, 1) = 1 …… Expression (6) That is, in the present embodiment, it is assumed that the distribution ratio B(1,0,0) is larger than the distribution ratio B(0,1,0), and the distribution ratio B(0,1,0) is larger than the distribution ratio B(0,0,1). Also, in the present embodiment, it is assumed that the sum of the distribution ratio B(1,0,0), the distribution ratio B(0,1,0), and the distribution ratio B(0,0,1) is "1". More specifically, in the present embodiment, as an example, it is assumed that the distribution ratio B(1,0,0) is "8 / 16", the distribution ratio B(0,1,0) is "5 / 16", and the distribution ratio B(0,0,1) is "3 / 16". That is, in the present embodiment, the error distribution unit 223 subtracts the distribution value EB(1,0,0), which is a value obtained by multiplying the error E(mx,my,mz) by "8 / 16", from the gradation value Gg(mx+1,my,mz) in the error distribution process of step S17 to update the gradation value Gg(mx+1,my,mz), subtracts the distribution value EB(0,1,0), which is a value obtained by multiplying the error E(mx,my,mz) by "5 / 16", from the gradation value Gg(mx,my+1,mz) to update the gradation value Gg(mx,my+1,mz), and subtracts the distribution value EB(0,0,1), which is a value obtained by multiplying the error E(mx,my,mz) by "3 / 16", from the gradation value Gg(mx,my,mz+1) to update the gradation value Gg(mx,my,mz+1).
[0050] Returning the explanation to FIG. 6. As shown in FIG. 6, the pixel selection unit 221 determines whether the value mx corresponding to the pixel Px(mx,my,mz) satisfies "mx = Mx" (S18). In other words, in step S18, the pixel selection unit 221 determines whether the pixel Px(mx+1,my,mz) does not exist among the M pixels Px that constitute the image formation space SP. Then, when the result of the determination in step S18 is negative, that is, when the value mx satisfies "mx < Mx", the pixel selection unit 221 adds "1" to the value mx (S19) and advances the process to step S11. On the other hand, when the result of the determination in step S18 is affirmative, that is, when the value mx satisfies "mx = Mx" and the pixel Px(mx + 1, my, mz) does not exist among the M pixels Px that constitute the image formation space SP, the pixel selection unit 221 determines whether the value my corresponding to the pixel Px(mx, my, mz) satisfies "my = My" (S20). In other words, in step S20, the pixel selection unit 221 determines whether the pixel Px(mx, my + 1, mz) does not exist among the M pixels Px that constitute the image formation space SP. When the result of the determination in step S20 is negative, that is, when the value my satisfies "my < My", the pixel selection unit 221 sets the value mx to "1", adds "1" to the value my (S21), and advances the process to step S11. On the other hand, when the result of the determination in step S20 is affirmative, that is, when the value my satisfies "my = My" and the pixel Px(mx, my + 1, mz) does not exist among the M pixels Px that constitute the image formation space SP, the pixel selection unit 221 determines whether the value mz corresponding to the pixel Px(mx, my, mz) satisfies "mz = Mz" (S22). In other words, in step S22, the pixel selection unit 221 determines whether the pixel Px(mx, my, mz + 1) does not exist among the M pixels Px that constitute the image formation space SP. When the result of the determination in step S22 is negative, that is, when the value mz satisfies "mz < Mz", the pixel selection unit 221 sets the values mx and my to "1", adds "1" to the value mz (S23), and advances the process to step S11. On the other hand, when the result of the determination in step S22 is affirmative, that is, when the value mz satisfies "mz = Mz" and the pixel Px(mx, my, mz + 1) does not exist among the M pixels Px that constitute the image formation space SP, the display data generation process shown in FIG. 6 is terminated.
[0051] <<4. Display Data Generation Process According to the Reference Example>> In the following, in order to clarify the effects of this embodiment, a display data generation process executed in a recording system according to a reference example will be described with reference to FIGS. The recording system according to the reference example is configured similarly to the recording system Sys according to the embodiment, except that error diffusion data GK-Z1 is stored instead of the error diffusion data GK.
[0052] FIG. 8 is an explanatory diagram for explaining the error diffusion data GK-Z1.
[0053] 8, the error diffusion data GK-Z1 is data that designates pixels Px(mx+1,my,mz) and Px(mx,my+1,mz) as surrounding pixels PxS when pixel Px(mx,my,mz) is the target pixel PxT. That is, the error diffusion data GK-Z1 differs from the error diffusion data GK according to the embodiment in that, when pixel Px(mx,my,mz) is the target pixel PxT, pixel Px(mx,my,mz+1) is not designated as the surrounding pixel PxS. Moreover, the error diffusion data GK-Z1 is data that determines the distribution ratios B(1,0,0) and B(0,1,0) so that the distribution ratio B(1,0,0) corresponding to pixel Px(mx+1,my,mz) is greater than the distribution ratio B(0,1,0) corresponding to pixel Px(mx,my+1,mz). More specifically, in the reference example, it is assumed that the error diffusion data GK-Z1 determines the distribution ratio B(1,0,0) to be "10 / 16" and the distribution ratio B(0,1,0) to be "6 / 16". That is, in the reference example, the error distribution unit 223 updates the gradation value Gg(mx+1,my,mz) in the error distribution process by subtracting a distribution value EB(1,0,0) obtained by multiplying the error E(mx,my,mz) by "10 / 16" from the gradation value Gg(mx+1,my,mz), and updates the gradation value Gg(mx,my+1,mz) by subtracting a distribution value EB(0,1,0) obtained by multiplying the error E(mx,my,mz) by "6 / 16" from the gradation value Gg(mx,my+1,mz). In other words, the reference example differs from the embodiment in that the error distribution unit 223 does not distribute the error E to the pixel Px in the Z-axis direction of the target pixel PxT in the error distribution process.
[0054] 9 and 10 are explanatory diagrams for explaining the display data generating process according to the reference example.
[0055] In the example shown in Fig. 9 and Fig. 10, it is assumed that "Mx=3", "My=3", "Mz=3", and "M=3*3*3=27", and that there are 27 pixels Px in the image formation space SP. In the example shown in Fig. 9 and Fig. 10, it is assumed that the gradation value Gg-min is "0", the gradation value Gg-max is "255", and the threshold value Th(mx, my, mz) is "128", as in the embodiment. In the example shown in Fig. 9 and Fig. 10, it is assumed that all of the M gradation values Gg(mx, my, mz) corresponding to the M pixels Px(mx, my, mz) constituting the image formation space SP are "128".
[0056] 9, the image data acquisition unit 21 acquires image data GD in which all M gradation values Gg(mx, my, mz) are 128 during a period t0. Note that, hereinafter, the image data GD during a period t may be referred to as image data GD[t].
[0057] Next, in period t1, the display data generating unit 22 selects pixel Px(1,1,1) as the target pixel PxT and performs error diffusion processing.
[0058] Specifically, in period t1, the calculation processing unit 222 first determines whether the gradation value Gg(1,1,1) indicated by the image data GD[t0] is equal to or greater than the threshold value Th(1,1,1). In the example shown in Fig. 9 and Fig. 10, the gradation value Gg(1,1,1) indicated by the image data GD[t0] is "128" and the threshold value Th(1,1,1) is "128", so "Gg(1,1,1) ≧ Th(1,1,1)" is established. Therefore, the calculation processing unit 222 sets the gradation value GI(1,1,1) to the highest gradation value GI-1, i.e., "255". Then, the error distribution unit 223 calculates the error E(1,1,1) by subtracting the gradation value Gg(1,1,1) indicated by the image data GD[t0] from the value obtained by adding "1" to the gradation value GI(1,1,1) during the period t1. In the example shown in Figures 9 and 10, the gradation value GI(1,1,1) is "255" and the gradation value Gg(1,1,1) indicated by the image data GD[t0] is "128", so the error E(1,1,1) is the value obtained by adding "1" to the highest gradation value GI-1 and further subtracting the gradation value Gg(1,1,1), that is, "128". Next, the error distribution unit 223 calculates a distribution value EB(1,0,0) by multiplying the error E(1,1,1) and the distribution rate B(1,0,0) during the period t1, and changes the gradation value Gg(2,1,1) by subtracting the distribution value EB(1,0,0) from the gradation value Gg(2,1,1) indicated by the image data GD[t0]. Also, the error distribution unit 223 calculates a distribution value EB(0,1,0) by multiplying the error E(1,1,1) and the distribution rate B(0,1,0) during the period t1, and changes the gradation value Gg(1,2,1) by subtracting the distribution value EB(0,1,0) from the gradation value Gg(1,2,1) indicated by the image data GD[t0]. In the example shown in Figures 9 and 10, the error E(1,1,1) is "128", the gradation value Gg(2,1,1) indicated by the image data GD[t0] is "128", and the distribution rate B(1,0,0) is "10 / 16", so the error distribution unit 223 calculates the distribution value EB(1,0,0) as "128*(10 / 16)", or "80", based on equation (3), and further calculates the gradation value Gg(2,1,1) indicated by the image data GD[t1] as "128-80", or "48", based on equation (2), and sets the gradation value Gg(2,1,1) indicated by the image data GD[t1] to "48". Similarly, since the error E(1,1,1) is "128", the gradation value Gg(1,2,1) indicated by the image data GD[t0] is "128", and the distribution rate B(0,1,0) is "6 / 16", the error distribution unit 223 calculates the distribution value EB(0,1,0) as "128*(6 / 16)", or "48", based on equation (3), and further calculates the gradation value Gg(1,2,1) indicated by the image data GD[t1] as "128-48", or "80", based on equation (2), and sets the gradation value Gg(1,2,1) indicated by the image data GD[t1] to "80".
[0059] In the examples shown in FIGS. 9 and 10, in the +X direction of pixel Px(1,1,1) selected as the target pixel PxT during period t1, pixel Px(2,1,1) exists. Therefore, the pixel selection unit 221 selects pixel Px(2,1,1) as the target pixel PxT during period t2. Then, the display data generation unit 22 executes error diffusion processing with pixel Px(2,1,1) as the target pixel PxT during period t2.
[0060] Specifically, during period t2, the arithmetic processing unit 222 first determines whether the gradation value Gg(2,1,1) indicated by the image data GD[t1] is greater than or equal to the threshold value Th(2,1,1). In the examples shown in FIGS. 9 and 10, since the gradation value Gg(2,1,1) indicated by the image data GD[t1] is "48" and the threshold value Th(2,1,1) is "128", "Gg(2,1,1)<Th(2,1,1)" holds. Therefore, the arithmetic processing unit 222 sets the gradation value GI(2,1,1) to the lowest gradation value GI-0, that is, "0". Then, during period t2, the error distribution unit 223 calculates the error E(2,1,1) by subtracting the gradation value Gg(2,1,1) indicated by the image data GD[t1] from the gradation value GI(2,1,1). In the examples shown in FIGS. 9 and 10, since the gradation value GI(2,1,1) is "0" and the gradation value Gg(2,1,1) indicated by the image data GD[t1] is "48", the error E(2,1,1) is the value obtained by subtracting the gradation value Gg(2,1,1) from the lowest gradation value GI-0, that is, "-48". Next, during period t2, the error distribution unit 223 calculates the distribution value EB(1,0,0) by multiplying the error E(2,1,1) and the distribution rate B(1,0,0), and changes the gradation value Gg(3,1,1) by subtracting the distribution value EB(1,0,0) from the gradation value Gg(3,1,1) indicated by the image data GD[t1]. Also, during period t2, the error distribution unit 223 calculates the distribution value EB(0,1,0) by multiplying the error E(2,1,1) and the distribution rate B(0,1,0), and changes the gradation value Gg(2,2,1) by subtracting the distribution value EB(0,1,0) from the gradation value Gg(2,2,1) indicated by the image data GD[t1]. In the example shown in Figures 9 and 10, the error E(2,1,1) is "-48", the gradation value Gg(3,1,1) indicated by the image data GD[t1] is "128", and the distribution rate B(1,0,0) is "10 / 16", so the error distribution unit 223 calculates the distribution value EB(1,0,0) based on equation (3) as "(-48)*(10 / 16)", or "-30", and further calculates the gradation value Gg(3,1,1) indicated by the image data GD[t2] as "128-(-30)", or "158", based on equation (2), and sets the gradation value Gg(3,1,1) indicated by the image data GD[t2] to "158". Similarly, since the error E(2,1,1) is "-48", the gradation value Gg(2,2,1) indicated by the image data GD[t1] is "128", and the distribution rate B(0,1,0) is "6 / 16", the error distribution unit 223 calculates the distribution value EB(0,1,0) based on equation (3) as "(-48)*(6 / 16)", or "-18", and further calculates the gradation value Gg(2,2,1) indicated by the image data GD[t2] as "128-(-18)", or "146", based on equation (2), and sets the gradation value Gg(2,2,1) indicated by the image data GD[t2] to "146".
[0061] 9 and 10, pixel Px(3,1,1) is present in the +X direction of pixel Px(2,1,1) selected as target pixel PxT in period t2. Therefore, the pixel selection unit 221 selects pixel Px(3,1,1) as target pixel PxT in period t3. Then, the display data generation unit 22 performs error diffusion processing with pixel Px(3,1,1) as target pixel PxT in period t3.
[0062] Specifically, in period t3, the calculation processing unit 222 first determines whether the gradation value Gg(3,1,1) indicated by the image data GD[t2] is equal to or greater than the threshold value Th(3,1,1). In the example shown in Fig. 9 and Fig. 10, the gradation value Gg(3,1,1) indicated by the image data GD[t2] is "158" and the threshold value Th(3,1,1) is "128", so "Gg(3,1,1) ≥ Th(3,1,1)" is established. Therefore, the calculation processing unit 222 sets the gradation value GI(3,1,1) to the highest gradation value GI-1, i.e., "255". Then, during period t3, the error distribution unit 223 calculates the error E(3,1,1) by subtracting the gradation value Gg(3,1,1) indicated by the image data GD[t2] from the value obtained by adding "1" to the gradation value GI(3,1,1). In the example shown in Figures 9 and 10, the gradation value GI(3,1,1) is "255" and the gradation value Gg(3,1,1) indicated by the image data GD[t2] is "158", so the error E(3,1,1) is "98". Next, during period t3, the error distribution unit 223 calculates a distribution value EB(0,1,0) by multiplying the error E(3,1,1) and the distribution rate B(0,1,0) together, and changes the gradation value Gg(3,2,1) indicated by the image data GD[t2] by subtracting the distribution value EB(0,1,0) from the gradation value Gg(3,2,1). Note that since there is no pixel Px in the +X direction of pixel Px(3,1,1), the error distribution unit 223 does not calculate the distribution value EB(1,0,0) during period t3. In the example shown in Figures 9 and 10, the error E(3,1,1) is "98" and the gradation value Gg(3,2,1) indicated by the image data GD[t2] is "128", so the error distribution unit 223 sets the gradation value Gg(3,2,1) indicated by the image data GD[t3] to "91".
[0063] In the example shown in FIGS. 9 and 10, in the +X direction of the pixel Px(3,1,1) selected as the target pixel PxT in the period t3, there is no pixel Px. On the other hand, in the +Y direction of the pixel Px(3,1,1) selected as the target pixel PxT in the period t3, there is a pixel Px. Therefore, the pixel selection unit 221 selects the pixel Px(1,2,1) as the target pixel PxT in the period t4. Then, the display data generation unit 22 executes error diffusion processing with the pixel Px(1,2,1) as the target pixel PxT in the period t4.
[0064] Specifically, in the period t4, the arithmetic processing unit 222 first determines whether the gradation value Gg(1,2,1) indicated by the image data GD[t3] is greater than or equal to the threshold value Th(1,2,1). In the example shown in FIGS. 9 and 10, since the gradation value Gg(1,2,1) indicated by the image data GD[t3] is "80" and the threshold value Th(1,2,1) is "128", "Gg(1,2,1)<Th(1,2,1)" holds. Therefore, the arithmetic processing unit 222 sets the gradation value GI(1,2,1) to the lowest gradation value GI-0, that is, "0". Then, in the period t4, the error distribution unit 223 calculates the error E(1,2,1) by subtracting the gradation value Gg(1,2,1) indicated by the image data GD[t3] from the gradation value GI(1,2,1). In the example shown in FIGS. 9 and 10, since the gradation value GI(1,2,1) is "0" and the gradation value Gg(1,2,1) indicated by the image data GD[t3] is "80", the error E(1,2,1) is "-80". Next, the error distribution unit 223 calculates a distribution value EB(1,0,0) by multiplying the error E(1,2,1) and the distribution rate B(1,0,0) in the period t4, and changes the gradation value Gg(2,2,1) indicated by the image data GD[t3] by subtracting the distribution value EB(1,0,0) from the gradation value Gg(2,2,1). Also, the error distribution unit 223 calculates a distribution value EB(0,1,0) by multiplying the error E(1,2,1) and the distribution rate B(0,1,0) in the period t4, and changes the gradation value Gg(1,3,1) indicated by the image data GD[t3] by subtracting the distribution value EB(0,1,0). In the example shown in Figures 9 and 10, the error E(1,2,1) is "-80", the gradation value Gg(2,2,1) indicated by the image data GD[t3] is "146", and the gradation value Gg(1,3,1) indicated by the image data GD[t3] is "128", so the error distribution unit 223 sets the gradation value Gg(2,2,1) indicated by the image data GD[t4] to "189" and the gradation value Gg(1,3,1) indicated by the image data GD[t4] to "165".
[0065] After that, in periods t5 to t9, the display data generation unit 22 performs error diffusion processing on pixels Px(2,2,1), Px(3,2,1), Px(1,3,1), Px(2,3,1), and Px(3,3,1) as target pixels PxT.
[0066] In the example shown in FIG. 9 and FIG. 10, there is no pixel Px in the +X direction of pixel Px(3,3,1) selected as target pixel PxT in period t9. In addition, there is no pixel Px in the +Y direction of pixel Px(3,3,1) selected as target pixel PxT in period t9. On the other hand, there is a pixel Px in the +Z direction of pixel Px(3,3,1) selected as target pixel PxT in period t9. Therefore, the pixel selection unit 221 selects pixel Px(1,1,2) as target pixel PxT in period t10. Then, the display data generation unit 22 performs error diffusion processing with pixel Px(1,1,2) as target pixel PxT in period t10.
[0067] Specifically, in period t10, the calculation processing unit 222 first determines whether the gradation value Gg(1,1,2) indicated by the image data GD[t9] is equal to or greater than the threshold value Th(1,1,2). In the example shown in Fig. 9 and Fig. 10, the gradation value Gg(1,1,2) indicated by the image data GD[t9] is "128" and the threshold value Th(1,1,2) is "128", so "Gg(1,1,2) ≥ Th(1,1,2)" holds. Therefore, the calculation processing unit 222 sets the gradation value GI(1,1,2) to the highest gradation value GI-1, i.e., "255". Then, during period t10, the error distribution unit 223 calculates the error E(1,1,2) by subtracting the gradation value Gg(1,1,2) indicated by the image data GD[t9] from the value obtained by adding "1" to the gradation value GI(1,1,2). In the example shown in Figures 9 and 10, the gradation value GI(1,1,2) is "255" and the gradation value Gg(1,1,2) indicated by the image data GD[t9] is "128", so the error E(1,1,2) is "128". Next, the error distribution unit 223 calculates a distribution value EB(1,0,0) by multiplying the error E(1,1,2) and the distribution rate B(1,0,0) in the period t10, and changes the gradation value Gg(2,1,2) by subtracting the distribution value EB(1,0,0) from the gradation value Gg(2,1,2) indicated by the image data GD[t9]. Also, the error distribution unit 223 calculates a distribution value EB(0,1,0) by multiplying the error E(1,1,2) and the distribution rate B(0,1,0) in the period t10, and changes the gradation value Gg(1,2,2) by subtracting the distribution value EB(0,1,0) from the gradation value Gg(1,2,2) indicated by the image data GD[t9]. In the example shown in Figures 9 and 10, the error E(1,1,2) is "128", the gradation value Gg(2,1,2) indicated by the image data GD[t9] is "128", and the gradation value Gg(1,2,2) indicated by the image data GD[t9] is "128", so the error distribution unit 223 sets the gradation value Gg(2,1,2) indicated by the image data GD[t10] to "48" and sets the gradation value Gg(1,2,2) indicated by the image data GD[t10] to "80".
[0068] Thereafter, in periods t11 to t27, the display data generating unit 22 performs error diffusion processing on pixels Px(2,1,2) to Px(3,3,3) as the target pixel PxT. As a result, as shown in FIG. 10, in the reference example, in period t27, display data Img is generated such that the gradation value GI(1,1,1), gradation value GI(3,1,1), gradation value GI(2,2,1), gradation value GI(1,3,1), gradation value GI(3,3,1), gradation value GI(1,1,2), gradation value GI(3,1,2), gradation value GI(2,2,2), gradation value GI(1,3,2), gradation value GI(3,3,2), gradation value GI(1,1,3), gradation value GI(3,1,3), gradation value GI(2,2,3), gradation value GI(1,3,3), and gradation value GI(3,3,3) have the maximum gradation value GI-1, and the other gradation values GI(mx,my,mz) have the minimum gradation value GI-0. That is, in the reference example, as shown in FIG. 10, display data Img can be generated such that the dispersion of the dot-forming pixel Px-1, whose gradation value GI(mx, my, mz) is the highest gradation value GI-1, is high in a plane parallel to the XY plane.
[0069] Fig. 11 and Fig. 12 are explanatory diagrams for explaining display data Img according to a reference example generated during period t27. Of these, Fig. 11 is a diagram showing the display data Img according to the reference example on a plane parallel to the XZ plane, and Fig. 12 is a diagram showing the display data Img according to the reference example on a plane parallel to the YZ plane.
[0070] 11 and 12, in the reference example, at the position of X=X[1] and Y=Y[1], the position of X=X[1] and Y=Y[3], the position of X=X[2] and Y=Y[2], the position of X=X[3] and Y=Y[1], and the position of X=X[3] and Y=Y[3], dot-forming pixels Px-1 whose gradation value GI(mx, my, mz) is the maximum gradation value GI-1 are formed so as to be continuous in the Z-axis direction. In other words, in the error distribution process in the reference example, only the distribution of the error E in the XY plane is performed, and the distribution of the error E in the Z-axis direction is not performed, so that the arrangement of the values of the display data Img at Z=Z[1], the arrangement of the values of the display data Img at Z=Z[2], and the arrangement of the values of the display data Img at Z=Z[3] are the same. For this reason, in the reference example, when the surface SF of the object Obj has a plane parallel to the XZ plane or a plane parallel to the YZ plane, a striped pattern extending in the Z-axis direction is formed on the plane. In other words, in the reference example, the dispersibility of the dot-forming pixels Px-1 cannot be increased on the plane parallel to the XZ plane and the plane parallel to the YZ plane. For this reason, in the reference example, when a half-tone image G is formed on the plane parallel to the XZ plane and the plane parallel to the YZ plane of the surface SF of the object Obj, there is a problem that the image quality of the image G deteriorates.
[0071] In the reference example, the display data generation process is executed using error diffusion data GK-Z1 as shown in FIG. 8, but the display data generation process may also be executed using error diffusion data GK-Z2 as shown in FIG. 13, or the display data generation process may be executed using error diffusion data GK-Z3 as shown in FIG. 14.
[0072] FIG. 13 is an explanatory diagram for explaining the error diffusion data GK-Z2.
[0073] As shown in Figure 13, the error diffusion data GK-Z2 is data that designates pixels Px(mx+1,my,mz), Px(mx,my+1,mz), Px(mx+1,my+1,mz), and Px(mx-1,my+1,mz) as surrounding pixels PxS when pixel Px(mx,my,mz) is the target pixel PxT. Moreover, the error diffusion data GK-Z2 is data that defines each distribution ratio B such that distribution ratio B(1,0,0) is greater than distribution ratio B(0,1,0), distribution ratio B(0,1,0) is greater than distribution ratio B(1,1,0), distribution ratio B(-1,1,0) is greater than distribution ratio B(1,1,0), and distribution ratio B(0,1,0) is greater than distribution ratio B(-1,1,0).
[0074] FIG. 14 is an explanatory diagram for explaining the error diffusion data GK-Z3.
[0075] As shown in FIG. 14, when pixel Px(mx, my, mz) is the target pixel PxT, the error diffusion data GK-Z3 includes pixel Px(mx+1, my, mz), pixel Px(mx+2, my, mz), pixel Px(mx-2, my+1, mz), pixel Px(mx-1, my+1, mz), pixel Px(mx, my+1, mz), pixel Px(m The data specifies pixel Px(mx+1, my+1, mz), pixel Px(mx+2, my+1, mz), pixel Px(mx-2, my+2, mz), pixel Px(mx-1, my+2, mz), pixel Px(mx, my+2, mz), pixel Px(mx+1, my+2, mz), and pixel Px(mx+2, my+2, mz) as surrounding pixels PxS. Furthermore, in the error diffusion data GK-Z3, the distribution ratios B(1,0,0) and B(0,1,0) are greater than the distribution ratios B(2,0,0), B(-1,1,0), B(1,1,0), and B(0,2,0), and the distribution ratios B(2,0,0), B(-1,1,0), B(1,1,0), and B(0,2,0) are greater than the distribution ratios B(-2 This data defines each distribution rate B such that distribution rate B(-2,1,0), distribution rate B(2,1,0), distribution rate B(-1,2,0), and distribution rate B(1,2,0) are greater than distribution rate B(-2,2,0) and distribution rate B(2,2,0).
[0076] As described above, the error diffusion data GK-Z2 and the error diffusion data GK-Z3 are data that determine that only the distribution of the error E is performed in the XY plane, and that the distribution of the error E is not performed in the Z-axis direction. Therefore, even when the display data generation process is performed using the error diffusion data GK-Z2 or the error diffusion data GK-Z3 instead of the error diffusion data GK-Z1 in the reference example, the error distribution process only distributes the error E in the XY plane, and does not distribute the error E in the Z-axis direction. Therefore, even when the display data generation process is performed using the error diffusion data GK-Z2 or the error diffusion data GK-Z3 instead of the error diffusion data GK-Z1 in the reference example, the dispersibility of the dot-forming pixel Px-1 cannot be increased in the plane parallel to the XZ plane and the plane parallel to the YZ plane, and the problem of the image quality of the image G formed on the surface SF of the object Obj being deteriorated still exists.
[0077] <<5. Display Data Generation Process According to the Present Embodiment>> The display data generation process executed in the recording system Sys will be described below with reference to FIGS.
[0078] As described above, the recording system Sys executes the error diffusion process using the error diffusion data GK shown in Fig. 7. As described above, the error diffusion data GK is data that, when pixel Px(mx, my, mz) is the target pixel PxT, designates pixels Px(mx+1, my, mz), Px(mx, my+1, mz), and Px(mx, my, mz+1) as surrounding pixels PxS. As described above, the error diffusion data GK is data that determines the distribution ratios B(1,0,0), B(0,1,0), and B(0,0,1) so that the distribution ratio B(1,0,0) is greater than the distribution ratio B(0,1,0) and the distribution ratio B(0,1,0) is greater than the distribution ratio B(0,0,1). In other words, this embodiment differs from the reference example in that the error distribution unit 223 distributes the error E to the pixel Px in the Z-axis direction of the target pixel PxT in the error distribution process. Note that, in the examples shown in Figs. 15 to 18, a case is assumed in which the distribution ratio B(1,0,0) is "8 / 16", the distribution ratio B(0,1,0) is "5 / 16", and the distribution ratio B(0,0,1) is "3 / 16".
[0079] 15 and 16 are explanatory diagrams for explaining the display data generation process according to this embodiment.
[0080] In the examples shown in Figs. 15 and 16, as in the examples shown in Figs. 9 and 10, it is assumed that "Mx=3", "My=3", "Mz=3", and "M=3*3*3=27", and that there are 27 pixels Px in the image formation space SP. In the examples shown in Figs. 15 and 16, as in the examples shown in Figs. 9 and 10, it is assumed that the gradation value Gg-min is "0", the gradation value Gg-max is "255", and the threshold value Th(mx, my, mz) is "128". In the examples shown in Figs. 15 and 16, it is assumed that all of the M gradation values Gg(mx, my, mz) corresponding to the M pixels Px(mx, my, mz) constituting the image formation space SP are "128".
[0081] As shown in FIG. 15, the image data acquisition unit 21 acquires image data GD[t0] in which all of M gradation values Gg(mx, my, mz) are "128" during a period t0.
[0082] Next, in period t1, the display data generating unit 22 selects pixel Px(1,1,1) as the target pixel PxT and performs error diffusion processing.
[0083] Specifically, in period t1, the calculation processing unit 222 first determines whether the gradation value Gg(1,1,1) indicated by the image data GD[t0] is equal to or greater than the threshold value Th(1,1,1). In the example shown in Fig. 15 and Fig. 16, the gradation value Gg(1,1,1) indicated by the image data GD[t0] is "128" and the threshold value Th(1,1,1) is "128", so "Gg(1,1,1) ≧ Th(1,1,1)" is established. Therefore, the calculation processing unit 222 sets the gradation value GI(1,1,1) to the highest gradation value GI-1, i.e., "255". Then, the error distribution unit 223 calculates the error E(1,1,1) by subtracting the gradation value Gg(1,1,1) indicated by the image data GD[t0] from the value obtained by adding "1" to the gradation value GI(1,1,1) during the period t1. In the example shown in Fig. 15 and Fig. 16, the gradation value GI(1,1,1) is "255" and the gradation value Gg(1,1,1) indicated by the image data GD[t0] is "128", so the error E(1,1,1) is the value obtained by adding "1" to the highest gradation value GI-1 and further subtracting the gradation value Gg(1,1,1), that is, "128". Next, the error distribution unit 223 calculates a distribution value EB(1,0,0) by multiplying the error E(1,1,1) and the distribution rate B(1,0,0) during the period t1, and changes the gradation value Gg(2,1,1) by subtracting the distribution value EB(1,0,0) from the gradation value Gg(2,1,1) indicated by the image data GD[t0]. Also, the error distribution unit 223 calculates a distribution value EB(0,1,0) by multiplying the error E(1,1,1) and the distribution rate B(0,1,0) during the period t1, and changes the gradation value Gg(1,2,1) by subtracting the distribution value EB(0,1,0) from the gradation value Gg(1,2,1) indicated by the image data GD[t0]. In addition, during period t1, the error distribution unit 223 calculates a distribution value EB(0,0,1) by multiplying the error E(1,1,1) and the distribution rate B(0,0,1), and changes the gradation value Gg(1,1,2) indicated by the image data GD[t0] by subtracting the distribution value EB(0,0,1) from the gradation value Gg(1,1,2). In the example shown in Figures 15 and 16, the error E(1,1,1) is "128", the gradation value Gg(2,1,1) indicated by the image data GD[t0] is "128", and the distribution rate B(1,0,0) is "8 / 16", so the error distribution unit 223 calculates the distribution value EB(1,0,0) as "128*(8 / 16)", or "64", based on equation (3), and further calculates the gradation value Gg(2,1,1) indicated by the image data GD[t1] as "128-64", or "64", based on equation (2), and sets the gradation value Gg(2,1,1) indicated by the image data GD[t1] to "64". Similarly, since the error E(1,1,1) is "128", the gradation value Gg(1,2,1) indicated by the image data GD[t0] is "128", and the distribution rate B(0,1,0) is "5 / 16", the error distribution unit 223 calculates the distribution value EB(0,1,0) as "128*(5 / 16)", or "40", based on equation (3), and further calculates the gradation value Gg(1,2,1) indicated by the image data GD[t1] as "128-40", or "88", based on equation (2), and sets the gradation value Gg(1,2,1) indicated by the image data GD[t1] to "88". Similarly, since the error E(1,1,1) is "128", the gradation value Gg(1,1,2) indicated by the image data GD[t0] is "128", and the distribution ratio B(0,0,1) is "3 / 16", the error distribution unit 223 calculates the distribution value EB(0,0,1) as "128*(3 / 16)", that is, "24", based on Equation (3). Further, based on Equation (2), the gradation value Gg(1,1,2) indicated by the image data GD[t1] is calculated as "128 - 24", that is, "104", and the gradation value Gg(1,1,2) indicated by the image data GD[t1] is set to "104".
[0084] In the examples shown in FIGS. 15 and 16, in the +X direction of the pixel Px(1,1,1) selected as the target pixel PxT in the period t1, there is a pixel Px(2,1,1). Therefore, the pixel selection unit 221 selects the pixel Px(2,1,1) as the target pixel PxT in the period t2. Then, the display data generation unit 22 executes error diffusion processing with the pixel Px(2,1,1) as the target pixel PxT in the period t2.
[0085] Specifically, in the period t2, the arithmetic processing unit 222 first determines whether the gradation value Gg(2,1,1) indicated by the image data GD[t1] is greater than or equal to the threshold value Th(2,1,1). In the examples shown in FIGS. 15 and 16, since the gradation value Gg(2,1,1) indicated by the image data GD[t1] is "64" and the threshold value Th(2,1,1) is "128", "Gg(2,1,1) < Th(2,1,1)" holds. Therefore, the arithmetic processing unit 222 sets the gradation value GI(2,1,1) to the lowest gradation value GI-0, that is, "0". Then, the error distribution unit 223 calculates the error E(2,1,1) by subtracting the gradation value Gg(2,1,1) indicated by the image data GD[t1] from the gradation value GI(2,1,1) in the period t2. In the examples shown in FIGS. 15 and 16, since the gradation value GI(2,1,1) is "0" and the gradation value Gg(2,1,1) indicated by the image data GD[t1] is "64", the error E(2,1,1) is the value obtained by subtracting the gradation value Gg(2,1,1) from the lowest gradation value GI-0, that is, "-64". Next, the error distribution unit 223 calculates a distribution value EB(1,0,0) by multiplying the error E(2,1,1) and the distribution rate B(1,0,0) during the period t2, and changes the gradation value Gg(3,1,1) indicated by the image data GD[t1] by subtracting the distribution value EB(1,0,0) from the gradation value Gg(3,1,1). Also, the error distribution unit 223 calculates a distribution value EB(0,1,0) by multiplying the error E(2,1,1) and the distribution rate B(0,1,0) during the period t2, and changes the gradation value Gg(2,2,1) by subtracting the distribution value EB(0,1,0) from the gradation value Gg(2,2,1) indicated by the image data GD[t1]. In addition, during period t2, the error distribution unit 223 calculates a distribution value EB(0,0,1) by multiplying the error E(2,1,1) and the distribution rate B(0,0,1), and changes the gradation value Gg(2,1,2) indicated by the image data GD[t1] by subtracting the distribution value EB(0,1,0) from the gradation value Gg(2,1,2). In the example shown in Figures 15 and 16, the error E(2,1,1) is "-64", the gradation value Gg(3,1,1) indicated by the image data GD[t1] is "128", and the distribution rate B(1,0,0) is "8 / 16", so the error distribution unit 223 calculates the distribution value EB(1,0,0) based on equation (3) as "(-64)*(8 / 16)", or "-32", and further calculates the gradation value Gg(3,1,1) indicated by the image data GD[t2] as "128-(-32)", or "160", based on equation (2), and sets the gradation value Gg(3,1,1) indicated by the image data GD[t2] to "160". Similarly, since the error E(2,1,1) is "-64", the gradation value Gg(2,2,1) indicated by the image data GD[t1] is "128", and the distribution rate B(0,1,0) is "5 / 16", the error distribution unit 223 calculates the distribution value EB(0,1,0) based on equation (3) as "(-64)*(5 / 16)", or "-20", and further calculates the gradation value Gg(2,2,1) indicated by the image data GD[t2] as "128-(-20)", or "148", based on equation (2), and sets the gradation value Gg(2,2,1) indicated by the image data GD[t2] to "148". Similarly, since the error E(2,1,1) is "-64", the gradation value Gg(2,1,2) indicated by the image data GD[t1] is "128", and the distribution rate B(0,0,1) is "3 / 16", the error distribution unit 223 calculates the distribution value EB(0,0,1) based on equation (3) as "(-64)*(3 / 16)", or "-12", and further calculates the gradation value Gg(2,1,2) indicated by the image data GD[t2] as "128-(-12)", or "140", based on equation (2), and sets the gradation value Gg(2,1,2) indicated by the image data GD[t2] to "140".
[0086] 15 and 16, pixel Px(3,1,1) is present in the +X direction of pixel Px(2,1,1) selected as target pixel PxT in period t2. Therefore, the pixel selection unit 221 selects pixel Px(3,1,1) as target pixel PxT in period t3. Then, the display data generation unit 22 performs error diffusion processing with pixel Px(3,1,1) as target pixel PxT in period t3.
[0087] Specifically, in period t3, the calculation processing unit 222 first determines whether the gradation value Gg(3,1,1) indicated by the image data GD[t2] is equal to or greater than the threshold value Th(3,1,1). In the example shown in Fig. 15 and Fig. 16, the gradation value Gg(3,1,1) indicated by the image data GD[t2] is "160" and the threshold value Th(3,1,1) is "128", so "Gg(3,1,1) ≥ Th(3,1,1)" is established. Therefore, the calculation processing unit 222 sets the gradation value GI(3,1,1) to the highest gradation value GI-1, i.e., "255". Then, during period t3, the error distribution unit 223 calculates the error E(3,1,1) by subtracting the gradation value Gg(3,1,1) indicated by the image data GD[t2] from the value obtained by adding "1" to the gradation value GI(3,1,1). In the example shown in Figures 9 and 10, the gradation value GI(3,1,1) is "255" and the gradation value Gg(3,1,1) indicated by the image data GD[t2] is "160", so the error E(3,1,1) is "96". Next, the error distribution unit 223 calculates a distribution value EB(0,1,0) by multiplying the error E(3,1,1) and the distribution rate B(0,1,0) in the period t3, and changes the gradation value Gg(3,2,1) indicated by the image data GD[t2] by subtracting the distribution value EB(0,1,0) from the gradation value Gg(3,2,1). Also, the error distribution unit 223 calculates a distribution value EB(0,0,1) by multiplying the error E(3,1,1) and the distribution rate B(0,0,1) in the period t3, and changes the gradation value Gg(3,1,2) by subtracting the distribution value EB(0,0,1) from the gradation value Gg(3,1,2) indicated by the image data GD[t2]. In addition, since there is no pixel Px in the +X direction of pixel Px(3,1,1), the error distribution unit 223 does not calculate the distribution value EB(1,0,0) in period t3. In the example shown in Figures 15 and 16, the error E(3,1,1) is "96", the gradation value Gg(3,2,1) indicated by the image data GD[t2] is "128", and the gradation value Gg(3,1,2) indicated by the image data GD[t2] is "128", so the error distribution unit 223 sets the gradation value Gg(3,2,1) indicated by the image data GD[t3] to "98" and sets the gradation value Gg(3,1,2) indicated by the image data GD[t3] to "110".
[0088] In the examples shown in Figures 15 and 16, there is no pixel Px in the +X direction of pixel Px(3,1,1) selected as target pixel PxT in period t3. On the other hand, there is a pixel Px in the +Y direction of pixel Px(3,1,1) selected as target pixel PxT in period t3. Therefore, the pixel selection unit 221 selects pixel Px(1,2,1) as target pixel PxT in period t4. Then, the display data generation unit 22 performs error diffusion processing with pixel Px(1,2,1) as target pixel PxT in period t4.
[0089] Specifically, in period t4, the arithmetic processing unit 222 first determines whether the gradation value Gg(1,2,1) indicated by the image data GD[t3] is greater than or equal to the threshold value Th(1,2,1). In the examples shown in FIGS. 15 and 16, since the gradation value Gg(1,2,1) indicated by the image data GD[t3] is "88" and the threshold value Th(1,2,1) is "128", "Gg(1,2,1) < Th(1,2,1)" holds. Therefore, the arithmetic processing unit 222 sets the gradation value GI(1,2,1) to the lowest gradation value GI-0, that is, "0". Then, in period t4, the error distribution unit 223 calculates the error E(1,2,1) by subtracting the gradation value Gg(1,2,1) indicated by the image data GD[t3] from the gradation value GI(1,2,1). In the examples shown in FIGS. 9 and 10, since the gradation value GI(1,2,1) is "0" and the gradation value Gg(1,2,1) indicated by the image data GD[t3] is "88", the error E(1,2,1) is "-88". Next, the error distribution unit 223 calculates a distribution value EB(1,0,0) by multiplying the error E(1,2,1) and the distribution rate B(1,0,0) in the period t4, and changes the gradation value Gg(2,2,1) indicated by the image data GD[t3] by subtracting the distribution value EB(1,0,0) from the gradation value Gg(2,2,1). Also, the error distribution unit 223 calculates a distribution value EB(0,1,0) by multiplying the error E(1,2,1) and the distribution rate B(0,1,0) in the period t4, and changes the gradation value Gg(1,3,1) indicated by the image data GD[t3] by subtracting the distribution value EB(0,1,0). In addition, during period t4, the error distribution unit 223 calculates a distribution value EB(0,0,1) by multiplying the error E(1,2,1) and the distribution rate B(0,0,1), and changes the gradation value Gg(1,2,2) indicated by the image data GD[t3] by subtracting the distribution value EB(0,0,1) from the gradation value Gg(1,2,2). 15 and 16, the error E(1,2,1) is "-88", the gradation value Gg(2,2,1) indicated by the image data GD[t3] is "148", the gradation value Gg(1,3,1) indicated by the image data GD[t3] is "128", and the gradation value Gg(1,2,2) indicated by the image data GD[t3] is "128", so the error distribution unit 223 sets the gradation value Gg(2,2,1) indicated by the image data GD[t4] to "192", sets the gradation value Gg(1,3,1) indicated by the image data GD[t4] to "156", and sets the gradation value Gg(1,3,1) indicated by the image data GD[t4] to "145".
[0090] After that, in periods t5 to t9, the display data generation unit 22 performs error diffusion processing on pixels Px(2,2,1), Px(3,2,1), Px(1,3,1), Px(2,3,1), and Px(3,3,1) as target pixels PxT.
[0091] In the examples shown in FIGS. 15 and 16, in the +X direction of pixel Px(3,3,1) selected as the target pixel PxT during period t9, there is no pixel Px. Also, in the +Y direction of pixel Px(3,3,1) selected as the target pixel PxT during period t9, there is no pixel Px. On the other hand, in the +Z direction of pixel Px(3,3,1) selected as the target pixel PxT during period t9, there is a pixel Px. For this reason, the pixel selection unit 221 selects pixel Px(1,1,2) as the target pixel PxT in period t10. Then, the display data generation unit 22 executes error diffusion processing with pixel Px(1,1,2) as the target pixel PxT in period t10.
[0092] Specifically, in period t10, the arithmetic processing unit 222 first determines whether the gradation value Gg(1,1,2) indicated by the image data GD[t9] is greater than or equal to the threshold value Th(1,1,2). In the examples shown in FIGS. 15 and 16, since the gradation value Gg(1,1,2) indicated by the image data GD[t9] is "104" and the threshold value Th(1,1,2) is "128", "Gg(1,1,2)<Th(1,1,2)" holds. For this reason, the arithmetic processing unit 222 sets the gradation value GI(1,1,2) to the lowest gradation value GI-0, that is, "0". Then, in period t10, the error distribution unit 223 calculates the error E(1,1,2) by subtracting the gradation value Gg(1,1,2) indicated by the image data GD[t9] from the gradation value GI(1,1,2). In the examples shown in FIGS. 15 and 16, since the gradation value GI(1,1,2) is "0" and the gradation value Gg(1,1,2) indicated by the image data GD[t9] is "104", the error E(1,1,2) is "-104". Next, the error distribution unit 223 calculates a distribution value EB(1,0,0) by multiplying the error E(1,1,2) and the distribution rate B(1,0,0) in the period t10, and changes the gradation value Gg(2,1,2) by subtracting the distribution value EB(1,0,0) from the gradation value Gg(2,1,2) indicated by the image data GD[t9]. Also, the error distribution unit 223 calculates a distribution value EB(0,1,0) by multiplying the error E(1,1,2) and the distribution rate B(0,1,0) in the period t10, and changes the gradation value Gg(1,2,2) by subtracting the distribution value EB(0,1,0) from the gradation value Gg(1,2,2) indicated by the image data GD[t9]. In addition, during period t10, the error distribution unit 223 calculates a distribution value EB(0,0,1) by multiplying the error E(1,1,2) and the distribution rate B(0,0,1), and changes the gradation value Gg(1,1,3) indicated by the image data GD[t9] by subtracting the distribution value EB(0,0,1) from the gradation value Gg(1,1,3). In the example shown in Figures 15 and 16, the error E(1,1,2) is "-104", the gradation value Gg(2,1,2) indicated by the image data GD[t9] is "140", the gradation value Gg(1,2,2) indicated by the image data GD[t9] is "145", and the gradation value Gg(1,1,3) indicated by the image data GD[t9] is "128", so the error distribution unit 223 sets the gradation value Gg(2,1,2) indicated by the image data GD[t10] to "192", the gradation value Gg(1,2,2) indicated by the image data GD[t10] to "178", and the gradation value Gg(1,1,3) indicated by the image data GD[t10] to "148".
[0093] Thereafter, in periods t11 to t27, the display data generating unit 22 performs error diffusion processing on pixels Px(2,1,2) to Px(3,3,3) as the target pixel PxT. As a result, as shown in FIG. 16, in this embodiment, in the period t27, the display data Img is generated such that the gradation value GI(1,1,1), gradation value GI(3,1,1), gradation value GI(2,2,1), gradation value GI(1,3,1), gradation value GI(3,3,1), gradation value GI(2,1,2), gradation value GI(1,2,2), gradation value GI(3,2,2), gradation value GI(2,3,2), gradation value GI(1,1,3), gradation value GI(3,1,3), gradation value GI(2,2,3), gradation value GI(1,3,3), and gradation value GI(3,3,3) have the maximum gradation value GI-1, and the other gradation values GI(mx,my,mz) have the minimum gradation value GI-0. That is, in this embodiment, as shown in FIG. 10, display data Img can be generated such that the dispersion of the dot-forming pixel Px-1, whose gradation value GI(mx, my, mz) is the highest gradation value GI-1, is high in a plane parallel to the XY plane.
[0094] Fig. 17 and Fig. 18 are explanatory diagrams for explaining the display data Img according to the present embodiment generated in period t27. Of these, Fig. 17 is a diagram showing the display data Img according to the present embodiment in a plane parallel to the XZ plane, and Fig. 18 is a diagram showing the display data Img according to the present embodiment in a plane parallel to the YZ plane.
[0095] 17 and 18, in the error distribution process in this embodiment, in addition to distributing the error E in the XY plane, the error E is also distributed in the Z-axis direction. Therefore, in this embodiment, the dispersibility of the dot-forming pixels Px-1 can be increased in planes parallel to the XY plane, as well as in planes parallel to the XZ plane and in planes parallel to the YZ plane. That is, in this embodiment, compared to the reference example, when a half-tone image G is formed on the surface SF of the object Obj, on planes parallel to the XY plane, as well as in planes parallel to the XZ plane and in planes parallel to the YZ plane, it is possible to improve the image quality of the image G.
[0096] <<6. Effects of this embodiment>> Fig. 19 is an explanatory diagram for explaining the spatial frequency characteristics of a plurality of dot-forming pixels Px-1 corresponding to the highest gradation value GI-1 among a plurality of gradation values GI(mx, my, mz) indicated by display data Img generated based on image data GD when the gradation value Gg(mx, my, mz) indicated by image data GD is an intermediate gradation value Gg-mid. Specifically, Fig. 19 shows a curve FB indicating the relationship between the spatial frequency of the distribution of the plurality of dot-forming pixels Px-1 in the predetermined plane and the amount of each frequency component of the distribution of the plurality of dot-forming pixels Px-1 in the predetermined plane when the gradation value Gg(mx, my, mz) indicated by image data GD is an intermediate gradation value Gg-mid and display data Img is generated based on the image data GD, and when the image formation space SP is cut by a predetermined plane and the distribution of the plurality of dot-forming pixels Px-1 in the predetermined plane is converted from the spatial domain to the spatial frequency domain. Here, the intermediate gradation value Gg-mid is a gradation value between the gradation values Gg-min and Gg-max. More specifically, the intermediate gradation value Gg-mid may be, for example, a gradation value expressed by the following formula (7). (1-γ3)*Gg-min + γ3*Gg-max ≦ Gg-mid ≦ (1-γ4)*Gg-min + γ4*Gg-max …… Formula (7) In addition, in the formula (7), the value γ3 is a real number that satisfies, for example, "0.2≦γ3≦0.5", and the value γ4 is a real number that satisfies, for example, "0.5≦γ4≦0.7".
[0097] 19, the curve FB has the characteristic that, among the spatial frequencies of the distribution of a plurality of dot-forming pixels Px-1 in a predetermined plane, the frequency components between the maximum frequency fmax, which is the highest frequency, and the intermediate frequency fmid are more numerous than the frequency components between the minimum frequency fmin, which is the lowest frequency, and the intermediate frequency fmid. Here, the intermediate frequency fmid is the frequency intermediate between the intermediate frequency fmid and the maximum frequency fmax. More specifically, the intermediate frequency fmid may be a frequency expressed as "fmid = {fmin + fmax} ÷ 2", for example. Hereinafter, the characteristic that in the spatial frequency domain, the frequency components between the highest frequency fmax and the intermediate frequency fmid are more numerous than the frequency components between the lowest frequency fmin and the intermediate frequency fmid will be referred to as a "predetermined spatial frequency characteristic." 19, the curve FB has a peak on the maximum frequency fmax side from the intermediate frequency fmid. Therefore, in this embodiment, the curve FB having a peak on the maximum frequency fmax side from the intermediate frequency fmid may be referred to as a "predetermined spatial frequency characteristic." More specifically, in this embodiment, the predetermined spatial frequency characteristic is a blue noise characteristic. However, in this embodiment, the predetermined spatial frequency characteristic is not limited to the case where it is a blue noise characteristic. In this embodiment, the predetermined spatial frequency characteristic may be a frequency characteristic that has more frequency components on the high frequency side in the spatial frequency domain compared to the white noise characteristic. For example, in this embodiment, the predetermined spatial frequency characteristic may be a purple noise characteristic.
[0098] In this embodiment, two planes, a plane PL1 and a plane PL2, can be adopted as the predetermined plane. Specifically, in this embodiment, when the gradation value Gg(mx, my, mz) indicated by the image data GD is a middle gradation value Gg-mid and the display data Img is generated based on the image data GD, the distribution of the plurality of dot-formation pixels Px-1 in the plane PL1 that cuts the image formation space SP has predetermined spatial frequency characteristics, and the distribution of the plurality of dot-formation pixels Px-1 in the plane PL2 that cuts the image formation space SP has predetermined spatial frequency characteristics. Here, the plane PL1 and the plane PL2 are planes that are not parallel to each other. In other words, the normal vector of the plane PL1 and the normal vector of the plane PL2 intersect. For example, the normal vector of the plane PL1 and the normal vector of the plane PL2 may be perpendicular to each other. Specifically, the plane PL1 may be a plane having a normal vector extending in the Z-axis direction. More specifically, the plane PL1 may be a plane parallel to the XY plane. Moreover, the plane PL2 may be a plane having a normal vector extending in the X-axis direction. More specifically, the plane PL2 may be a plane parallel to the YZ plane.
[0099] As described above, according to this embodiment, dots can be arranged on the surface SF of the object Obj so that the distribution of the plurality of dot-forming pixels Px-1 on the plane PL1 has frequency characteristics in the spatial frequency domain such that there are more high-frequency components higher than the intermediate frequency fmid than low-frequency components lower than the intermediate frequency fmid, and the distribution of the plurality of dot-forming pixels Px-1 on the plane PL2 that is not parallel to the plane PL1 has frequency characteristics in the spatial frequency domain such that there are more high-frequency components higher than the intermediate frequency fmid than low-frequency components lower than the intermediate frequency fmid. Therefore, according to this embodiment, it is possible to increase the dispersibility of the arrangement of dots on the surface of the object Obj even if the shape of the object Obj is other than a two-dimensional plane.
[0100] Furthermore, in this embodiment, the error distribution unit 223 distributes the error E in the target pixel PxT not only in the X-axis direction and the Y-axis direction, but also in the Z-axis direction. Therefore, according to this embodiment, it is possible to increase the dispersibility of the arrangement of dots on the surface SF of the object Obj, not only in a plane parallel to the XY plane, but also in a plane parallel to the XZ plane and a plane parallel to the YZ plane.
[0101] In this embodiment, the pixel to be processed for error diffusion is first shifted in the +X direction, and then when it becomes maximum in the +X direction (there is no other pixel in the +X direction from that pixel), it moves to the pixel adjacent by one pixel in the +Y direction and the smallest in the +X direction, and shifts in the +X direction again. Furthermore, when it becomes maximum in both the +X and +Y directions (there is no other pixel in the +X direction from that pixel, and there is no other pixel in the +Y direction), it moves to the pixel adjacent by one pixel in the +Z direction and the smallest in the +X and +Y directions, and shifts in the +X direction again. In other words, the pixel to be processed for error diffusion is shifted in the +X direction, +Y direction, and +Z direction, and the priority at that time is the highest in the +X direction, the next highest in the +Y direction, and the lowest in the +Z direction. At this time, the distribution ratio B(1,0,0) corresponding to the distribution ratio in the +X direction is the largest, the distribution ratio B(0,1,0) corresponding to the distribution ratio in the +Y direction is the next largest, and the distribution ratio B(0,0,1) corresponding to the distribution ratio in the +Z direction is the smallest. In other words, the higher the priority of the direction when shifting the target pixel, the larger the distribution ratio. This is for the following reason: When error diffusion processing is performed on a certain target pixel Px(mx,my,mz), errors from up to three pixels, pixel Px(mx-1,my,mz), pixel Px(mx,my-1,mz), and pixel Px(mx,my,mz-1), are distributed to the target pixel Px(mx,my,mz) by the error diffusion processing performed up to that point. In this case, if the priority is determined to be decreasing in the +X direction, +Y direction, and +Z direction as described above, then, for the above three pixels, error diffusion processing is performed first on pixel Px(mx,my,mz-1), then on pixel Px(mx,my-1,mz), and finally on pixel Px(mx-1,my,mz). Since the error diffusion process becomes more accurate as the number of processed pixels increases, the error diffusion process for pixel Px(mx, my-1, mz) is more reliable than the error diffusion process for pixel Px(mx, my, mz-1), and the error diffusion process for pixel Px(mx-1, my, mz) is more reliable than the error diffusion process for pixel Px(mx, my-1, mz). Therefore, it is preferable that the error distributed to the target pixel Px(mx, my, mz) has the largest ratio of the most reliable pixel Px(mx-1, my, mz) and the smallest ratio of the least reliable pixel Px(mx, my, mz-1).
[0102] Furthermore, in this embodiment, the number of times that the error E is distributed from other pixels Px to pixel Px(mx, my+1, mz) may be greater than the number of times that the error E is distributed from other pixels Px to pixel Px(mx+1, my, mz). In this embodiment, the distribution rate B(1,0,0) is determined to be greater than the distribution rate B(0,1,0). Therefore, in this embodiment, it is possible to improve the uniformity of the distribution of the error E to each of the M pixels Px in the image formation space SP, compared to a mode in which the distribution rate B(1,0,0) is equal to or less than the distribution rate B(0,1,0). Furthermore, in this embodiment, the number of times that the error E is distributed from other pixels Px to pixel Px(mx, my, mz+1) may be greater than the number of times that the error E is distributed from other pixels Px to pixel Px(mx, my+1, mz). In contrast, in this embodiment, the distribution rate B(0,1,0) is determined to be greater than the distribution rate B(0,0,1). Therefore, in this embodiment, it is possible to improve the uniformity of the distribution of the error E to each of the M pixels Px in the image formation space SP, compared to a mode in which the distribution rate B(0,1,0) is equal to or less than the distribution rate B(0,0,1).
[0103] <<7. Summary of the embodiment>> As described above, the terminal device 1 according to this embodiment includes an image data acquisition unit 21 that acquires image data GD indicating the gradation values Gg(mx, my, mz) of the image Gf to be displayed by each of the M pixels Px in the image formation space SP when the image Gf is represented in the three-dimensional image formation space SP, and a display data generation unit 22 that generates display data Img by quantizing the gradation values Gg(mx, my, mz) indicated by the image data GD. The display data generation unit 22 includes a pixel selection unit 221 that selects a pixel Px(mx, my, mz) from the M pixels Px, and a display data generation unit 222 that generates display data Img based on the quantization of the gradation value Gg(mx, my, mz) corresponding to the pixel Px(mx, my, mz). and an error distribution unit 223 that distributes the error E(mx, my, mz) to pixel Px(mx+1, my, mz) located in the +X direction of pixel Px(mx, my, mz) at a distribution rate B(1, 0, 0), to pixel Px(mx, my+1, mz) located in the +Y direction of pixel Px(mx, my, mz) at a distribution rate B(0, 1, 0), and to pixel Px(mx, my, mz+1) located in the +Z direction of pixel Px(mx, my, mz) at a distribution rate B(0, 0, 1), wherein the +Y direction is a direction intersecting the +X direction, and the +Z direction is a direction different from the extension direction of the XY plane defined by the +X direction and the +Y direction. That is, in this embodiment, the error distribution unit 223 distributes the error E(mx, my, mz) in the +Z direction in addition to distributing the error E(mx, my, mz) in the XY plane. Therefore, according to this embodiment, even when an image G is formed on the surface SF of an object Obj having a three-dimensional shape, it is possible to suppress the graininess of dots from occurring in the image G. In this embodiment, the terminal device 1 is an example of an "image processing device", the image data acquisition unit 21 is an example of an "acquisition unit", the display data generation unit 22 is an example of a "generation unit", the pixel selection unit 221 is an example of a "selection unit", the error distribution unit 223 is an example of a "distribution unit", the image formation space SP is an example of a "three-dimensional space", the pixel Px(mx, my, mz) is an example of a "one pixel", and the pixel Px(mx+1, my, mz) is an example of a "first pixel". where pixel Px(mx, my+1, mz) is an example of a "second pixel", pixel Px(mx, my, mz+1) is an example of a "third pixel", the +X direction is an example of a "first direction", the +Y direction is an example of a "second direction", the +Z direction is an example of a "third direction", distribution ratio B(1,0,0) is an example of a "first distribution ratio", distribution ratio B(0,1,0) is an example of a "second distribution ratio", and distribution ratio B(0,0,1) is an example of a "third distribution ratio".
[0104] Furthermore, in the terminal device 1 according to this embodiment, if any of the M pixels Px in the image formation space SP is present in the +X direction of pixel Px(mx, my, mz), the pixel selection unit 221 may be characterized in that, after selecting pixel Px(mx, my, mz), it selects another pixel Px located in the +X direction of pixel Px(mx, my, mz).
[0105] Furthermore, in the terminal device 1 according to this embodiment, the M pixels Px in the image formation space SP may include (My*Mz) pixel columns PxL extending in the +X direction, and when none of the M pixels Px in the image formation space SP is present in the +X direction of pixel Px(mx, my, mz), the pixel selection unit 221 may select pixel Px(mx, my, mz) and then select another pixel Px from the pixel column PxL[my+1][mz] located in the +Y direction of the pixel column PxL[my][mz] including pixel Px(mx, my, mz). In this embodiment, the pixel row PxL[my][mz] is an example of a "one pixel row", and the pixel row PxL[my+1][mz] is an example of an "other pixel row".
[0106] Furthermore, in the terminal device 1 according to this embodiment, the M pixels Px in the image formation space SP include Mz pixel planes PxP parallel to the XY plane, and when none of the M pixels Px in the image formation space SP is present in the +X direction of the pixel Px(mx, my, mz) and none of the (My*Mz) pixel columns PxL in the image formation space SP is present in the +Y direction of the pixel column PxL[my][mz] including the pixel Px(mx, my, mz), the pixel selection unit 221 may be characterized in that, after selecting the pixel Px(mx, my, mz), it selects another pixel Px from the pixel surface PxP[mz+1] located in the +Z direction of the pixel surface PxP[mz] including the pixel Px(mx, my, mz). That is, in this embodiment, the pixel selection unit 221 selects a pixel Px from the pixel plane PxP[mz+1] after completing the selection of the pixel Px on the pixel plane PxP[mz]. Therefore, according to this embodiment, it is possible to perform error diffusion processing on M pixels Px in the three-dimensional image formation space SP, and even when an image G is formed on the surface SF of an object Obj having a three-dimensional shape, it is possible to suppress the graininess of dots from occurring in the image G. In this embodiment, the pixel plane PxP[mz] is an example of a "one pixel plane," and the pixel plane PxP[mz+1] is an example of an "other pixel plane."
[0107] Furthermore, in the terminal device 1 according to this embodiment, the distribution ratio B(1,0,0) may be characterized as being greater than the distribution ratio B(0,1,0) and the distribution ratio B(0,0,1). Therefore, according to this embodiment, it is possible to increase the uniformity of the distribution of error E to each of the M pixels Px in the image formation space SP, compared to the case where the distribution ratio B(1,0,0) is B(0,1,0) or less than B(0,0,1).
[0108] Furthermore, in the terminal device 1 according to this embodiment, the distribution rate B(0,1,0) may be larger than the distribution rate B(0,0,1). Therefore, according to this embodiment, it is possible to increase the uniformity of the distribution of error E to each of the M pixels Px in the image formation space SP, compared to a case in which the distribution rate B(0,1,0) is equal to or lower than the distribution rate B(0,0,1).
[0109] Furthermore, in the terminal device 1 according to this embodiment, pixel Px(mx+1,my,mz) may be characterized as being adjacent to pixel Px(mx,my,mz) in the +X direction of pixel Px(mx,my,mz), pixel Px(mx,my+1,mz) is adjacent to pixel Px(mx,my,mz) in the +Y direction of pixel Px(mx,my,mz), and pixel Px(mx,my,mz+1) is adjacent to pixel Px(mx,my,mz) in the +Z direction of pixel Px(mx,my,mz).
[0110] Furthermore, in the terminal device 1 according to this embodiment, the +X direction may be a direction perpendicular to the +Y direction and the +Z direction, and the +Y direction may be a direction perpendicular to the +Z direction.
[0111] Furthermore, the recording device 5 according to this embodiment is a recording device 5 that forms an image G on an object Obj having a three-dimensional shape, and includes a head unit 7 that ejects ink, and a recording control unit 6 that controls the ejection of ink from the head unit 7 so that an image G is formed on the object Obj by a plurality of dots whose arrangement is determined by an error diffusion process using an error diffusion method and that are formed by the ink ejected from the head unit 7. The recording control unit 6 is characterized in that, when the object Obj has a plane PL1, the distribution of the plurality of dots on the plane PL1 has frequency characteristics in which high-frequency components higher than the intermediate frequency fmid are more numerous than low-frequency components lower than the intermediate frequency fmid in the spatial frequency domain, and, when the object Obj has a plane PL2 that is not parallel to the plane PL1, the distribution of the plurality of dots on the plane PL2 has frequency characteristics in which high-frequency components higher than the intermediate frequency fmid are more numerous than low-frequency components lower than the intermediate frequency fmid in the spatial frequency domain. Therefore, according to this embodiment, even if the shape of the object Obj is a shape other than a two-dimensional plane, it is possible to increase the dispersion of the dot arrangement on the surface of the object Obj. In this embodiment, the object Obj is an example of an "object", ink is an example of a "liquid", the recording control unit 6 is an example of a "control unit", the plane PL1 is an example of a "first surface", the plane PL2 is an example of a "second surface", and the intermediate frequency fmid is an example of a "predetermined frequency".
[0112] Furthermore, in the recording device 5 of this embodiment, the distribution of multiple dots on the plane PL1 may be characterized in that it has frequency characteristics different from white noise characteristics in the spatial frequency domain, and the distribution of multiple dots on the plane PL2 has frequency characteristics different from white noise characteristics in the spatial frequency domain.
[0113] Further, in the recording apparatus 5 according to the present embodiment, the distribution of a plurality of dots in the plane PL1 has blue noise characteristics in the spatial frequency domain, and the distribution of a plurality of dots in the plane PL2 has blue noise characteristics in the spatial frequency domain, which may be a feature.
[0114] <<B. Modified Example>> Each of the embodiments illustrated above can be variously modified. Specific modification modes are illustrated below. Two or more modes arbitrarily selected from the following illustrations can be appropriately combined within a range not conflicting with each other.
[0115] <Modified Example 1> In the above-described embodiment, the error distribution unit 223 uses the error diffusion data GK shown in FIG. 7 in the error diffusion process. However, the present invention is not limited to such a mode. In the error diffusion process, the error distribution unit 223 may use error diffusion data that enables distribution of the error E in the Z-axis direction in addition to the distribution of the error E in the XY plane. For example, in the error diffusion process, the error distribution unit 223 may use the error diffusion data GK-A shown in FIG. 20, or the error diffusion data GK-B shown in FIG. 21, or the error diffusion data GK-C shown in FIG. 22, or the error diffusion data GK-D shown in FIG. 23, or the error diffusion data GK-E shown in FIG. 24.
[0116] FIG. 20 is an explanatory diagram for explaining the error diffusion data GK-A.
[0117] As shown in FIG. 20, the error diffusion data GK-A is data that designates the pixel Px(mx + 1, my, mz), the pixel Px(mx, my + 1, mz), the pixel Px(mx, my, mz + 1), the pixel Px(mx + 2, my, mz), the pixel Px(mx, my + 2, mz), and the pixel Px(mx, my, mz + 2) as the surrounding pixels PxS when the pixel Px(mx, my, mz) is the target pixel PxT. Moreover, the error diffusion data GK-A is data that defines each distribution ratio B so that distribution ratio B(1,0,0) is greater than distribution ratio B(0,1,0), distribution ratio B(0,1,0) is greater than distribution ratio B(1,1,0), distribution ratio B(2,0,0) is greater than distribution ratio B(0,2,0), and distribution ratio B(0,2,0) is greater than distribution ratio B(0,0,2).
[0118] FIG. 21 is an explanatory diagram for explaining the error diffusion data GK-B.
[0119] As shown in FIG. 21, the error diffusion data GK-B is data that, when pixel Px(mx, my, mz) is the target pixel PxT, specifies pixel Px(mx+1, my, mz), pixel Px(mx, my+1, mz), pixel Px(mx, my, mz+1), pixel Px(mx+2, my, mz), pixel Px(mx, my+2, mz), pixel Px(mx, my, mz+2), pixel Px(mx+1, my+1, mz), pixel Px(mx, my+1, mz+1), and pixel Px(mx+1, my, mz+1) as surrounding pixels PxS. Furthermore, the error diffusion data GK-B is data that defines each distribution ratio B so that distribution ratio B(1,0,0) is greater than distribution ratio B(0,1,0), distribution ratio B(0,1,0) is greater than distribution ratio B(1,1,0), distribution ratio B(2,0,0) is greater than distribution ratio B(0,2,0), distribution ratio B(0,2,0) is greater than distribution ratio B(1,2,0), distribution ratio B(1,1,0) is greater than distribution ratio B(1,0,1), and distribution ratio B(1,0,1) is greater than distribution ratio B(0,1,1).
[0120] FIG. 22 is an explanatory diagram for explaining the error diffusion data GK-C.
[0121] As shown in FIG. 22, the error diffusion data GK-C is data that, when pixel Px(mx, my, mz) is the target pixel PxT, specifies pixel Px(mx+1, my, mz), pixel Px(mx+1, my, mz+1), pixel Px(mx-1, my+1, mz), pixel Px(mx-1, my+1, mz+1), pixel Px(mx, my, mz+1), pixel Px(mx, my+1, mz), pixel Px(mx, my+1, mz+1), pixel Px(mx+1, my+1, mz), and pixel Px(mx+1, my+1, mz+1) as surrounding pixels PxS. Furthermore, the error diffusion data GK-C is data that defines each distribution ratio B such that distribution ratio B(1,0,0) is greater than distribution ratio B(0,1,0), distribution ratio B(0,1,0) is greater than distribution ratio B(0,0,1), distribution ratio B(0,0,1) is greater than distribution ratio B(1,1,0), distribution ratio B(1,1,0) is greater than distribution ratio B(0,1,1), distribution ratio B(0,1,1) is greater than distribution ratio B(1,0,1), distribution ratio B(-1,1,0), and distribution ratio B(1,1,1), and distribution ratio B(1,0,1), distribution ratio B(-1,1,0), and distribution ratio B(1,1,1) are greater than distribution ratio B(-1,1,1).
[0122] FIG. 23 is an explanatory diagram for explaining the error diffusion data GK-D.
[0123] As shown in FIG. 23, when pixel Px(mx, my, mz) is the target pixel PxT, the error diffusion data GK-D includes pixels Px(mx, my, mz+1), Px(mx, my, mz+2), Px(mx+1, my, mz), Px(mx+1, my, mz+1), Px(mx+2, my, mz), and Px(mx-1 ,my+1,mz), pixel Px(mx-1,my+1,mz+1), pixel Px(mx,my+1,mz), pixel Px(mx,my+1,mz+1), pixel Px(mx+1,my+1,mz), pixel Px(mx+1,my+1,mz+1), and pixel Px(mx,my+2,mz) as surrounding pixels PxS. Furthermore, in the error diffusion data GK-D, the distribution ratio B(1,0,0) is greater than the distribution ratio B(0,1,0), which in turn is greater than the distribution ratio B(0,0,1), which in turn is greater than the distribution ratio B(2,0,0), which in turn is greater than the distribution ratio B(2,0,0), which in turn is greater than the distribution ratio B(0,2,0), which in turn is greater than the distribution ratio B(0,2,0). This data defines each distribution ratio B such that distribution ratio B(0,0,2) is greater than distribution ratio B(1,0,1), distribution ratio B(0,1,1), and distribution ratio B(1,1,0), and distribution ratio B(1,0,1), distribution ratio B(0,1,1), and distribution ratio B(1,1,0) are greater than distribution ratio B(-1,1,0), distribution ratio B(-1,1,1), and distribution ratio B(1,1,1).
[0124] FIG. 24 is an explanatory diagram for explaining the error diffusion data GK-E.
[0125] As shown in FIG. 24, when pixel Px(mx, my, mz) is the target pixel PxT, the error diffusion data GK-E includes pixel Px(mx+1, my, mz), pixel Px(mx+1, my+1, mz), pixel Px(mx, my+1, mz), pixel Px(mx-1, my+1, mz), pixel Px(mx-1, my-1, mz+1), and pixel Px(mx, my-1, mz+1). This data specifies pixel Px(mx+1,my-1,mz+1), pixel Px(mx-1,my,mz+1), pixel Px(mx,my,mz+1), pixel Px(mx+1,my,mz+1), pixel Px(mx-1,my+1,mz+1), pixel Px(mx,my+1,mz+1), pixel Px(mx+1,my+1,mz+1), and pixel Px(mx+1,my+1,mz+1) as surrounding pixels PxS. Furthermore, in the error diffusion data GK-E, the distribution ratio B(1,0,0) is greater than the distribution ratio B(0,1,0), which in turn is greater than the distribution ratio B(0,0,1), which in turn is greater than the distribution ratio B(1,1,0), which in turn is greater than the distribution ratio B(-1,1,0), which in turn is greater than the distribution ratio B(-1,1,0), which in turn is greater than the distribution ratio B(-1,0,1) and the distribution ratio B(1,0 This data defines each distribution rate B such that distribution rate B(-1,0,1) and distribution rate B(1,0,1) are greater than distribution rate B(0,-1,1) and distribution rate B(0,1,1), and distribution rate B(0,-1,1) and distribution rate B(0,1,1) are greater than distribution rate B(-1,-1,1), distribution rate B(1,-1,1), distribution rate B(-1,1,1) and distribution rate B(1,1,1).
[0126] As described above, according to this modification, the error diffusion data GK-A, error diffusion data GK-B, error diffusion data GK-C, error diffusion data GK-D, or error diffusion data GK-E is used in the error diffusion process. The error diffusion data GK-A, error diffusion data GK-B, error diffusion data GK-C, error diffusion data GK-D, and error diffusion data GK-E are all error diffusion data for distributing the error E in the Z-axis direction in addition to distributing the error E in the XY plane in the error diffusion process. Therefore, according to this modification, the dispersibility of the arrangement of dots can be increased on the surface SF of the object Obj, not only on the plane parallel to the XY plane, but also on the plane parallel to the XZ plane and the plane parallel to the YZ plane.
[0127] As described above, in the terminal device 1 according to this modified example, the error distribution unit 223 distributes the error E(mx, my, mz) based on the quantization of the gradation value Gg(mx, my, mz) corresponding to the pixel Px(mx, my, mz) to the pixel Px(mx+2, my, mz) located in the +X direction of the pixel Px(mx+1, my, mz) at a distribution rate B(2, 0, 0), to the pixel Px(mx, my+2, mz) located in the +Y direction of the pixel Px(mx, my+1, mz) at a distribution rate B(0, 2, 0), and to the pixel Px(mx, my, mz+2) located in the +Z direction of the pixel Px(mx, my, mz+1) at a distribution rate B(0, 0, 2). Therefore, according to this modified example, even when an image G is formed on the surface SF of an object Obj having a three-dimensional shape, it is possible to suppress the graininess of dots from appearing in the image G. In this modified example, pixel Px(mx+2,my,mz) is an example of a "fourth pixel", pixel Px(mx,my+2,mz) is an example of a "fifth pixel", pixel Px(mx,my,mz+2) is an example of a "sixth pixel", distribution ratio B(2,0,0) is an example of a "fourth distribution ratio", distribution ratio B(0,2,0) is an example of a "fifth distribution ratio", and distribution ratio B(0,0,2) is an example of a "sixth distribution ratio".
[0128] Furthermore, in the terminal device 1 according to this modification, the distribution ratio B(2,0,0) may be greater than the distribution ratio B(0,2,0) and the distribution ratio B(0,0,2), and the distribution ratio B(0,2,0) may be greater than the distribution ratio B(0,0,2). Therefore, according to this modification, it is possible to improve the uniformity of distribution of the error E to each of the M pixels Px in the image formation space SP, compared to the aspect where the distribution rate B(2,0,0) is equal to or less than the distribution rate B(0,2,0) or the distribution rate B(0,0,2). Also, according to this modification, it is possible to improve the uniformity of distribution of the error E to each of the M pixels Px in the image formation space SP, compared to the aspect where the distribution rate B(0,2,0) is equal to or less than the distribution rate B(0,0,2).
[0129] Furthermore, in the terminal device 1 according to this modified example, the error distribution unit 223 may be characterized in that it distributes the error E(mx, my, mz) based on the quantization of the gradation value Gg(mx, my, mz) corresponding to pixel Px(mx, my, mz) to pixel Px(mx+1, my+1, mz) located in the +Y direction of pixel Px(mx+1, my, mz) at a distribution rate B(1, 1, 0), distributes it to pixel Px(mx+1, my, mz+1) located in the +Z direction of pixel Px(mx+1, my, mz) at a distribution rate B(1, 0, 1), and distributes it to pixel Px(mx, my+1, mz+1) located in the +Z direction of pixel Px(mx, my+1, mz) at a distribution rate B(0, 1, 1). Therefore, according to this modified example, even when an image G is formed on the surface SF of an object Obj having a three-dimensional shape, it is possible to suppress the graininess of dots from appearing in the image G. In this modified example, pixel Px(mx+1, my+1, mz) is an example of the "seventh pixel", pixel Px(mx+1, my, mz+1) is an example of the "eighth pixel", pixel Px(mx, my+1, mz+1) is an example of the "ninth pixel", distribution ratio B(1,1,0) is an example of the "seventh distribution ratio", distribution ratio B(1,0,1) is an example of the "eighth distribution ratio", and distribution ratio B(0,1,1) is an example of the "ninth distribution ratio".
[0130] Furthermore, in the terminal device 1 of this modified example, the distribution ratio B(1,1,0) may be greater than the distribution ratio B(1,0,1) and the distribution ratio B(0,1,1), and the distribution ratio B(1,0,1) may be greater than the distribution ratio B(0,1,1).
[0131] <Variation 2> In the above-described embodiment and modification 1, the error distribution unit 223 distributes the error E(mx, my, mz) corresponding to the pixel Px(mx, my, mz) which is the target pixel PxT to the gradation value Gg(mx+dx, my+dy, mz+dz) corresponding to the pixel Px(mx+dx, my+dy, mz+dz) which is the surrounding pixel PxS in the error distribution process, but the present invention is not limited to such an aspect. In the error distribution process, the error distribution unit 223 may distribute the error E(mx, my, mz) corresponding to the pixel Px(mx, my, mz) which is the target pixel PxT to the threshold value Th(mx+dx, my+dy, mz+dz) corresponding to the pixel Px(mx+dx, my+dy, mz+dz) which is the surrounding pixel PxS.
[0132] Fig. 25 is a flowchart showing an example of the operation of the recording system Sys when the recording system Sys according to this modification executes a display data generation process. The flowchart shown in Fig. 25 is the same as the flowchart shown in Fig. 6, except that the error distribution process is performed in step S30, which will be described later, instead of step S17.
[0133] As shown in FIG. 25, the display data generating section 22 included in the recording system Sys according to this modification executes the above-mentioned steps S10 to S16 in the display data generating process. Thereafter, the error distribution unit 223 according to this modification uses the error diffusion data GK to distribute the error E(mx, my, mz) to one or more threshold values Th corresponding to one or more surrounding pixels PxS located around the target pixel PxT as an error distribution process (S30). Specifically, in the error distribution process of step S30, when a pixel Px(mx+dx, my+dy, mz+dz) that is a surrounding pixel PxS exists, the error distribution unit 223 according to this modification changes the threshold value Th(mx+dx, my+dy, mz+dz) corresponding to the pixel Px(mx+dx, my+dy, mz+dz) based on the following formula (8). Th(mx+dx,my+dy,mz+dz) = Th(mx+dx,my+dy,mz+dz) + EB(dx,dy,dz) …… Equation (8) That is, in the error distribution process of step S30, the error distribution unit 223 of this modified example changes the threshold value Th(mx+dx,my+dy,mz+dz) by adding the distribution value EB(dx,dy,dz), which is the product of the error E(mx,my,mz) and the distribution rate B(dx,dy,dz), to the threshold value Th(mx+dx,my+dy,mz+dz). Thereafter, the display data generating unit 22 according to this modified example executes the processes of steps S18 to S23 described above.
[0134] As described above, according to this modification, in addition to distributing the error E in the XY plane, the error distribution process also distributes the error E in the Z-axis direction. Therefore, according to this modification, it is possible to increase the dispersibility of the arrangement of dots on the surface SF of the object Obj, not only on a plane parallel to the XY plane, but also on a plane parallel to the XZ plane and a plane parallel to the YZ plane.
[0135] <Variation 3> In the above-described embodiment and modified examples 1 and 2, the gradation value GI(mx, my, mz) set by the calculation processing unit 222 in the error diffusion process is two-valued, the highest gradation value GI-1 and the lowest gradation value GI-0, but the present invention is not limited to such an embodiment. In the error diffusion process, the gradation value GI(mx, my, mz) set by the calculation processing unit 222 may be three-valued or more.
[0136] Fig. 26 and Fig. 27 are flowcharts showing an example of the operation of the recording system Sys according to this modification when the recording system Sys executes a display data generation process. The flowcharts shown in Fig. 26 and Fig. 27 are the same as the flowchart shown in Fig. 6, except that, as an error diffusion process for one pixel, instead of the process of step S100, a process of step S400 including steps S40, S41, S42, and S44 is performed, instead of the process of step S14, a process of step S43 is performed, and instead of the process of step S16, a process of step S45 is performed.
[0137] As shown in FIG. 26, the display data generating unit 22 according to this modification executes the above-mentioned steps S10 to S11 in the display data generating process. After that, the calculation processing unit 222 according to this modification calculates a quotient GgA(mx,my,mz) and a remainder GgB(mx,my,mz) by dividing the gradation value of the image Gf at the target pixel PxT indicated by the image data GD, i.e., the gradation value Gg(mx,my,mz) by a reference value KK (S40). Note that in this modification, the reference value KK is an integer that satisfies the following formula (9). 0 < KK ≦ {Gg-max - Gg-min}÷2 …… Formula (9) In this modified example, the gradation value Gg-min is assumed to be "0" and the gradation value Gg-max is assumed to be "256." In addition, in this modified example, the reference value KK is assumed to be "64."
[0138] After that, the calculation processing unit 222 according to this modification judges whether the surplus GgB(mx, my, mz) is equal to or greater than a threshold Th(mx, my, mz) (S41). Note that this modification assumes that the threshold Th(mx, my, mz) is a value that satisfies the following formula (10). γ5*KK ≦ Th(mx,my,mz) ≦ γ6*KK …… Formula (10) Here, the value γ5 is a real number that satisfies, for example, "0.3≦γ5≦0.5", and the value γ6 is a real number that satisfies, for example, "0.5≦γ6≦0.7". More specifically, in this embodiment, as an example, it is assumed that the threshold value Th(mx, my, mz) is "32". However, the threshold value Th(mx, my, mz) may be an integer that satisfies the following formula (11) if the value obtained by subtracting the gradation value Gg-min from the gradation value Gg-max is not an integer multiple of the reference value KK. (1-γ7)*{KK*GgA(mx,my,mz)} + γ7*{KK*(1+GgA(mx,my,mz))} ≦ Th(mx,my,mz) ≦ (1-γ8)*{KK*GgA(mx,my,mz)} + γ8*{KK*(1+GgA(mx,my,mz))}... Equation (11) Here, the value γ7 is a real number that satisfies, for example, "0.3≦γ7≦0.5", and the value γ8 is a real number that satisfies, for example, "0.5≦γ8≦0.7".
[0139] Then, if the result of the judgment in step S41 is positive, the calculation processing unit 222 in this modified example sets the gradation value GI(mx, my, mz) corresponding to the pixel Px(mx, my, mz), which is the target pixel PxT, to "1+GgA(mx, my, mz)" (S42). After that, the error distribution unit 223 according to this modification calculates the error E(mx, my, mz) based on the remainder GgB(mx, my, mz) and the reference value KK (S43). Specifically, in step S43, the error distribution unit 223 calculates the error E(mx, my, mz) based on the following formula (12). E(mx,my,mz) = KK - GgB(mx,my,mz) ... Equation (12)
[0140] On the other hand, if the result of the judgment in step S41 is negative, the calculation processing unit 222 in this modified example sets the gradation value GI(mx, my, mz) corresponding to the pixel Px(mx, my, mz), which is the target pixel PxT, to "GgA(mx, my, mz)" (S44). After that, the error distribution unit 223 according to this modification multiplies the remainder GgB(mx, my, mz) by "-1" and sets the result as the error E(mx, my, mz) (S45).
[0141] Then, the display data generating unit 22 according to this modification executes the processes of steps S17 to S23 described above.
[0142] As described above, according to this modified example, since the gradation value GI(mx, my, mz) has three or more values, it is possible to make the image G formed on the surface SF of the object Obj closer to the image Gf, compared to when the gradation value GI(mx, my, mz) is two-valued.
[0143] <Modification 4> In the above-described embodiment and modifications 1 to 3, the image Gf represented by the image data GD and the image G represented by the display data Img may include a plurality of colors.
[0144] In this modified example, it is assumed that the image Gf represented by the image data GD and the image G represented by the display data Img are represented using four colors: cyan, magenta, yellow, and black. In this modified example, it is assumed that the image data GD includes image data GD-Cy indicating the cyan gradation value that each of the M pixels Px included in the image formation space SP should display in order to form an image Gf on the surface SF of the object Obj, image data GD-Mg indicating the magenta gradation value that each of the M pixels Px included in the image formation space SP should display in order to form an image Gf on the surface SF of the object Obj, image data GD-Yl indicating the yellow gradation value that each of the M pixels Px included in the image formation space SP should display in order to form an image Gf on the surface SF of the object Obj, and image data GD-Bk indicating the black gradation value that each of the M pixels Px included in the image formation space SP should display in order to form an image Gf on the surface SF of the object Obj. In addition, in this modified example, it is assumed that the display data Img includes display data Img-Cy indicating the cyan gradation value displayed by each of the M pixels Px included in the image formation space SP to form an image G on the surface SF of the object Obj, display data Img-Mg indicating the magenta gradation value displayed by each of the M pixels Px included in the image formation space SP to form an image G on the surface SF of the object Obj, display data Img-Yl indicating the yellow gradation value displayed by each of the M pixels Px included in the image formation space SP to form an image G on the surface SF of the object Obj, and display data Img-Bk indicating the black gradation value displayed by each of the M pixels Px included in the image formation space SP to form an image G on the surface SF of the object Obj.
[0145] In this modification, the storage unit 3 of the recording system Sys according to this modification stores error diffusion data GK-Cy for performing error diffusion processing on image data GD-Cy, error diffusion data GK-Mg for performing error diffusion processing on image data GD-Mg, error diffusion data GK-Yl for performing error diffusion processing on image data GD-Yl, and error diffusion data GK-Bk for performing error diffusion processing on image data GD-Bk. Here, the error diffusion data GK-Cy, error diffusion data GK-Mg, error diffusion data GK-Yl, and error diffusion data GK-Bk may be the same data as any of the error diffusion data GK, error diffusion data GK-A, error diffusion data GK-B, error diffusion data GK-C, and error diffusion data GK-D. Furthermore, the error diffusion data GK-Cy, the error diffusion data GK-Mg, the error diffusion data GK-Yl, and the error diffusion data GK-Bk may be data indicating the same distribution ratio B, or may be data indicating different distribution ratios B.
[0146] In this modification, the calculation processing unit 222 performs error diffusion processing on the image data GD-Cy, as well as on the image data GD-Mg, on the image data GD-Yl, and on the image data GD-Bk. The error distribution unit 223 performs error diffusion processing on the image data GD-Cy using the error diffusion data GK-Cy, as well as on the image data GD-Mg using the error diffusion data GK-Mg, on the image data GD-Yl using the error diffusion data GK-Yl, and on the image data GD-Bk using the error diffusion data GK-Bk. As a result, the display data generation unit 22 in this modified example generates display data Img-Cy based on image data GD-Cy, generates display data Img-Mg based on image data GD-Mg, generates display data Img-Yl based on image data GD-Yl, and generates display data Img-Bk based on image data GD-Bk.
[0147] As described above, according to this modified example, multiple error diffusion data are provided so as to correspond one-to-one with the multiple colors of the image Gf indicated by the image data GD and the image G indicated by the display data Img, so that when the image Gf indicated by the image data GD and the image G indicated by the display data Img are color images, it is possible to suppress the occurrence of graininess in the image G.
[0148] As described above, in the terminal device 1 according to this modified example, the image data GD includes image data GD-Cy indicating cyan gradation values to be displayed by each of the M pixels Px in the image formation space SP when a cyan image is represented in the image formation space SP, and image data GD-Mg indicating magenta gradation values to be displayed by each of the M pixels Px in the image formation space SP when a magenta image is represented in the image formation space SP, the display data generation unit 22 quantizes the cyan gradation values indicated by the image data GD-Cy to generate display data Img-Cy, and quantizes the magenta gradation values indicated by the image data GD-Mg to generate display data Img-Mg, and the error distribution unit 223 distributes the error E based on the quantization of the cyan gradation value corresponding to the pixel Px(mx, my, mz) to the pixel Px(mx+1, my, For pixel Px(mx,my,mz), which is located in the +Y direction of pixel Px(mx,my+1,mz), a distribution rate B(0,1,0) is used. For pixel Px(mx,my,mz+1), which is located in the +Z direction of pixel Px(mx,my,mz), a distribution rate B(0,0,1) is used. The error E based on the quantization of the magenta gradation value corresponding to pixel Px(mx,my,mz) is distributed to pixel Px(mx,my,mz), which is located in the +Y direction of pixel Px(mx,my,mz), a distribution rate B(0,0,1) is used. It is characterized in that for pixel Px(mx+1,my,mz) located in the +X direction of x(mx,my,mz), it is distributed at a distribution rate B(1,0,0), for pixel Px(mx,my+1,mz) located in the +Y direction of pixel Px(mx,my,mz), it is distributed at a distribution rate B(0,1,0), and for pixel Px(mx,my,mz+1) located in the +Z direction of pixel Px(mx,my,mz), it is distributed at a distribution rate B(0,0,1). Therefore, according to this modification, when a color image G is printed on the surface SF of an object Obj having a three-dimensional shape, it is possible to prevent graininess from appearing in the image G. In this modified example, cyan is an example of a "first color," magenta is an example of a "second color," the cyan image is an example of a "first image," the magenta image is an example of a "second image," the cyan gradation value is an example of a "first gradation value," the magenta gradation value is an example of a "second gradation value," image data GD-Cy is an example of "first image data," image data GD-Mg is an example of "second image data," display data Img-Cy is an example of "first display data," and display data Img-Mg is an example of "second display data."
[0149] <Variation 5> In the above-described embodiment and modifications 1 to 4, the values Mx, My, and Mz may be values that satisfy the following formula (13), or may be values that satisfy the following formula (14). In the following formulas (13) and (14), α is a natural number of 2 or more. Mx = My = Mz = α 2 ... Equation (13) Mx = My = Mz = 2 α ... Equation (14)
[0150] <Variation 6> In the above-described embodiment and modifications 1 to 5, the terminal control unit 2 and the storage unit 3 may be mounted on the recording device 5. In the above-described embodiment and modifications 1 to 5, the terminal device 1 may further include a recording control unit 6, a head unit 7, an ink supply unit 8, and a robot hand 9.
[0151] <Variation 7> In the above-described embodiment and modified examples 1 to 6, the robot hand 9 changes the position and orientation of the head unit 7 in the image formation space SP, but the present invention is not limited to such an aspect. The robot hand 9 may be capable of changing the position and orientation of the object Obj in the image formation space SP. In this case, the position and orientation of the head unit 7 may be fixed in the image formation space SP. <Variation 8> In the above-described embodiment and modifications 1 to 7, if the pixel selection unit 221 determines in step S18 that "mx=Mx" is satisfied and in step S20 that the pixel selection unit 221 determines that "my=My" is not satisfied, the pixel selection unit 221 sets the value mx to "1" and adds "1" to the value my in step S21, but the present invention is not limited to this embodiment. The pixel selection unit 221 may leave the value mx at "Mx" in step S21 and add "1" to the value my. In other words, the pixel to be subjected to error diffusion processing next after pixel Px(Mx, my, mz) may be pixel Px(Mx, my+1, mz) instead of pixel Px(1, my+1, mz). However, in this case, in step S18 of the error diffusion process for pixel Px(Mx, my+1, mz), whether or not "mx=Mx" is determined in the above-mentioned embodiment and modifications 1 to 7 is changed to whether or not "mx=1" is determined. Furthermore, in step S19 of the error diffusion process for pixel Px(Mx, my+1, mz), "1" is added to the value mx in the above-mentioned embodiment and modifications 1 to 7, but "-1" is added to the value mx. Then, in the error diffusion process for pixel Px(1, my+1, mz), the conditions in steps S18, S19, and S21 are restored. That is, the pixel to be subjected to the error diffusion process next after pixel Px(1, my+1, mz) is pixel Px(1, my+2, mz), and the next one is pixel Px(2, my+2, mz). Thereafter, the conditions of steps S18, S19 and S21 are switched alternately in the same manner. According to this error diffusion process, when performing sequential error diffusion processing on a pixel row extending in the X-axis direction and including pixel Px(Mx,my,mz), the target pixels for error diffusion processing are sequentially shifted in the +X direction, whereas when performing sequential error diffusion processing on a pixel row extending in the X-axis direction and including pixel Px(Mx,my+1,mz), the target pixels for error diffusion processing are sequentially shifted in the -X direction. Thereafter, shifts in the +X direction and shifts in the -X direction are alternately repeated. In the above, the conditions of steps S18, S19, and S21 are alternately switched when "mx=Mx" or "mx=1" is satisfied in step S18, but the conditions of steps S18, S19, and S23 may be switched in a similar manner. That is, if the pixel selection unit 221 satisfies "mx=Mx" in step S18, the pixel selection unit 221 satisfies "my=My" in step S20, and the pixel selection unit 221 determines that "mz=Mz" is not satisfied in step S22, the value mx may be set to the same value (i.e., either "Mx" or "1"), the value my may be set to the same value (i.e., either "My" or "1"), and "1" may be added to the value mz in step S23. In this case, the conditions of steps S18 and S19 may be switched in a similar manner to the above. That is, if the condition in step S18 at that time is whether or not "mx=Mx" is satisfied, it switches to whether or not "mx=1" is satisfied, and conversely, if the condition is whether or not "mx=1" is satisfied, it switches to whether or not "mx=Mx" is satisfied. Similarly, if the condition in step S19 at that time is to add "1" to the value mx, it switches to adding "-1" to the value mx, and conversely, if the condition is to add "-1" to the value mx, it switches to adding "1" to the value mx. When switching the conditions in step S19, it is preferable to invert the sign of the value dx in the error diffusion data in Figures 7 to 8, 20 to 23, and 27. For example, in the error diffusion data, it is preferable to switch to dx=-1 if dx=1, to dx=-2 if dx=2, and to leave it as it is if dx=0. [Explanation of symbols]
[0152] 1...terminal device, 2...terminal control unit, 3...memory unit, 5...recording device, 6...recording control unit, 7...head unit, 8...ink supply unit, 9...robot hand, 21...image data acquisition unit, 22...display data generation unit, 61...head control unit, 62...hand control unit, 71...drive signal supply unit, 72...recording head, 221...pixel selection unit, 222...arithmetic processing unit, 223...error distribution unit, D...ejection unit, Sys...recording system.
Claims
1. an acquisition unit that acquires image data indicating a gradation value of an image to be displayed by each of a plurality of pixels in a three-dimensional space when the image is represented in the three-dimensional space; a generating unit that generates display data by quantizing a grayscale value indicated by the image data; Equipped with The generation unit is A selection unit that selects one pixel from the plurality of pixels; An error based on quantization of the gradation value corresponding to the one pixel is Distributing the light with a first distribution ratio to a first pixel located in a first direction of the one pixel; Distributing the first pixel to a second pixel located in a second direction from the first pixel at a second distribution ratio; a distribution unit that distributes the signal to a third pixel located in a third direction from the one pixel at a third distribution rate; Equipped with the second direction intersects with the first direction, the third direction is a direction different from an extension direction of a plane defined by the first direction and the second direction, The selection unit is When any pixel among a plurality of pixels in the three-dimensional space is present in the first direction of the one pixel, After selecting the one pixel, selecting another pixel located in the first direction of the one pixel; The first distribution ratio is greater than the second distribution ratio and the third distribution ratio.
13. An image processing device comprising:
2. The plurality of pixels in the three-dimensional space are a plurality of pixel columns extending in the first direction; The selection unit is When there is no pixel among the plurality of pixels in the three-dimensional space in the first direction of the one pixel, After selecting the one pixel, selecting another pixel from another pixel row located in the second direction of the one pixel row including the one pixel; 2. The image processing device according to claim 1 .
3. The plurality of pixels in the three-dimensional space are a plurality of pixel surfaces parallel to a plane defined by the first direction and the second direction; The selection unit is None of the plurality of pixels in the three-dimensional space is present in the first direction of the one pixel, and When none of the pixel rows among the plurality of pixel rows in the three-dimensional space is present in the second direction of the one pixel row including the one pixel, After selecting the one pixel, selecting another pixel from another pixel surface located in the third direction of the one pixel surface including the one pixel; 3. The image processing device according to claim 2, wherein the image processing device is a digital camera.
4. The second distribution ratio is greater than the third distribution ratio.
4. The image processing device according to claim 2, wherein the image processing device further comprises:
5. The first pixel is a pixel adjacent to the one pixel in a first direction, the second pixel is a pixel adjacent to the one pixel in a second direction, The third pixel is a pixel adjacent to the one pixel in a third direction.
5. The image processing device according to claim 1, wherein the image processing device further comprises: a first input section;
6. The distribution unit includes: An error based on quantization of the gradation value corresponding to the one pixel is Distributing the light with a fourth distribution ratio to a fourth pixel adjacent to the first pixel in the first direction; Distributing the light with a fifth distribution ratio to a fifth pixel adjacent to the second pixel in the second direction; Distributing the light with a sixth distribution ratio to a sixth pixel adjacent to the third pixel in a third direction.
6. The image processing device according to claim 5,
7. the fourth distribution ratio is greater than the fifth distribution ratio and the sixth distribution ratio; The fifth distribution ratio is greater than the sixth distribution ratio.
7. The image processing device according to claim 6,
8. The distribution unit includes: An error based on quantization of the gradation value corresponding to the one pixel is Distributing the light with a seventh distribution ratio to a seventh pixel adjacent to the first pixel in the second direction; Distributing the light with an eighth distribution ratio to an eighth pixel adjacent to the first pixel in a third direction; Distributing the light with a ninth distribution ratio to a ninth pixel adjacent to the second pixel in the third direction.
8. The image processing device according to claim 5, wherein the image processing device further comprises:
9. the seventh distribution ratio is greater than the eighth distribution ratio and the ninth distribution ratio; The eighth distribution ratio is greater than the ninth distribution ratio. The image processing device according to claim 8 .
10. an acquisition unit that acquires image data indicating a gradation value of an image to be displayed by each of a plurality of pixels in a three-dimensional space when the image is represented in the three-dimensional space; a generating unit that generates display data by quantizing a grayscale value indicated by the image data; Equipped with The generation unit is A selection unit that selects one pixel from the plurality of pixels; An error based on quantization of the gradation value corresponding to the one pixel is Distributing the first distribution ratio to a first pixel adjacent to the one pixel in a first direction; Distributing the first pixel to a second pixel adjacent to the first pixel in a second direction at a second distribution ratio; Distributing the pixel signal to a third pixel adjacent to the one pixel in a third direction at a third distribution ratio; Distributing the light with a fourth distribution ratio to a fourth pixel adjacent to the first pixel in the first direction; Distributing the light with a fifth distribution ratio to a fifth pixel adjacent to the second pixel in the second direction; a distributor that distributes the signal to a sixth pixel adjacent to the third pixel in a third direction at a sixth distribution ratio; Equipped with the second direction intersects with the first direction, The third direction is a direction different from an extension direction of a plane defined by the first direction and the second direction.
13. An image processing device comprising:
11. the fourth distribution ratio is greater than the fifth distribution ratio and the sixth distribution ratio; The fifth distribution ratio is greater than the sixth distribution ratio. The image processing device according to claim 10 .
12. an acquisition unit that acquires image data indicating a gradation value of an image to be displayed by each of a plurality of pixels in a three-dimensional space when the image is represented in the three-dimensional space; a generating unit that generates display data by quantizing a grayscale value indicated by the image data; Equipped with The generation unit is A selection unit that selects one pixel from the plurality of pixels; An error based on quantization of the gradation value corresponding to the one pixel is Distributing the first distribution ratio to a first pixel adjacent to the one pixel in a first direction; Distributing the first pixel to a second pixel adjacent to the first pixel in a second direction at a second distribution ratio; Distributing the pixel signal to a third pixel adjacent to the one pixel in a third direction at a third distribution ratio; Distributing the light with a seventh distribution ratio to a seventh pixel adjacent to the first pixel in the second direction; Distributing the light with an eighth distribution ratio to an eighth pixel adjacent to the first pixel in a third direction; a distribution unit that distributes the light with a ninth distribution ratio to a ninth pixel that is adjacent to the second pixel in a third direction; Equipped with the second direction intersects with the first direction, the third direction is a direction different from an extension direction of a plane defined by the first direction and the second direction, The selection unit is When any pixel among a plurality of pixels in the three-dimensional space is present in the first direction of the one pixel, After selecting the one pixel, selecting another pixel located in the first direction of the one pixel; The plurality of pixels in the three-dimensional space are a plurality of pixel columns extending in the first direction; The selection unit is When there is no pixel among the plurality of pixels in the three-dimensional space in the first direction of the one pixel, After selecting the one pixel, selecting another pixel from another pixel row located in the second direction of the one pixel row including the one pixel; The seventh distribution ratio is greater than the eighth distribution ratio.
13. An image processing device comprising:
13. an acquisition unit that acquires image data indicating a gradation value of an image to be displayed by each of a plurality of pixels in a three-dimensional space when the image is represented in the three-dimensional space; a generating unit that generates display data by quantizing a grayscale value indicated by the image data; Equipped with The generation unit is A selection unit that selects one pixel from the plurality of pixels; An error based on quantization of the gradation value corresponding to the one pixel is Distributing the first distribution ratio to a first pixel adjacent to the one pixel in a first direction; Distributing the first pixel to a second pixel adjacent to the first pixel in a second direction at a second distribution ratio; Distributing the pixel signal to a third pixel adjacent to the one pixel in a third direction at a third distribution ratio; Distributing the light with a seventh distribution ratio to a seventh pixel adjacent to the first pixel in the second direction; Distributing the light with an eighth distribution ratio to an eighth pixel adjacent to the first pixel in a third direction; a distribution unit that distributes the light with a ninth distribution ratio to a ninth pixel that is adjacent to the second pixel in a third direction; Equipped with the second direction intersects with the first direction, the third direction is a direction different from an extension direction of a plane defined by the first direction and the second direction, The selection unit is When any pixel among a plurality of pixels in the three-dimensional space is present in the first direction of the one pixel, After selecting the one pixel, selecting another pixel located in the first direction of the one pixel; The plurality of pixels in the three-dimensional space are a plurality of pixel columns extending in the first direction; The selection unit is When there is no pixel among the plurality of pixels in the three-dimensional space in the first direction of the one pixel, After selecting the one pixel, selecting another pixel from another pixel row located in the second direction of the one pixel row including the one pixel; The seventh distribution ratio is greater than the ninth distribution ratio.
13. An image processing device comprising:
14. an acquisition unit that acquires image data indicating a gradation value of an image to be displayed by each of a plurality of pixels in a three-dimensional space when the image is represented in the three-dimensional space; a generating unit that generates display data by quantizing a grayscale value indicated by the image data; Equipped with The generation unit is A selection unit that selects one pixel from the plurality of pixels; An error based on quantization of the gradation value corresponding to the one pixel is Distributing the first distribution ratio to a first pixel adjacent to the one pixel in a first direction; Distributing the first pixel to a second pixel adjacent to the first pixel in a second direction at a second distribution ratio; Distributing the pixel signal to a third pixel adjacent to the one pixel in a third direction at a third distribution ratio; Distributing the light with a seventh distribution ratio to a seventh pixel adjacent to the first pixel in the second direction; Distributing the light with an eighth distribution ratio to an eighth pixel adjacent to the first pixel in a third direction; a distribution unit that distributes the light with a ninth distribution ratio to a ninth pixel that is adjacent to the second pixel in a third direction; Equipped with the second direction intersects with the first direction, the third direction is a direction different from an extension direction of a plane defined by the first direction and the second direction, The selection unit is When any pixel among a plurality of pixels in the three-dimensional space is present in the first direction of the one pixel, After selecting the one pixel, selecting another pixel located in the first direction of the one pixel; The plurality of pixels in the three-dimensional space are a plurality of pixel columns extending in the first direction; The selection unit is When there is no pixel among the plurality of pixels in the three-dimensional space in the first direction of the one pixel, After selecting the one pixel, selecting another pixel from another pixel row located in the second direction of the one pixel row including the one pixel; The eighth distribution ratio is greater than the ninth distribution ratio.
13. An image processing device comprising:
15. the first pixel is located at the same position as the one pixel in the second direction and the third direction, the second pixel is located at the same position as the first pixel in the first direction and the third direction, the third pixel is located at the same position as the first pixel in the first direction and the second direction; 15. An image processing device according to claim 1, wherein the image processing device further comprises:
16. the first direction is a direction perpendicular to the second direction and the third direction, The second direction is a direction perpendicular to the third direction.
16. An image processing device according to claim 1, wherein the image processing device is a digital camera.
17. a head unit that ejects liquid based on the display data; 17. An image processing device according to claim 1, wherein the image processing device is a digital camera.
18. The generation unit is supplying the display data to a recording device having a head unit that ejects liquid based on the display data; 17. An image processing device according to claim 1, wherein the image processing device is a digital camera.
19. The image data is First image data indicating a first gradation value that is a gradation value of a first image to be displayed by each of a plurality of pixels in the three-dimensional space when a first image of a first color is represented in the three-dimensional space; second image data indicating second gradation values that are gradation values of a second image to be displayed by each of a plurality of pixels in the three-dimensional space when a second image of a second color is represented in the three-dimensional space; Including, The generation unit is quantizing a first gradation value indicated by the first image data to generate first display data; quantizing a second gradation value indicated by the second image data to generate second display data; The distribution unit includes: An error based on quantization of the first gradation value corresponding to the one pixel is Distributing the light with a first distribution ratio to a first pixel located in a first direction of the one pixel; Distributing the first pixel to a second pixel located in a second direction from the first pixel at a second distribution ratio; Distributing the light with a third distribution ratio to a third pixel located in a third direction of the one pixel; An error based on quantization of the second gradation value corresponding to the one pixel is Distributing the light to the first pixel at a tenth distribution ratio; Distributing the light to the second pixel at an eleventh distribution ratio; Distributing the light to the third pixel at a twelfth distribution ratio; 19. An image processing device according to any one of claims 1 to 18, characterized in that
20. A recording device for forming an image on a three-dimensional object, A head unit that ejects liquid; A plurality of dots whose arrangement is determined by an error diffusion method, A plurality of dots are formed by the liquid ejected from the head unit. such that the image is formed of the object; A control unit that controls the ejection of liquid from the head unit; Equipped with The control unit is When the object has a first surface, a distribution of the dots on the first surface has a frequency characteristic in which high-frequency components higher than a predetermined frequency are more numerous than low-frequency components lower than the predetermined frequency in a spatial frequency domain; If the object has a second surface that is not parallel to the first surface, The distribution of the plurality of dots on the second surface has frequency characteristics in which high frequency components higher than a predetermined frequency in a spatial frequency domain are more numerous than low frequency components lower than the predetermined frequency, Controlling the ejection of liquid from the head unit; A recording apparatus comprising:
21. a distribution of the dots on the first surface has frequency characteristics different from white noise characteristics in a spatial frequency domain; the distribution of the dots on the second surface has frequency characteristics different from white noise characteristics in a spatial frequency domain; 21. The recording device according to claim 20,
22. a distribution of the dots on the first surface has blue noise characteristics in a spatial frequency domain; a distribution of the dots on the second surface having blue noise characteristics in a spatial frequency domain; 22. The recording device according to claim 20 or 21.
23. an acquisition step of acquiring image data indicating a gradation value of an image to be displayed by each of a plurality of pixels in a three-dimensional space when the image is represented in the three-dimensional space; a generating step of generating display data by quantizing the grayscale values represented by the image data; Equipped with The generating step includes: a selection step of selecting one pixel from the plurality of pixels; An error based on quantization of the gradation value corresponding to the one pixel is Distributing the light with a first distribution ratio to a first pixel located in a first direction of the one pixel; Distributing the first pixel to a second pixel located in a second direction from the first pixel at a second distribution ratio; a distributing step of distributing the first pixel to a third pixel located in a third direction from the first pixel at a third distribution rate; Equipped with the second direction intersects with the first direction, the third direction is a direction different from an extension direction of a plane defined by the first direction and the second direction, The selection step includes: When any pixel among a plurality of pixels in the three-dimensional space is present in the first direction of the one pixel, After selecting the one pixel, selecting another pixel located in the first direction of the one pixel; The first distribution ratio is greater than the second distribution ratio and the third distribution ratio.
13. An image processing method comprising:
24. an acquisition step of acquiring image data indicating a gradation value of an image to be displayed by each of a plurality of pixels in a three-dimensional space when the image is represented in the three-dimensional space; a generating step of generating display data by quantizing the grayscale values represented by the image data; Equipped with The generating step includes: a selection step of selecting one pixel from the plurality of pixels; An error based on quantization of the gradation value corresponding to the one pixel is Distributing the first distribution ratio to a first pixel adjacent to the one pixel in a first direction; Distributing the first pixel to a second pixel adjacent to the first pixel in a second direction at a second distribution ratio; Distributing the pixel signal to a third pixel adjacent to the one pixel in a third direction at a third distribution ratio; Distributing the light with a fourth distribution ratio to a fourth pixel adjacent to the first pixel in the first direction; Distributing the light with a fifth distribution ratio to a fifth pixel adjacent to the second pixel in the second direction; a distributing step of distributing the third pixel to a sixth pixel adjacent to the third pixel in a third direction at a sixth distribution ratio; Equipped with the second direction intersects with the first direction, The third direction is a direction different from an extension direction of a plane defined by the first direction and the second direction.
13. An image processing method comprising:
25. an acquisition step of acquiring image data indicating a gradation value of an image to be displayed by each of a plurality of pixels in a three-dimensional space when the image is represented in the three-dimensional space; a generating step of generating display data by quantizing the grayscale values represented by the image data; Equipped with The generating step includes: a selection step of selecting one pixel from the plurality of pixels; An error based on quantization of the gradation value corresponding to the one pixel is Distributing the first distribution ratio to a first pixel adjacent to the one pixel in a first direction; Distributing the first pixel to a second pixel adjacent to the first pixel in a second direction at a second distribution ratio; Distributing the pixel signal to a third pixel adjacent to the one pixel in a third direction at a third distribution ratio; Distributing the light with a seventh distribution ratio to a seventh pixel adjacent to the first pixel in the second direction; Distributing the light with an eighth distribution ratio to an eighth pixel adjacent to the first pixel in a third direction; a distributing step of distributing the second pixel to a ninth pixel adjacent to the second pixel in a third direction at a ninth distribution ratio; Equipped with the second direction intersects with the first direction, the third direction is a direction different from an extension direction of a plane defined by the first direction and the second direction, The selection step includes: When any pixel among a plurality of pixels in the three-dimensional space is present in the first direction of the one pixel, After selecting the one pixel, selecting another pixel located in the first direction of the one pixel; The plurality of pixels in the three-dimensional space are a plurality of pixel columns extending in the first direction; The selection step includes: When there is no pixel among the plurality of pixels in the three-dimensional space in the first direction of the one pixel, After selecting the one pixel, selecting another pixel from another pixel row located in the second direction of the one pixel row including the one pixel; The seventh distribution ratio is greater than the eighth distribution ratio.
13. An image processing method comprising:
26. A recording method for forming an image on a three-dimensional object by forming a plurality of dots by liquid ejected from a head unit that ejects the liquid, comprising the steps of: The dots are arranged by an error diffusion method; When the object has a first surface, a distribution of the dots on the first surface has a frequency characteristic in which high-frequency components higher than a predetermined frequency are more numerous than low-frequency components lower than the predetermined frequency in a spatial frequency domain; If the object has a second surface that is not parallel to the first surface, The distribution of the plurality of dots on the second surface has frequency characteristics in which high frequency components higher than a predetermined frequency in a spatial frequency domain are more numerous than low frequency components lower than the predetermined frequency, Recording images, A recording method comprising:
Citation Information
Patent Citations
Range clipping method, device therefor and display device
JP1995028995A
Generation method of image data with dither processing for stereoscopic image display carried out thereon and image data generation apparatus for the same
JP2011259404A
Solid shaping data creation apparatus and program
JP2015044299A
Stereoscopic image generation device and program
JP2016167740A
Molding method, molding system and molding apparatus
JP2018024117A
