Information processing method
The information processing method automates the coloring of image data faces by setting identification information for pixels, addressing the challenge of manually coloring complex shapes, and facilitating efficient coloring processes.
Patent Information
- Application Number
- JP2023056319
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-11
AI Technical Summary
Conventional methods require manual coloring of each constituent face of complex shapes and sizes, making it difficult to efficiently color multiple faces in image data.
An information processing method that generates split face information by setting the same identification information for pixels constituting the same face, using a series of checks and setting values to automate the coloring process based on predefined rules.
Enables easy and efficient coloring of image data faces, reducing manual effort and allowing for various coloring scenarios such as online-only, within a specified shape, or completely included within a shape, with reduced man-hours.
Smart Images

Figure 2024143571000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an information processing method. [Background technology]
[0002] Conventionally, for image data such as CAD (Computer Aided Design), a color or other specification is made for each constituent surface (face) of a component represented by an image in the image data, and then a plate thickness or other specification corresponding to the color specified for each constituent surface is made, thereby creating instructions for design and analysis. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2002-259472 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in conventional techniques, the user must perform coloring processing on each of the multiple constituent surfaces of various shapes and sizes that make up a component, making it difficult to easily color components in accordance with the constituent surfaces.
[0005] The problem to be solved by the present disclosure is to provide an information processing method capable of easily realizing coloring according to a constituent surface. [Means for solving the problem]
[0006] The information processing method according to the present disclosure includes a divided face information generating step of generating divided face information for each constituent surface of a member represented by an image of image data, in which the same first identification information is set to pixels constituting the same constituent surface, and the divided face information generating step sequentially checks, in a predetermined order, each of a plurality of pixels constituting the image data, which is composed of a plurality of pixels that are two-dimensionally arranged and have defined color information, and if color information of a designated color is defined for the confirmed pixel, sets a first setting value that is predetermined according to the designated color to the confirmed pixel, and if color information of the designated color is not defined for the confirmed pixel, and if only the first setting value corresponding to the designated color or no first setting value is set for other pixels around the confirmed pixel, in other pixels above, below, left, and right of the confirmed pixel, sets a value obtained by adding 1 to a first count number of a first counter as a first setting value of the confirmed pixel, and sets the first count number after the addition as a first count value of the confirmed pixel, and sets the set first setting value as the first identification information for the pixel of the first count value. and when only one first setting value equal to or greater than the sum of an initial value of a first count number of the first counter plus 1 is set for other pixels above, below, to the left, and to the right of the confirmed pixel, setting the first setting value as the first setting value of the confirmed pixel and setting a current first count value for the confirmed pixel; and when two or more first setting values equal to or greater than the sum of an initial value of a first count number of the first counter plus 1 are set for other pixels above, below, to the left, and to the right of the confirmed pixel, setting a minimum value of the two or more first setting values as the first setting value of the confirmed pixel and setting the current first count value for the confirmed pixel, and further changing the first identification information for the first count values of the confirmed pixel and the other pixels above, below, to the left, and to the right of the confirmed pixel to the minimum value of the first identification information of the confirmed pixel and the other pixels above, below, to the left, and to the right of the confirmed pixel; and a first replacement processing step of replacing the set first setting value with the first identification information for the set first count value for each of the plurality of pixels constituting the image data. Effect of the Invention
[0007] According to the information processing method of the present disclosure, it is possible to easily realize coloring according to the constituent surfaces. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a functional block diagram of an example of an information processing apparatus according to an embodiment. [Diagram 2] FIG. 2 is a hardware configuration diagram of an example of the processing unit. [Diagram 3] FIG. 3 is a schematic diagram of an example of image data. [Figure 4] FIG. 4 is a schematic diagram of an example of image data. [Figure 5A] FIG. 5A is a diagram illustrating an example of a process performed by a first setting unit. [Figure 5B] FIG. 5B is a diagram illustrating an example of a process performed by the first setting unit. [Figure 5C] FIG. 5C is a diagram illustrating an example of a process performed by the first setting unit. [Figure 5D] FIG. 5D is a diagram illustrating an example of a process performed by the first setting unit. [Figure 5E] FIG. 5E is a diagram illustrating an example of a process performed by the first setting unit. [Figure 5F] FIG. 5F is a diagram illustrating an example of a process performed by the first setting unit. [Figure 5G] FIG. 5G is a diagram illustrating an example of a process performed by the first setting unit. [Figure 5H] FIG. 5H is a schematic diagram of an example of divided face information. [Figure 5I] FIG. 5I is a schematic diagram of an example of divided face information. [Figure 6A] FIG. 6A is an explanatory diagram of an example of designation of a coloring target range. [Figure 6B] FIG. 6B is an explanatory diagram of an example of designation of the coloring target range. [Figure 6C] FIG. 6C is an explanatory diagram of an example of designation of a coloring target range. [Figure 6D] FIG. 6D is an explanatory diagram of an example of designation of a coloring target range. [Figure 7A]FIG. 7A is a diagram illustrating an example of a process performed by a second setting unit. [Figure 7B] FIG. 7B is a diagram illustrating an example of a process performed by the second setting unit. [Figure 7C] FIG. 7C is a diagram illustrating an example of information processing by the third setting unit. [Figure 7D] FIG. 7D is a diagram illustrating an example of information processing by the third setting unit. [Figure 7E] FIG. 7E is a diagram illustrating an example of information processing by the third setting unit. [Figure 7F] FIG. 7F is a diagram illustrating an example of information processing by the third setting unit. [Figure 7G] FIG. 7G is a diagram illustrating an example of information processing by the third setting unit. [Figure 7H] FIG. 7H is a diagram illustrating an example of information processing by the third setting unit. [Figure 7I] FIG. 7I is a diagram illustrating an example of information processing by the third setting unit. [Figure 8A] FIG. 8A is a schematic diagram of an example of image data 30 read by the image data reading unit. [Figure 8B] FIG. 8B is a schematic diagram of an example of the divided face information 34 generated by the divided face information generating unit. [Figure 8C] FIG. 8C is a schematic diagram of an example of the designated shape inside / outside information 44 generated by the designated shape inside / outside information generating unit. [Figure 9A] FIG. 9A is an explanatory diagram of an example of a case where coloring processing is performed with online coloring only. [Figure 9B] FIG. 9B is an explanatory diagram of an example of a case where coloring processing is performed with online coloring only. [Figure 9C] FIG. 9C is an explanatory diagram of an example of a case where coloring processing is performed with online coloring only. [Figure 10A] FIG. 10A is an explanatory diagram of an example of a case where coloring processing is performed within a specified shape frame. [Figure 10B] FIG. 10B is an explanatory diagram of an example of a case where coloring processing is performed within a specified shape frame. [Figure 10C] FIG. 10C is an explanatory diagram of an example of a case where coloring processing is performed within a specified shape frame. [Figure 11A] FIG. 11A is an explanatory diagram of an example of a case where coloring processing is performed on a face that contacts the inside of a specified shape frame. [Figure 11B] FIG. 11B is an explanatory diagram of an example of a case where coloring processing is performed on a face that contacts the designated shape frame. [Figure 11C] FIG. 11C is an explanatory diagram of an example of a case where coloring processing is performed on a face that contacts the designated shape frame. [Figure 12A] FIG. 12A is an explanatory diagram of an example of a case where coloring processing is performed on a face that is completely contained within a specified shape frame. [Figure 12B] FIG. 12B is an explanatory diagram of an example of a case where coloring processing is performed on a face that is completely contained within the specified shape frame. [Figure 12C] FIG. 12C is an explanatory diagram of an example of a case where coloring processing is performed on a face that is completely contained within the designated shape frame. [Figure 13] FIG. 13 is a flowchart illustrating an example of the flow of information processing executed by the information processing apparatus of the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of an information processing method according to the present disclosure will be described with reference to the accompanying drawings.
[0010] FIG. 1 is a functional block diagram of an example of an information processing device 10 that executes an information processing method according to the present embodiment.
[0011] The information processing device 10 is a device that allows a user to easily specify coloring for each face of an article represented by an image of image data such as CAD data.
[0012] A face represents a surface of a component that is made up of multiple surfaces. A component is an object represented by image data to be processed by the information processing device 10. A component is, for example, an exterior part that constitutes a structure such as a vehicle, a part that constitutes the structure, etc., but is not limited to these.
[0013] The information processing device 10 includes a processing unit 12, a communication unit 14, a storage unit 16, a display unit 18, and an input unit 20. The processing unit 12, the communication unit 14, the storage unit 16, the display unit 18, and the input unit 20 are communicatively connected via a bus 19 or the like.
[0014] The communication unit 14 communicates wirelessly or wired with an information processing device external to the information processing device 10 via a network or the like. The memory unit 16 stores various types of information. The display unit 18 displays various types of information. The display unit 18 is, for example, a display that displays images. The information processing device 10 may further include a speaker that outputs sound. The input unit 20 accepts operation input by a user. The input unit 20 is, for example, a pointing device such as a mouse, a keyboard, etc. The display unit 18 and the input unit 20 may be integrally configured as a touch panel.
[0015] The processing unit 12 executes various types of information processing.
[0016] FIG. 2 is a diagram showing an example of a hardware configuration of the processing unit 12. As shown in FIG.
[0017] The processing unit 12 has a hardware configuration utilizing a normal computer, in which a CPU (Central Processing Unit) 11A, a ROM (Read Only Memory) 11B, a RAM (Random Access Memory) 11C, an I / F 11D, etc. are interconnected via a bus 11E.
[0018] The CPU 11A is a calculation device that controls the processing unit 12 of this embodiment. The ROM 11B stores programs that realize various processes by the CPU 11A. The RAM 11C stores data necessary for various processes by the CPU 11A. The I / F 11D is an interface for transmitting and receiving data.
[0019] The program for executing information processing executed by the processing unit 12 of this embodiment is provided by being pre-installed in the ROM 11B, etc. The program executed by the processing unit 12 of this embodiment may be provided by being recorded in a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, or a digital versatile disk (DVD) in a file format that can be installed or executed on the information processing device 10.
[0020] Returning to Figure 1, we will continue with the explanation.
[0021] The processing unit 12 includes an image data reading unit 12A, a divided face information generating unit 12B, a designated shape inside / outside information generating unit 12E, and a coloring processing unit 12J. The divided face information generating unit 12B includes a first setting unit 12C and a first substitution processing unit 12D. The designated shape inside / outside information generating unit 12E includes a receiving unit 12F, a second setting unit 12G, a third setting unit 12H, and a second substitution processing unit 12I.
[0022] A part or all of the image data reading unit 12A, the divided face information generating unit 12B, the first setting unit 12C, the first replacement processing unit 12D, the designated shape inside / outside information generating unit 12E, the receiving unit 12F, the second setting unit 12G, the third setting unit 12H, the second replacement processing unit 12I, and the coloring processing unit 12J may be realized by, for example, having a processing device such as a CPU execute a program, that is, by software. Also, a part or all of these units may be realized by hardware such as an IC (Integrated Circuit). Also, a part or all of these units may be realized by using both software and hardware. Also, at least one of these units may be configured to be mounted on an external information processing device communicably connected to the information processing device 10 via a network or the like.
[0023] The image data reading unit 12A reads image data to be processed. First, the image data reading unit 12A acquires the image data to be processed. For example, the image data reading unit 12A acquires the image data to be processed from an external information processing device via the storage unit 16 or the communication unit 14.
[0024] FIG. 3 is a schematic diagram of an example of image data 28 to be processed. For example, the image data 28 is CAD data, and is represented by a bitmap file or the like. FIG. 2 shows a schematic diagram of data representing an image of a component B, such as an exterior part of a vehicle, as the image data 28, as an example. The component B is composed of a plurality of faces F. As shown in FIG. 3, the component B is composed of a plurality of faces F, and the plurality of faces F are composed of a plurality of types of shapes and a plurality of types of sizes. In the image data 28, these faces F are separated by frames FR.
[0025] The image data reading unit 12A reads the image data 28 using an application such as VBA (Visual Basic for Applications), and stores the image data 28 in the storage unit 16 as image data in which each pixel constituting the image data 28 is two-dimensionally arranged.
[0026] FIG. 4 is a schematic diagram of an example of image data 30 after being read by the image data reading unit 12A.
[0027] The image data 30 is composed of a plurality of pixels P that are two-dimensionally arranged and have color information defined. In detail, the image data 30 is configured by two-dimensionally arranging a plurality of pixels P along each of the x-axis direction and the y-axis direction in a two-dimensional plane consisting of the x-axis direction and the y-axis direction perpendicular to the x-axis direction. Therefore, the position coordinates of each pixel P that constitutes the image data 30 are defined by the x-coordinate and the y-coordinate. In addition, for each pixel P, color information of the corresponding pixel that constitutes the image data 28 is defined. The color information is expressed, for example, by RGB values. The RGB values are expressed, for example, in 256 gradations for each of the R value, the G value, and the B value.
[0028] The image data reading unit 12A reads and processes the image data 28 on VBA, converting it into image data 30 consisting of a plurality of pixels P that are two-dimensionally arranged and have defined color information, and stores it in the storage unit 16. The sizes of the image data 30 in the x-axis direction and the y-axis direction match the sizes of the image of the image data 28 in the x-axis direction and the y-axis direction, respectively. For the sake of explanation, this embodiment will be described assuming that the image data 28 is 10×10, with 10 pixels in the x-axis direction and 10 pixels in the y-axis direction.
[0029] As shown in FIG. 4, the image data 30 is composed of a plurality of pixels P constituting each of a frame region 30A corresponding to each frame FR of the face F of the member B, a face region 30B corresponding to the face F, and a background region 30C which is the background G outside the member B.
[0030] Returning to Figure 1, we will continue with the explanation.
[0031] The divided face information generating unit 12B generates, for each face F of the member B represented by the image of the image data 30, divided face information in which the same first identification information Ch1 is set for pixels constituting the same face F.
[0032] The divided face information generating unit 12B includes a first setting unit 12C and a first substitution processing unit 12D.
[0033] The first setting unit 12C checks, in a predetermined order, each of the pixels P that make up the image data 30, which is made up of a plurality of pixels P that are two-dimensionally arranged and have defined color information, and executes the following process.
[0034] 5A to 5G are diagrams illustrating an example of the process performed by the first setting unit 12C.
[0035] 5A, first, the first setting unit 12C prepares two-dimensional array information 32. The first setting unit 12C prepares two-dimensional array information 32 having a size in which the number of pixels in the x-axis direction of image data 30 is +1, and the number of pixels in the y-axis direction of image data 30 is +1.
[0036] Then, the first setting unit 12C sets a first setting value representing "0" to pixels P that are blank spaces in the image data 30 in the two-dimensional array information 32. The first setting value is a numerical value that the first setting unit 12C sets to each pixel P that constitutes the two-dimensional array information 32.
[0037] 5B, next, first setting unit 12C sequentially checks each of the multiple pixels P constituting image data 30 in two-dimensional array information 32 in a predetermined order (see the direction of arrow R). The predetermined order represented by arrow R indicates that after sequentially checking each pixel P along the direction of arrow R from pixel P on one end side in the x-axis direction to pixel P on the other end side, the process of moving one pixel P in the y-axis direction and sequentially checking each pixel P along the direction of arrow R from pixel P on one end side in the x-axis direction to pixel P on the other end side is repeated.
[0038] The first setting unit 12C sequentially checks each of the multiple pixels P that constitute the image data 30 in the two-dimensional array information 32 along the direction of arrow R, and if color information of a specified color is defined for the confirmed pixel P, it sets a first setting value that is predetermined in accordance with the specified color to the confirmed pixel P.
[0039] In detail, the first setting unit 12C judges whether or not the color information of the pixel P at the confirmed pixel position in the image data 30 is a specified color designated as the frame FR. Specifically, it judges whether or not the pixel P at the confirmed pixel position is a pixel P that constitutes the frame region 30A in the image data 30. Then, if the color information of the confirmed pixel P is a specified color designated as the frame FR, the first setting unit 12C sets "1" as the first setting value for the pixel P at the pixel position.
[0040] The first setting unit 12C also determines whether or not the color information of the pixel P at the confirmed pixel position in the image data 30 is a designated color designated as the background G. Specifically, it determines whether or not the pixel P at the confirmed pixel position is a pixel P that constitutes the background region 30C in the image data 30. Then, if the color information of the confirmed pixel P is a designated color designated as the background G, the first setting unit 12C sets "0" as the first setting value for the pixel P at the pixel position.
[0041] Therefore, when color information of a specified color is defined for the pixel P confirmed by the first setting unit 12C, a first setting value predetermined according to the specified color is set for the confirmed pixel P, so that, as shown in FIG. 5C, the first setting value "1" is set for the pixel P constituting the frame region 30A in the two-dimensional array information 32, and the first setting value "0" is set for the pixel P constituting the background region 30C.
[0042] If the color information of the specified color is not defined for the confirmed pixel P in the two-dimensional array information 32, the first setting unit 12C performs the following processing according to other pixels P surrounding the confirmed pixel P with the following priority.
[0043] First, the first setting unit 12C determines, for a confirmed pixel P for which color information of a specified color is not specified, whether or not only a first setting value corresponding to the specified color or no first setting value is set for other pixels P above, below, to the left, and to the right of the confirmed pixel P.
[0044] In detail, for a confirmed pixel P for which color information of a specified color is not defined, the first setting unit 12C judges whether or not only the first setting value "1" according to the specified color is set for other pixels P on the top, bottom, left and right of the confirmed pixel P, or whether or not any first setting value is set for the other pixels P. If this condition is met, the first setting unit 12C sets a value obtained by adding "1" to the first count number of the first counter as the first setting value for the confirmed pixel P.
[0045] Up and down refers to the direction along the y-axis direction in the two-dimensional array information 32. Left and right refers to the direction along the x-axis direction in the two-dimensional array information 32. Other pixels P above, below, to the left and right refer to other pixels P adjacent to the confirmed pixel P in each of the x-axis direction and the y-axis direction.
[0046] The first counter is a counter for counting a first count number, which is a variable for managing allocation numbers, and the initial value of the first count number of the first counter is "1".
[0047] 5D, a scene is assumed in which pixel P35, which is a pixel P at pixel position (x, y)=(3, 5), is the confirmed pixel P. In this case, only "1" or nothing is set as the first setting value for other pixels P above, below, left and right of the confirmed pixel P35.
[0048] In this case, the first setting unit 12C sets the first setting value of the confirmed pixel P35 to "2", which is the value obtained by adding "1" to the initial value "1" of the first counter, which is the current first count number (see Figure 5D).
[0049] In addition, the first setting unit 12C sets the first count number after the addition as the first count value of the confirmed pixel P, and sets the first setting value, "2", as the first identification information Ch1 for the pixel P of the first count value.
[0050] Therefore, the first setting unit 12C sets a first setting value of "2" for pixel P35, and sets a first count value of "2" for pixel P35. The first setting unit 12C also sets "2" as the first identification information Ch1 for the first count value "2", which is the first count number of pixel P35. Therefore, the first identification information Ch1(2)=2 is set. The number in parentheses following the first identification information Ch1 represents the first count value.
[0051] Next, the first setting unit 12C determines whether, for a confirmed pixel P for which color information of a specified color is not specified, only one first setting value that is equal to or greater than the initial value of the first count number of the first counter plus 1 is set for other pixels P above, below, to the left and right of the confirmed pixel P.
[0052] In detail, for a confirmed pixel P for which color information of a specified color is not defined, the first setting unit 12C judges whether or not only one first setting value that is equal to or greater than a sum "2" obtained by adding "1" to the initial value "1" of the first count number of the first counter is set for other pixels P above, below, to the left, and to the right of the confirmed pixel P. If this condition is satisfied, the first setting unit 12C sets the set first setting value as the first setting value of the confirmed pixel P.
[0053] 5E, a scene is assumed in which pixel P36, which is a pixel P at pixel position (x, y)=(3, 6), is the confirmed pixel P. In this case, the other pixels P above, below, left and right of the confirmed pixel P36 have only one first set value "2" set, which is equal to or greater than the added value "2" obtained by adding "1" to the initial value "1" of the first count number of the first counter.
[0054] In this case, the first setting unit 12C sets the first setting value "2" that has been set as the first setting value of the confirmed pixel P36 (see FIG. 5E).
[0055] Moreover, the first setting unit 12C sets the confirmed pixel P to the current first count value.
[0056] Therefore, the first setter 12C sets a first set value of "2" for pixel P36, and sets the current first count value of "2" as the first count number for pixel P35. Thus, the first set value of "2" is set for pixel P36, and the first identification information Ch1 for the first count value of "2" is set as first identification information Ch1(2)=2.
[0057] As shown in Fig. 5F, similar processing is performed on pixels P38, P39, and P44 at pixel positions (x,y) = (3,8), (3,9), and (4,4), respectively, so that the first set value "3" is set for pixels P38 and P39, and the first set value "4" is set for pixel P44. Moreover, the first identification information Ch1(3) = 3, which is the first identification information Ch1 corresponding to the first count value "3", is set for pixels P38 and P39. Moreover, the first identification information Ch1(4) = 4, which is the first identification information Ch1 corresponding to the first count value "4", is set for pixel P44.
[0058] Next, the first setting unit 12C determines whether, for a confirmed pixel P for which color information of a specified color is not specified, other pixels P above, below, to the left and right of the confirmed pixel P have a first setting value of 2 or more set, which is equal to or greater than the initial value of the first count number of the first counter plus 1.
[0059] In detail, for a confirmed pixel P for which color information of a specified color is not defined, the first setting unit 12C judges whether or not two or more first setting values, which are equal to or greater than the sum "2" obtained by adding "1" to the initial value "1" of the first count number of the first counter, are set for other pixels P above, below, to the left, and to the right of the confirmed pixel P. If this condition is met, the first setting unit 12C sets the minimum value of the two or more first setting values as the first setting value of the confirmed pixel P.
[0060] 5F, a scene is assumed in which pixel P45, which is a pixel P at pixel position (x, y) = (4, 5), is the confirmed pixel P. In this case, a first setting value of 2 or more is set for other pixels P above, below, to the left and right of the confirmed pixel P45, which is equal to or greater than the added value "2" obtained by adding "1" to the initial value "1" of the first count number of the first counter.
[0061] In this case, the first setting unit 12C sets the first setting value of the confirmed pixel P36 to "2", which is the minimum of "2" and "4", which are first setting values greater than or equal to the added value "2" above, below, left and right, as the first setting value of the confirmed pixel P45 (see Figure 5F).
[0062] Moreover, the first setting unit 12C sets the current first count value for the confirmed pixel 45.
[0063] Therefore, the first setter 12C sets a first set value of "2" for the pixel P45, and sets the first count number of the pixel P45 to the current first count value of "4." Thus, the first set value of "2" is set for the pixel P45, and the first identification information Ch1 for the first count value of "4," that is, first identification information Ch1(4)=4, is set.
[0064] Then, the first setting unit 12C further changes the first identification information Ch1 for the first count value of the confirmed pixel 45 and the other pixels P above, below, left and right of the confirmed pixel 45 to the minimum value among the first identification information Ch1 of the confirmed pixel 45 and the other pixels P above, below, left and right of the confirmed pixel 45.
[0065] Specifically, the first identification information Ch1 for the first count value "4" of the confirmed pixel 45 is Ch1(4)=2. Moreover, the first identification information Ch1 for the first count value "2" of the pixel P35 adjacent to the upper side of the confirmed pixel 45 is Ch1(2)=2. Moreover, the first identification information Ch1(4) for the first count value "4" of the pixel P44 adjacent to the left side of the confirmed pixel 45 is Ch1(4)=4.
[0066] Therefore, in this case, the first setting unit 12C changes the first identification information Ch1(4)=4 for the first count value "4" of pixel P44 to the first identification information Ch1(4)=2 so that the value of the first identification information Ch1 for these pixels P becomes the smallest value, "2."
[0067] The first setting unit 12C sequentially checks each of the multiple pixels P constituting the image data 30 in the two-dimensional array information 32 along the direction of the arrow R, and if the color information of the specified color is not defined for the confirmed pixel P in the two-dimensional array information 32, the first setting value is set for each pixel P constituting the two-dimensional array information 32, as shown in FIG. 5G, by performing the above process in the above priority according to other pixels P surrounding the confirmed pixel P. Also, the first identification information Ch1 according to the first count value of each pixel P is set for each pixel constituting the two-dimensional array information 32. In the state shown in FIG. 5G, any one of the first count values "2" to "8" is set for each confirmed pixel P not defined for the color information of the specified color. In addition, the first identification information Ch1 for each of the first count values "2" to "8" of each pixel P is set to any one of the following: first identification information Ch1(2) = 2, first identification information Ch1(3) = 3, first identification information Ch1(4) = 2, first identification information Ch1(5) = 2, first identification information Ch1(6) = 6, first identification information Ch1(7) = 3, or first identification information Ch1(8) = 3.
[0068] Returning to Figure 1, we will continue with the explanation.
[0069] The first replacement processing unit 12D replaces the first set value set for each of the multiple pixels P constituting the image data 30 represented by the two-dimensional array information 32 with the first identification information Ch1 for the set first count value.
[0070] Fig. 5H is a schematic diagram showing a state in which the first setting value set for each pixel P has been replaced with first identification information Ch for the first count value set for each pixel P. Through the replacement process by first replacement processing unit 12D, the first setting value set for each of the pixels P for which color information of the designated color representing the frame FR or background G in the two-dimensional array information 32 shown in Fig. 5G is not defined is replaced with the value of first identification information Ch1 for the first count value set for each of the pixels P (see replaced pixel region S1 in Fig. 5H).
[0071] By this replacement process, as shown in FIG. 5I, for each face F of the member B represented by the image of the image data 30, divided face information 34 is generated in which the same first identification information Ch1 is set for the pixels P constituting the same face F.
[0072] In detail, as shown in Fig. 5H, pixels P in the divided face information 34 to which a first setting value other than "1" representing the frame FR or "0" representing the background G or margin is set become face area 30B constituting face F (see Fig. 5I). Moreover, pixels P constituting face area 30B are set to a value of "2" or more as a first setting value (see Figs. 5H and 5I). Moreover, pixels P constituting the same face F are set to the same first setting value (see Figs. 5H and 5I).
[0073] Returning to Figure 1, we will continue with the explanation.
[0074] The designated shape inside / outside information generating unit 12E generates designated shape inside / outside information in which the same second identification information is set for pixels P constituting the designated coloring range in the image of the image data 30.
[0075] The designated shape inside / outside information generating unit 12E includes a receiving unit 12F, a second setting unit 12G, a third setting unit 12H, and a second replacement processing unit 12I.
[0076] The receiving unit 12F receives a designation of a coloring range in an image of the image data 30.
[0077] 6A to 6D are diagrams illustrating an example of designation of a coloring target range.
[0078] For example, the reception unit 12F displays an image of the image data 30 on the display unit 18. The user operates the input unit 20 while visually checking the displayed image of the image data 30, thereby specifying a coloring target range, which is a range in the image that the user wants to color.
[0079] Specifically, for example, the reception unit 12F displays an image of the image data 30 shown in Fig. 6A on the display unit 18. The user draws an outline frame 40 of the area to be colored by operating the input unit 20 while viewing the image. Note that the shape and range of the outline frame 40 of the area to be colored may be any shape and range desired by the user, and are not limited to the form shown in Fig. 6A. For example, assume a scene in which the outline frame 40 of the area to be colored shown in Fig. 6A is drawn by the user operating the input unit 20.
[0080] In this case, the reception unit 12F stores information on the vertex coordinates of the outline frame 40 of the range to be colored in the two-dimensional array information 42.
[0081] For example, as shown in FIG. 6B, the reception unit 12F acquires the position coordinates of each vertex of the outline frame 40 of the coloring range in the image data 30, and stores in the two-dimensional array information 42 for each vertex a percentage position indicating which relative position in the entire image of the image data 30 the position coordinates of each vertex correspond to. For example, assume that the position of a certain vertex in the outline frame 40 of the coloring range in the x-axis direction corresponds to the center of the entire image of the image data 30 in the x-axis direction. In this case, the reception unit 12F stores 0.5 as the percentage position of the vertex in the x-axis direction. Also assume that the position of a certain vertex in the outline frame 40 of the coloring range in the y-axis direction corresponds to 20% from the origin in the entire image of the image data 30 in the y-axis direction. In this case, the reception unit 12F stores 0.2 in the two-dimensional array information 42 as the percentage position of the vertex in the y-axis direction.
[0082] 6C, there are cases where a part of the outer frame 40' of the range to be colored specified by the user is disposed so as to extend beyond the image size of the image data 30. In this case, the reception unit 12F may adjust the outer frame 40 by trimming the part of the outer frame 40' of the range to be colored specified that extends beyond the image size of the image data 30 so that the part conforms to the outer shape of the image size.
[0083] 6D, the first setting unit 12C may store the relative position of the position coordinates of each vertex of the outline frame 40 of the coloring range after trimming in the two-dimensional array information 42. Specifically, the first setting unit 12C may determine the relative position of the vertex "3'" of the outline frame 40 of the coloring range after trimming from the ratio between the distance L1 between the vertex "3" of the outline frame 40' of the coloring range before trimming and the vertex "2" in the image, and the distance L2 between the vertex "3'" of the outline frame 40 of the coloring range after trimming and the vertex "2" in the image, in FIG.
[0084] Returning to Figure 1, we will continue with the explanation.
[0085] The second setting unit 12G sets an outer frame value representing the outer frame 40 to pixels P that overlap the outer frame 40 of the coloring range in two-dimensional array information 42 consisting of a plurality of pixels P, and sets outer frame values to pixels outside the frame of the image.
[0086] 7A and 7B are explanatory diagrams of an example of the process performed by the second setting unit 12G.
[0087] 7A, the second setting unit 12G prepares two-dimensional array information 42. The two-dimensional array information 42 is similar to the two-dimensional array information 32. That is, the second setting unit 12G prepares two-dimensional array information 42 having a size in which the number of pixels in the x-axis direction is the number of pixels in the x-axis direction of the image data 30 + 1, and the number of pixels in the y-axis direction is the number of pixels in the y-axis direction of the image data 30 + 1.
[0088] Then, the second setting unit 12G uses the relative positions of each vertex of the outline frame 40 stored in the two-dimensional array information 42 by the receiving unit 12F to set "1" as the outline value representing the outline frame 40 at pixel P through which the outline frame 40 of the range to be colored passes.
[0089] Furthermore, second setting unit 12G sets "0" as an outside-frame value to pixel P outside the frame of the image of image data 30 in two-dimensional array information 42 (see FIG. 7B).
[0090] Returning to Figure 1, we will continue with the explanation.
[0091] The third setting unit 12H checks each of the pixels P that constitute the two-dimensional array information 42 in a predetermined order, for which the outer frame value "1" or the outer frame value "0" is not set, and performs the following processing.
[0092] 7C to 7I are diagrams illustrating an example of information processing by the third setting unit 12H.
[0093] 7C, the third setting unit 12H checks, in a predetermined order, each of the pixels P that are not set with the outer frame value "1" or the outer frame value "0" among the multiple pixels P that make up the two-dimensional array information 42. The predetermined order is the direction along the arrow R, and is the same as above.
[0094] The third setting unit 12H performs the following processing for a confirmed pixel P in the two-dimensional array information 42 for which the outer frame value or the outer frame value is not set, depending on other pixels P surrounding the confirmed pixel P, with the following priority:
[0095] First, for a confirmed pixel P for which the outer frame value or the outer frame value has not been set, if the outer frame value "0" is set or no second setting value is set for other pixels above, below, to the left and right of the confirmed pixel P, the third setting unit 12H sets the outer frame value "0" as the second setting value for the confirmed pixel P and does not set the second identification information Ch2.
[0096] Up and down refers to the direction along the y-axis direction in the two-dimensional array information 42. Left and right refers to the direction along the x-axis direction in the two-dimensional array information 42. Other pixels P above, below, to the left and right refer to other pixels P adjacent to the confirmed pixel P in each of the x-axis direction and the y-axis direction.
[0097] Specifically, as shown in Fig. 7D, a scene is assumed in which pixel P11, which is a pixel P at pixel position (x, y) = (1, 1), is the confirmed pixel P. In this case, the other pixels P above, below, left and right of the confirmed pixel P11 are set with an outer frame value of "0" or are set with nothing.
[0098] In this case, the third setting unit 12H sets the outer frame value "0" as the second setting value for the confirmed pixel P11, and does not set the second identification information Ch2.
[0099] Next, for the confirmed pixel P to which the outer frame value or the outer frame value is not set, the third setting unit 12H judges whether or not the outer frame value "1" or no second setting value is set for other pixels P above, below, to the left, or to the right of the confirmed pixel P. If this condition is met, the third setting unit 12H sets the value obtained by adding "1" to the second count number of the second counter as the second setting value for the confirmed pixel P.
[0100] The second counter is a counter for counting the second count number, which is a variable for managing allocation numbers, and the initial value of the second count number of the second counter is "1".
[0101] 7E, a scene is assumed in which pixel P73, which is a pixel P at pixel position (x, y) = (7, 3), is the confirmed pixel P. In this case, the other pixels P above, below, left and right of the confirmed pixel P73 are set with an outer frame value of "1" or are set with nothing.
[0102] In this case, the third setting unit 12H sets the second setting value of the confirmed pixel P73 to "2", which is the value obtained by adding "1" to the initial value "1" of the second counter, which is the current second count number (see Figure 7E).
[0103] In addition, the third setting unit 12H sets the second count number after the addition as the second count value of the confirmed pixel P, and sets the second setting value, "2", as the second identification information Ch2 for the pixel P of the second count value.
[0104] Therefore, the third setting unit 12H sets the second set value "2" for the pixel P73, and sets the second count value "2" for the pixel P73. The third setting unit 12H also sets "2" as the second identification information Ch2 for the second count value "2", which is the second count number of the pixel P73. Therefore, the second identification information Ch2(2)=2 is set. The number in parentheses following the second identification information Ch2 represents the second count value.
[0105] Next, for a confirmed pixel P to which the outer frame value or the outer frame value has not been set, if a second setting value equal to or greater than the additional value "2" obtained by adding 1 to the initial value of the second count number is set for other pixels P to the top, bottom, left, and right of the confirmed pixel P, and the outer frame value "0" has not been set for other pixels P to the top, bottom, left, and right of the confirmed pixel P, the third setting unit 12H sets the minimum value of the second setting values equal to or greater than the additional value "2" as the second setting value of the confirmed pixel P.
[0106] Specifically, as shown in Fig. 7F, a scene is assumed in which pixel P83, which is a pixel P at pixel position (x, y) = (8, 3), is the confirmed pixel P. In this case, a second setting value of 1 or more is set to the other pixels P above, below, left, and right of the confirmed pixel P83, which is equal to or greater than the added value "2" obtained by adding "1" to the initial value "1" of the second count number of the second counter, and the outer frame value "0" is not set to the other pixels P above, below, left, and right of the confirmed pixel P83.
[0107] In this case, the third setting unit 12H sets the second setting value of the confirmed pixel P83 to "2", which is the minimum value among the second setting values "2" that are greater than or equal to the above-mentioned added value "2" above, below, left and right, as the second setting value of the confirmed pixel P83 (see Figure 7F).
[0108] Moreover, the third setting unit 12H sets the current second count value for the confirmed pixel 83.
[0109] Therefore, the third setter 12H sets the second set value "2" for the pixel P83, and sets the second count number of the pixel P83 to the current second count value "2". Thus, the second set value "2" is set for the pixel P83, and the second identification information Ch2(2)=2, which is the second identification information Ch2 for the second count value "2", is set.
[0110] Then, the third setting unit 12H further changes the second identification information Ch2 for the second count value of the confirmed pixel 83 and other pixels P above, below, left, and right of the confirmed pixel 83 to the minimum value among the second identification information Ch2 of the confirmed pixel 83 and other pixels P above, below, left, and right of the confirmed pixel 83. In the pixel 83 in the state shown in Fig. 7F, the only pixel P among the pixels P above, below, left, and right of the pixel 83 to which the second identification information Ch2 is set is the pixel 73, and the second identification information Ch2(2)=2 is set for the pixel 73. For this reason, in this case, the second identification information Ch2 is not changed.
[0111] The third setting unit 12H sequentially checks each of the pixels P constituting the image data 30 in the two-dimensional array information 42 along the direction of the arrow R, and performs the above process on the confirmed pixels P to which the outer frame value "1" or the outer frame value "0" is not set, thereby setting the outer frame value "1", the outer frame value "0", or the second setting value to each pixel P constituting the two-dimensional array information 42, as shown in FIG. 7G. In addition, the second identification information Ch2 according to the second count value of each pixel P is set to the pixel P to which the second setting value is set among the pixels P constituting the two-dimensional array information 42. In the state shown in FIG. 7H, the pixel P to which the second setting value is set (the pixel P to which the second setting value of "2", "3", or "4" is set in FIG. 7G) is set to one of the second count values "2" to "4". In addition, the second identification information Ch2 for each of the second count values "2" to "4" of each pixel P is set to any one of the following: second identification information Ch2(2)=2, second identification information Ch2(3)=2, or second identification information Ch2(4)=2.
[0112] Returning to Figure 1, we will continue with the explanation.
[0113] The second replacement processing unit 12I replaces the set second setting value with second identification information Ch2 for the set second count value for each of the multiple pixels P that constitute the image data 30 represented by the two-dimensional array information 42.
[0114] Fig. 7H is a schematic diagram showing a state in which the second setting value set for each pixel P has been replaced with the second identification information Ch2 for the second count value set for each pixel P. Through the replacement process by the second replacement processor 12I, the second setting value set for each of the pixels P constituting the outer frame 40 of the range to be colored in the two-dimensional array information 42 shown in Fig. 7G has been replaced with the value of the second identification information Ch2 for the second count value set for each of the pixels P (see replaced pixel region S2 in Fig. 7H).
[0115] By this replacement process, as shown in Figure 7H, the same second identification information Ch2 is set within the outer frame 40 of the range to be colored specified by the user in the image of the image data 30, an outer frame value of "1" is set to pixels P overlapping the outer frame 40, and a specified shape inside / outside information 44 is generated in which a frame outside value of "0" is set to pixels P forming the outside of the outer frame 40.
[0116] Although not present in the examples shown in Figures 7D to 7G, the third setting unit 12H may set a second setting value of 1 or more to other pixels above, below, to the left and right of a confirmed pixel P to which the outer frame value "1" or the outer frame value "0" has not been set, the second setting value being equal to or greater than the added value "2" obtained by adding 1 to the initial value of the second count number, and the outer frame value "0" has been set to other pixels above, below, to the left and right of the confirmed pixel.
[0117] Specifically, as shown in Fig. 7I, a scene is assumed in which pixel P45, which is a pixel P at a pixel position (x, y) = (4, 5), is the confirmed pixel P. In this case, the third setting unit 12H may set the outer frame value "0" as the second setting value for the confirmed pixel P45.
[0118] Returning to Figure 1, we will continue with the explanation.
[0119] The coloring processing unit 12J performs coloring processing according to the face F of the part B represented by the image represented by the image data 30, using the image data 30 read by the image data reading unit 12A, the divided face information 34 generated by the divided face information generation unit 12B, and the specified shape inside and outside information generation unit 12E.
[0120] Fig. 8A is a schematic diagram of an example of image data 30 read by the image data reading unit 12A. Fig. 8B is a schematic diagram of an example of divided face information 34 generated by the divided face information generating unit 12B. Fig. 8C is a schematic diagram of an example of designated shape inside / outside information 44 generated by the designated shape inside / outside information generating unit 12E.
[0121] The coloring processing unit 12J executes any one of coloring processes, for example, coloring only online, coloring within the specified shape frame, coloring faces F that contact the specified shape frame, and coloring faces F that are completely included within the specified shape frame.
[0122] For example, the coloring processing unit 12J receives an instruction to execute any one of the coloring processes by a user's operation instruction via the input unit 20. The coloring processing unit 12J executes the coloring process indicated by the execution instruction.
[0123] Online-only coloring is a coloring process in which coloring is performed on the area of face F of part B represented by an image that overlaps with outline frame 40 of the area to be colored.
[0124] 9A to 9C are diagrams illustrating an example of a case where a coloring process for online coloring only is executed.
[0125] The coloring processing unit 12J performs coloring on pixels P at pixel positions where an outer frame value of "1" is set (see FIG. 9A) in the specified shape inside / outside information 44 and a first setting value of "2" or more is set in the divided face information 34, among the multiple pixels P constituting the image data 30 (see FIG. 8A). Through this coloring process, the coloring processing unit 12J generates colored image data 36A shown in FIG. 9C. The colored image data 36A is an example of colored image data 36. The colored image data 36A is image data in which a colored pixel area 50, which is an area in the image data 30 that overlaps with the outer frame 40 of the area to be colored, on the face F of the member B represented by the image of the image data 30 is colored.
[0126] Therefore, when a user instructs the coloring processing unit 12J to execute a coloring process that represents coloring only online by operating the input unit 20, the coloring processing unit 12J can easily create colored image data 36A that selectively colors areas that overlap with the outline frame 40 of the area to be colored on the face F of the component B represented by the image.
[0127] Coloring within a specified shape frame is a coloring process for coloring an area inside an outer frame 40 of a range to be colored on a face F of a member B represented by an image.
[0128] 10A to 10C are explanatory diagrams of an example of a case where coloring processing is performed within a designated shape frame.
[0129] The coloring processing unit 12J performs coloring on pixels P at pixel positions where a second setting value equal to or greater than the outer frame value "1" in the specified shape inside / outside information 44 is set (see FIG. 10A) and where a first setting value equal to or greater than "2" is set in the divided face information 34, among the multiple pixels P constituting the image data 30 (see FIG. 8A). Through this coloring process, the coloring processing unit 12J generates colored image data 36B shown in FIG. 10C. The colored image data 36B is an example of colored image data 36. The colored image data 36B is image data in which a colored pixel area 50, which is an area inside the outer frame 40 of the area to be colored, in the face F of the member B represented by the image of the image data 30 is colored.
[0130] Therefore, when a user operates the input unit 20 to instruct the coloring processing unit 12J to execute a coloring process that represents coloring within a specified shape frame, the coloring processing unit 12J can easily create colored image data 36B that selectively colors the area inside the outline frame 40 of the area to be colored on the face F of the component B represented by the image.
[0131] Coloring the face F that contacts the specified shape frame is a coloring process that colors the area of the face F of the member B represented by the image that contacts the outline frame 40 of the area to be colored.
[0132] 11A to 11C are diagrams illustrating an example of a case where a coloring process is executed on a face F that contacts the designated shape frame.
[0133] The coloring processing unit 12J identifies a pixel P at a pixel position where a second setting value equal to or greater than the outer frame value "1" in the specified shape inside / outside information 44 is set (see FIG. 11A) and a first setting value equal to or greater than "2" in the divided face information 34 is set, among a plurality of pixels P constituting the image data 30 (see FIG. 8A). The coloring processing unit 12J also identifies other pixels P at which the same first setting value as the identified pixel P is set, among the identified pixels P in the divided face information 34. Then, the coloring processing unit 12J performs coloring on these identified pixels P. Through this coloring process, the coloring processing unit 12J generates colored image data 36C shown in FIG. 11C. The colored image data 36C is an example of the colored image data 36. The colored image data 36C is image data in which a colored pixel area 50, which is an area of the face F of the member B represented by the image of the image data 30 that contacts the outer frame 40 of the coloring target range, is colored.
[0134] Therefore, when a user operates the input unit 20 to instruct the coloring processing unit 12J to execute a coloring process representing the coloring of face F that contacts within the specified shape frame, the coloring processing unit 12J can easily create colored image data 36C that selectively colors the area of face F of the member B represented by the image that contacts the outer frame 40 of the area to be colored.
[0135] Coloring the faces F that are completely contained within the specified shape frame is a coloring process that colors the faces F of the member B represented by the image that are completely contained within the outer frame 40 of the coloring target range.
[0136] 12A to 12C are diagrams illustrating an example of a case where a coloring process is executed on a face F that is completely contained within a specified shape frame.
[0137] The coloring processor 12J counts the number of pixels P for each first setting value as the counted number (see FIG. 12B) for pixels P constituting the image data 30 (see FIG. 8A) that have a first setting value of "2" or more set in the division face information 34. The coloring processor 12J also calculates the number of pixels P for each first setting value as the condition hit number for pixels P at pixel positions where a second setting value of "1" or more is set in the designated shape inside / outside information 44 (see FIG. 12A) and a first setting value of "2" or more is set in the division face information 34.
[0138] Then, the coloring processor 12J calculates a difference by subtracting the condition hit number from the count number for each of the first set values equal to or greater than "2" in the divided face information .
[0139] In the case of the designated shape inside / outside information 44 and the divided face information 34 shown in FIGS. 12A and 12B, the coloring processor 12J calculates the following difference.
[0140] Regarding the first setting value "2": Number of counts "14" - Number of condition hits "6" = Difference 8 Regarding the first setting value "6": Number of counts "1" - Number of condition hits "1" = Difference 0 Regarding the first setting value "3": Number of counts "14" - Number of condition hits "14" = Difference 0
[0141] Then, the coloring processing unit 12J performs coloring on the pixel P in the image data 30 for which the first set value is set and the difference becomes 0. Through this coloring process, the coloring processing unit 12J generates colored image data 36D shown in Fig. 12C. The colored image data 36D is image data in which a colored pixel region 50, which is a face F of the member B represented by the image of the image data 30 and which is completely included within the outline frame 40 of the area to be colored, is colored.
[0142] Therefore, when a user operates the input unit 20 to instruct the coloring processing unit 12J to perform coloring processing of a face F that is completely contained within a specified shape frame, the coloring processing unit 12J can easily create colored image data 36D in which the face F of the component B represented by the image is selectively colored.
[0143] The coloring processing unit 12J outputs the generated colored image data 36 to the display unit 18. Therefore, by visually checking the colored image data 36 displayed on the display unit 18, the user can easily confirm the colored image data 36 that has been colored in accordance with the execution instructions representing coloring only online, coloring within the specified shape frame, coloring faces F that contact the specified shape frame, or coloring faces F that are completely included within the specified shape frame.
[0144] The coloring processing unit 12J may display the generated colored image data 36 on a display screen provided by spreadsheet software capable of outputting or setting information relating to pixels for each cell.
[0145] The coloring processing unit 12J may also store the generated colored image data 36 in the storage unit 16. The coloring processing unit 12J may also transmit the generated colored image data 36 to an external information processing device via the communication unit 14.
[0146] FIG. 13 is a flowchart showing an example of the flow of information processing executed by the information processing device 10 of this embodiment.
[0147] The image data reading unit 12A reads image data 28 to be processed, and stores it as image data 30 made up of a plurality of pixels P that are two-dimensionally arranged and have defined color information (step S100).
[0148] The divided face information generation unit 12B generates divided face information 34 for each face F of the member B represented by the image of the image data 30 stored in step S100, in which the same first identification information Ch1 is set for the pixels P constituting the same face F (step S102).
[0149] The specified shape inside / outside information generating unit 12E generates specified shape inside / outside information 44 in which the same second identification information Ch2 is set for pixels P that constitute the specified coloring range in the image of the image data 30 stored in step S100 (step S104).
[0150] The coloring processing unit 12J uses the image data 30 stored in step S100, the divided face information 34 generated in step S102, and the specified shape inside / outside information 44 generated in step S104 to perform coloring processing according to the face F of the part B represented by the image represented by the image data 30, and generates colored image data 36 (step S106).
[0151] Then, the coloring processor 12J outputs the colored image data 36 generated in step S106 to the display unit 18 (step S108), and then ends this routine.
[0152] As described above, the information processing device 10 of the present embodiment includes a divided face information generating unit 12B. The divided face information generating unit 12B generates divided face information 34 in which the same first identification information Ch1 is set for each constituent surface (face F) of the member B represented by the image of the image data 30. The divided face information generating unit 12B includes a first setting unit 12C and a first replacement processing unit 12D.
[0153] The first setting unit 12C sequentially checks, in a predetermined order, each of the multiple pixels P constituting the image data 30 consisting of multiple pixels P that are two-dimensionally arranged and have specified color information. When the color information of a specified color is specified for the confirmed pixel P, the first setting unit 12C sets a first setting value that is predetermined according to the specified color to the confirmed pixel P. When the color information of a specified color is not specified for the confirmed pixel P, and when only the first setting value according to the specified color or no first setting value is set for other pixels P around the confirmed pixel P, the first setting unit 12C sets a value obtained by adding 1 to the first count number of the first counter as the first setting value of the confirmed pixel P, and sets the first count number after the addition as the first count value of the confirmed pixel P, and sets the first setting value set as the first identification information Ch1 for the pixel P of the first count value. Furthermore, when only one first setting value equal to or greater than the sum of the initial value of the first count number of the first counter plus 1 is set for other pixels P above, below, to the left, and to the right of the confirmed pixel P, the first setting unit 12C sets the first setting value as the first setting value of the confirmed pixel P and sets the current first count value for the confirmed pixel P. Furthermore, when two or more first setting values equal to or greater than the sum of the initial value of the first count number of the first counter plus 1 are set for other pixels above, below, to the left, and to the right of the confirmed pixel P, the first setting unit 12C sets the minimum value of the two or more first setting values as the first setting value of the confirmed pixel P and sets the current first count value for the confirmed pixel P. The first setting unit 12C further changes the first identification information Ch1 for the first count values of the confirmed pixel P and the other pixels P above, below, to the left, and to the right of the confirmed pixel P to the minimum value of the first identification information Ch1 for the confirmed pixel P and the other pixels P above, below, to the left, and to the right of the confirmed pixel P. The first replacement processing unit 12D replaces, for each of the plurality of pixels P constituting the image data 30, the first set value that has been set with the first identification information Ch1 for the first count value that has been set.
[0154] In this way, the divided face information generation unit 12B of the information processing device 10 of this embodiment performs the above processing to generate divided face information 34 for each constituent surface (face F) of component B represented by the image of image data 30, in which the same first identification information Ch1 is set for the pixels P that constitute the same face F.
[0155] Therefore, the information processing method executed by the information processing device 10 of this embodiment can easily perform coloring processing according to the face F by using divided face information 34 in which the same first identification information Ch1 is set for pixels P that constitute the same face F.
[0156] Therefore, the information processing method of this embodiment can realize easy coloring according to the face F (constituent surface).
[0157] Furthermore, according to the information processing method of this embodiment, image data 28 can be processed without using special image editing software, and easy coloring according to face F can be achieved, making it possible to realize versatile coloring processing.
[0158] Furthermore, according to the information processing method of this embodiment, the user can simply give an execution instruction to color online only, color within the specified shape frame, color faces F that contact the specified shape frame, or color faces F that are completely contained within the specified shape frame, and check the colored image data 36 that has been subjected to coloring processing in accordance with the execution instruction.
[0159] Therefore, in addition to the above-mentioned effects, the information processing method of this embodiment can reduce the number of steps required for creating colored image data 36 in which a coloring instruction for each face F and a designated range are colored.
[0160] The programs for executing the above-mentioned processes executed by the information processing device 10 of the embodiment may be stored in the HDD. Also, the programs for executing the above-mentioned processes executed by the information processing device 10 of the embodiment may be provided by being pre-installed in the ROM 11B.
[0161] The program for executing the above-mentioned processes executed by the information processing device 10 of the above-mentioned embodiment may be stored in a computer-readable storage medium such as a CD-ROM, CD-R, memory card, DVD (Digital Versatile Disk), or flexible disk (FD) in an installable or executable format file and provided as a computer program product. The program for executing the above-mentioned processes executed by the information processing device 10 of the above-mentioned embodiment may be stored on a computer connected to a network such as the Internet and provided by downloading the program via the network. The program for executing the above-mentioned processes executed by the information processing device 10 of the above-mentioned embodiment may be provided or distributed via a network such as the Internet.
[0162] Although the embodiment of the present invention has been described above, the embodiment is presented as an example and is not intended to limit the scope of the invention. This new embodiment can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the gist of the invention. This embodiment and its modifications are included in the scope and gist of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0163] 10. Information processing device 12B Division face information generation unit 12C 1st setting section 12D First replacement processing section 12E Specified shape internal / external information generation unit 12F Reception 12G 2nd setting section 12H 3rd setting section 12I Second replacement processing section
Claims
[Claim 1] a divided face information generating step of generating divided face information for each constituent surface of a member represented by an image of the image data, the divided face information having the same first identification information set to pixels constituting the same constituent surface; The divided face information generating step includes: Sequentially checking each of a plurality of pixels constituting the image data, the plurality of pixels being two-dimensionally arranged and having color information defined therein, in a predetermined order; If the confirmed pixel has color information of a designated color, a first setting value that is predetermined according to the designated color is set for the confirmed pixel; If the identified pixel does not have color information of the specified color, the color information is calculated according to other pixels around the identified pixel. if only the first setting value corresponding to the designated color or no first setting value is set to other pixels above, below, to the left, and to the right of the confirmed pixel, set a value obtained by adding 1 to a first count number of a first counter as a first setting value of the confirmed pixel, and set the first count number after the addition as a first count value of the confirmed pixel, and set the set first setting value as the first identification information for the pixel of the first count value; If only one first setting value equal to or greater than the initial value of the first count number of the first counter plus 1 is set for other pixels above, below, to the left and right of the confirmed pixel, the first setting value is set as the first setting value for the confirmed pixel, and the current first count value is set for the confirmed pixel; a first setting step of setting a minimum value of the two or more first set values as a first set value of the confirmed pixel when two or more first set values equal to or greater than a value obtained by adding 1 to an initial value of a first count number of the first counter are set for other pixels above, below, to the left, and to the right of the confirmed pixel, and setting a current first count value for the confirmed pixel, and further changing the first identification information for the first count values of the confirmed pixel and the other pixels above, below, to the left, and to the right of the confirmed pixel to the minimum value of the first identification information of the confirmed pixel and the other pixels above, below, to the left, and to the right of the confirmed pixel; a first replacement process step of replacing a set first setting value with the first identification information corresponding to the set first count value for each of the plurality of pixels constituting the image data; An information processing method comprising:
Citation Information
Patent Citations
Apparatus and method for shape model conversion
JP2002259472A
