Display device and computer program
The display device and program enhance brightness calculation by extracting normal vectors and adjusting angles, allowing clearer defect inspection without manual light source adjustments, thus reducing operator burden.
Patent Information
- Application Number
- DE112022006176
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2022-03-01
- Publication Date
- 2024-11-14
- Estimated Expiration
- 2042-03-01
AI Technical Summary
Adjusting the position of a light source to increase brightness differences between polygons representing defects or patterns on a machined surface is time-consuming and labor-intensive, posing a significant burden on operators.
A display device and computer program that extract normal vectors from shape information, calculate brightness based on adjusted angles multiplied by a factor, and display the surface accordingly, eliminating the need to adjust the light source position.
Reduces operator burden by enhancing brightness differences between surface components, enabling clearer inspection of defects and patterns without manual light source adjustments.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical area
[0001] The present disclosure relates to a display device and a computer program. State of the art
[0002] A display device that displays a machined surface of a workpiece in three-dimensional computer graphics is known (see, for example, Patent Document 1). An operator examines the results displayed on such a display device and determines the quality of the machined surface based on the unevenness of the machined surface. The quality of the machined surface is determined based on the brightness difference between the polygons that form the machined surface. Therefore, the greater the brightness difference, the easier it is to detect the unevenness of the machined surface and determine the quality of the machined surface.
[0003] As in Fig. As shown in Figure 5, according to a typical method based on three-dimensional computer graphics, the brightness of a polygon is determined from the relationship between a direction vector from the polygon toward a light source and a normal vector of the polygon. In this case, to increase the brightness difference between the polygons, it is necessary to adjust the position of the light source with respect to the orientation of the processed surface. List of cited documentsPatent document
[0004] Patent Document 1: Japanese Unexamined Patent Application, Publication No. 2017-138726 Disclosure of the invention Problems to be solved by the invention
[0005] When inspecting a defect, a striped pattern, or similar on a machined surface, it is occasionally necessary to adjust the position of a light source to increase the brightness difference between the polygons representing the defect, striped pattern, or similar. However, adjusting the position of the light source, for example, requires the adjustment of numerous parameters and is therefore time-consuming and labor-intensive, placing a significant burden on the operator. Means of solving the tasks
[0006] A display device according to the present disclosure includes: a normal vector extraction unit configured to extract, based on shape information regarding a machined surface consisting of machined surface components, a normal vector of each machined surface component; a brightness calculation unit configured to calculate the brightness of each machined surface component based on the normal vector; and a display unit configured to graphically display the machined surface based on the brightness of each machined surface component.The brightness calculation unit calculates the adjusted angles by multiplying the angles formed by the normal vector with the axes of a three-dimensional space by a predetermined adjustment multiplication factor, and calculates the brightness of each processed surface component based on the adjusted angles.
[0007] A computer program according to the present disclosure is for causing a computer to perform operations including: extracting a normal vector of each machined surface component based on shape information regarding a machined surface consisting of machined surface components; calculating the brightness of each machined surface component based on the normal vector; and graphically displaying the machined surface based on the brightness of each machined surface component. Calculating the brightness includes calculating adjusted angles by multiplying the angles formed by the normal vector with the axes of a three-dimensional space by a predetermined adjustment multiplication factor, and calculating the brightness of each machined surface component based on the adjusted angles.
[0008] The display device and the computer program of the present disclosure are capable of reducing the burden on the operator. Brief description of the drawings Fig. 1 is a diagram showing an outline of a display device according to an embodiment of the present disclosure; Fig. 2A is a diagram illustrating a calculation example by a brightness calculation unit, and showing angles formed by a normal vector of a polygon 1 with axes; Fig. 2B is a diagram illustrating a calculation example by the brightness calculation unit, and showing adjusted angles given by multiplying the angles formed by the normal vector of polygon 1 with the axes by an adjustment multiplication factor “level”; Fig. Figure 2C is a diagram illustrating a calculation example by the brightness calculation unit and showing the components of a new vector based on the adjusted angles in Fig. 2B based; Fig. 2D is a diagram illustrating a calculation example by the brightness calculation unit and showing the new vector based on the set angles in Fig. 2B based; Fig. 2E is a diagram illustrating a calculation example by the brightness calculation unit, and the new vector in Fig. 2D shows which is normalized; Fig. 3A is a diagram illustrating a calculation example by the brightness calculation unit, and showing the angles that a normal vector of a polygon 2 makes with the axes; Fig. 3B is a diagram illustrating a calculation example by the brightness calculation unit, and showing adjusted angles given by multiplying the angles formed by the normal vector of polygon 2 with the axes by an adjustment multiplication factor “level”; Fig. Figure 3C is a diagram illustrating a calculation example by the brightness calculation unit, and showing the components of a new vector based on the adjusted angles in Fig. 3B based; Fig. 3D is a diagram illustrating a calculation example by the brightness calculation unit and showing the new vector based on the adjusted angles in Fig. 3B based; Fig. 3E is a diagram illustrating a calculation example by the brightness calculation unit, and the new vector in Fig. 3D shows that is normalized; Fig. 4 is a diagram illustrating an embodiment of a method for calculating brightness according to an embodiment of the present disclosure; Fig. 5 is a diagram illustrating an example of a brightness calculation method of the prior art; Fig. 6 is an image displayed by a display device according to an embodiment of the present disclosure; and Fig. 7 is an image displayed by a prior art display device. Preferred mode of carrying out the invention
[0009] An embodiment of the present invention will be described in more detail with reference to the drawings.
[0010] Fig. 1 is a diagram showing the outline of a display device 1 according to an embodiment of the present invention. The present embodiment provides a display device 1 and a computer program that can eliminate the need to adjust the position of a light source and reduce the burden on an operator.
[0011] The display device 1 consists, for example, of a computer including a memory such as a read-only memory (ROM) and a random access memory (RAM), a central processing unit (CPU), and a communication control unit, which are connected to each other via a bus. As shown in Fig. 1, the display device 1 includes a storage unit 11, a normal vector extraction unit 12, a brightness calculation unit 13, a multiplication factor adjustment unit 14, and a display unit 15. The functions and operations of these units are implemented through the cooperation of the CPU and the memory built into the computer, as well as a control program stored in the memory.
[0012] The storage unit 11 stores shape information about a machined surface consisting of machined surface components. The shape information consists of a plurality of pieces of element information related to polygons or pixels. Each of the plurality of components has a vertex of a polygon, a normal vector of a plane in which a polygon is located, or a normal vector of a plane in which a pixel is located.
[0013] Based on the shape information about the machined surface consisting of the surface components, the normal vector extraction unit 12 extracts a normal vector for each machined surface component. In a case where the shape information does not include a normal vector, the normal vector extraction unit 12 calculates a normal vector from the vertex of the polygon or the pixel included in the shape information and extracts the normal vector.
[0014] The brightness calculation unit 13 calculates the brightness of each machined surface component based on adjusted angles obtained by multiplying the angles formed by the normal vector with the axes of a three-dimensional space by a predetermined adjustment multiplication factor. Specifically, the brightness calculation unit 13 calculates a vector in the three-dimensional space based on the adjusted angles and calculates the brightness of each machined surface component based on the sum of the addition of the three-dimensional spatial components of the vector. For example, the brightness calculation unit 13 calculates the brightness of each machined surface component according to the following method.
[0015] First, the brightness calculation unit 13 calculates the angles that a normal vector of a polygon or a normal vector of a pixel makes with the X-axis, the Y-axis, and the Z-axis using an inverse trigonometric function. Next, the brightness calculation unit 13 multiplies each of the calculated angles by a predetermined adjustment multiplication factor to thereby calculate adjusted angles. Subsequently, the brightness calculation unit 13 calculates a new vector based on the adjusted angles using a trigonometric function. Next, the brightness calculation unit 13 normalizes the new vector and adds the components of the normalized new vector together. Since the sum of the addition is in the range of -(3 1 / 2 ) to 3 1 / 2, the brightness calculation unit 13 converts the sum of the addition into a brightness range. In a case where the brightness range is set to 0.0 to 1.0, the conversion formula is expressed as follows: Brightness = ((Sum of Addition) + 3 1 / 2 ) / (2 × 3 1 / 2 ).
[0016] The multiplication factor adjustment unit 14 arbitrarily sets the adjustment multiplication factor for calculation by the brightness calculation unit 13 based on arbitrary information received from the computer. Therefore, the adjustment multiplication factor is changed as needed. As the adjustment multiplication factor is set larger, the brightness difference becomes larger, allowing an image to be displayed in which the brightness is more emphasized.
[0017] The display unit 15 graphically displays the machined surface based on the brightness of the machined surface components.
[0018] Fig. 2A to 2E and Fig. 3A to 3E are diagrams showing examples of the calculation by the brightness calculation unit 13. Here, the calculation is described using the normal vectors of two adjacent polygons 1 and 2 as examples. In these diagrams, the Z axis is omitted for simplicity.
[0019] Fig. Figure 2A is a diagram illustrating angles formed by a normal vector of polygon 1 with the axes. Fig. Figure 3A is a diagram illustrating angles that a normal vector of polygon 2 makes with the axes. As in Fig. 2A, the brightness calculation unit 13 calculates the angles (α1, β1, γ1) formed by the normal vector (x1, y1, z1) of the polygon 1 with the X-axis, the Y-axis and the Z-axis using an inverse trigonometric function as follows: α1 = arccos (x 1 / 1 ) , β1 = arccos (y 1 / 1 ), and γ1 = arccos (z 1 / 1 ). Likewise, the brightness calculation unit 13 calculates, as in Fig. 3A, using the inverse trigonometric function, the angles (α2, β2, γ2) formed by the normal vector (x2, y2, z2) of polygon 2 with the X-axis, the Y-axis and the Z-axis are calculated as follows: α2 = arccos (x 2 / 1 ), β2 = arccos (y 2 / 1 ), and γ2 = arccos (z 2 / 1 ).
[0020] Fig. Figure 2B is a diagram illustrating the adjusted angles resulting from multiplying the angles formed by the normal vector of polygon 1 with the axes by a multiplication factor “level”. Fig. Figure 3B is a diagram illustrating the adjusted angles resulting from multiplying the angles formed by the normal vector of polygon 2 with the axes by the multiplication factor “level.” As in Fig. 2B, the brightness calculation unit 13 multiplies each of the values applied to the Fig. 2A, the angles (α1, β1, γ1) calculated in the manner shown in FIG. 2A are multiplied by the predetermined adjustment multiplication factor "level" to calculate the adjusted angles (α1', β1', γ1') as follows: α1' = level × α1, β1' = level × β1, and γ1' = level × γ1. Likewise, the brightness calculation unit 13 multiplies, as shown in Fig. 3B, each of the Fig. 3A are multiplied by the specified adjustment multiplication factor "level" to calculate the adjusted angles (α2', β2', γ2') as follows: α2' = level × α2, β2' = level × β2, and γ2' = level × γ2. The adjustment multiplication factor "level" is set to 2 or 5, for example.
[0021] Fig. Figure 2C is a diagram illustrating the components of a new vector based on the adjusted angles in Fig. 2B based. Fig. Figure 3C is a diagram showing the components of a new vector based on the adjusted angles in Fig. 3B. As in Fig. 2C, the brightness calculation unit 13 calculates the components of the new vector (x1', y1', z1') based on the adjusted angles (α1', β1', γ1') using a trigonometric function as follows: x1' = cos(α1') × 1, y1' = cos(β1') × 1, and z1' = cos(γ1') × 1. Likewise, the brightness calculation unit 13 calculates, as shown in Fig. 3C, using the trigonometric function, the components of the new vector (x2', y2', z2') are calculated based on the adjusted angles (α2', β2', γ2'), as follows: x2' = cos(α2') × 1, γ2' = cos(β2') × 1, and z2' = cos(γ2') × 1.
[0022] Fig. 2D is a diagram illustrating the new vector based on the adjusted angles in Fig. 2B based. Fig. 3D is a diagram illustrating the new vector based on the adjusted angles in Fig. 3B. As in Fig. 2D, the brightness calculation unit 13 determines the new vector based on the components that are applied to the Fig. 2C. Likewise, the brightness calculation unit 13 receives, as shown in Fig. 3D, the new vector based on the components that are on the Fig. 3C.
[0023] Fig. 2E is a diagram showing the new vector in Fig. 2D which is normalized. Fig. 3E is a diagram showing the new vector in Fig. 3D, which is normalized. As in Fig. 2E, the brightness calculation unit 13 normalizes the new vector (x1', y1', z1') and adds the components of the normalized new vector (x1", y1', z1") together. Likewise, the brightness calculation unit 13 normalizes, as shown in Fig. 3E, the new vector (x2', y2', z2') and adds the components of the normalized new vector (x2", y2", z2") together.
[0024] The brightness calculation unit 13 converts the sum of the addition x1" + y1" + z1" into a brightness range. In a case where the brightness range is set to 0.0 to 1.0, the conversion formula is expressed as follows: Brightness = ((x1" + y1" + z1") + 3 1 / 2 ) / (2 ×3 1 / 2 ). Similarly, the brightness calculation unit 13 converts the sum of the addition x2" + y2" + z2" into a brightness range. In a case where the brightness range is set to 0.0 to 1.0, the conversion formula is expressed as follows: Brightness = ((x2" + y2" + z2") +3 1 / 2 ) / (2 ×3 1 / 2 ).
[0025] Fig. 6 is an image displayed by the display device 1 according to the present embodiment. Fig. Figure 7 is an image displayed by a display device of the known prior art. The image of Fig. 6 is displayed with the adjustment multiplication factor “level” described above, which is set to 5. From these figures it can be seen that the image in Fig. 6 displayed by the display device 1 according to the present embodiments allows an operator to check a defect and a stripe pattern on the machined surface more clearly than the image in Fig. 7, which is displayed by the display device of the known prior art.
[0026] The present embodiment has the following effects.
[0027] The display device 1 according to the present embodiment includes the normal vector extraction unit 12 that extracts a normal vector of each processed surface component based on shape information regarding a processed surface formed by the processed surface components, the brightness calculation unit 13 that calculates the brightness of each processed surface component based on the normal vector, and the display unit 15 that graphically displays the processed surface based on the brightness of each processed surface component.The brightness calculation unit 13 is configured to calculate the adjusted angles by multiplying the angles that the normal vector forms with the axes of a three-dimensional space by a predetermined adjustment multiplication factor, and to calculate the brightness of each machined surface component based on the adjusted angles.
[0028] Thus, the display device 1 according to the present embodiment can, in contrast to the Fig. 5, the conventional methods for calculating brightness calculate the brightness only based on the normal vector, regardless of the light source, as shown in Fig. 4. Therefore, in the present embodiment, unlike the conventional method for calculating the brightness, the need for appropriate adjustment of the position of the light source is eliminated, and the burden on the operator can be reduced.
[0029] In particular, the present embodiment enables the operator to inspect a defect, a stripe pattern, or the like of a machined surface more clearly than in the prior art in the following cases: when a normal vector has only a slight inclination; when a polygon is tiny and a brightness difference is not enough; when the light from a light source is incident on a step perpendicular to the step; when a light source is present on the bisector of an angle formed by adjacent polygons and a brightness difference is not enough.
[0030] According to the embodiment of the display device 1, the shape information consists of a plurality of items of element information relating to polygons or pixels, and each of the plurality of items of element information has a normal vector of a plane in which the polygon is located or a normal vector of a plane in which the pixel is located.
[0031] Due to this property, the above-described effect can be reliably achieved even when the shape information consists of a plurality of element information related to polygons or pixels. That is, the present disclosure is applicable to any shape information from which a plane can be determined.
[0032] The display device 1 according to the present embodiment further includes the multiplication factor adjustment unit 14 which sets the adjustment multiplication factor.
[0033] Due to this characteristic, the adjustment multiplication factor can be arbitrarily changed by the multiplication factor adjustment unit 14, whereby it is possible to obtain a display image in which a brightness difference is emphasized.
[0034] According to the display device 1 of the present embodiment, the brightness calculation unit 13 calculates a vector in a three-dimensional space based on the adjusted angles and calculates the brightness of each processed surface component based on the sum of the addition of the three-dimensional spatial components of the vector.
[0035] This property makes it possible to reliably develop the effects described above.
[0036] The present embodiment further relates to a computer program according to which the above-described display device 1 operates. The computer program causes the computer constituting the display device 1 to execute steps including: a normal vector extraction step for extracting a normal vector of each machined surface component based on shape information regarding a machined surface consisting of machined surface components; a brightness calculation step for calculating the brightness of each machined surface component based on the normal vector; and a display step for graphically displaying the machined surface based on the brightness of each machined surface component.In addition, in the brightness calculation step, adjusted angles are calculated by multiplying angles formed by the normal vector with axes of a three-dimensional space by a predetermined adjustment multiplication factor, and the brightness of each machined surface component is calculated based on the adjusted angles.
[0037] Due to this feature, the computer program of the present embodiment can produce the same effects as those described above.
[0038] It should be noted that the present disclosure is not limited to the embodiments described above, and that changes and improvements within a range in which the subject matter of the present disclosure can be achieved fall within the scope of the present disclosure.
[0039] The display device of the present disclosure can be used as a display device for a general external computer. The display device of the present disclosure can be used, for example, as a display unit of a machining simulator. When the display device of the present disclosure is applied to the display unit of the machining simulator, it is possible to accurately evaluate an unevenness, a defect, or the like on a machined surface after machining simulation. Explanation of reference symbols 1 display device 11 Storage unit 12 Normal vector extraction unit 13 Brightness calculation unit 14 Multiplication factor adjustment unit 15 Display unit QUOTES CONTAINED IN THE DESCRIPTION
[0000] This list of documents submitted by the applicant was generated automatically and is included solely for the convenience of the reader. This list is not part of the German patent or utility model application. The DPMA assumes no liability for any errors or omissions. Cited patent literature
[0000] 2017-138726
[0004]
Claims
[1] Display device comprising: a normal vector extraction unit configured to extract a normal vector of each machined surface component based on shape information regarding a machined surface formed by machined surface components; a brightness calculation unit configured to calculate the brightness of each machined surface component based on the normal vector; and a display unit configured to graphically display the machined surface based on the brightness of each machined surface component, wherein the brightness calculation unit calculates adjusted angles by multiplying angles formed by the normal vector with axes of a three-dimensional space by a predetermined adjustment multiplication factor, and calculates the brightness of each machined surface component based on the adjusted angles. [2] Display device according to claim 1, wherein the shape information is composed of a plurality of pieces of element information relating to polygons or pixels, and each of the plurality of pieces of element information comprises a normal vector of a plane in which the polygon is located or a normal vector of a plane in which the pixel is located. [3] The display device according to claim 1 or 2, further comprising a multiplication factor adjustment unit configured to set the adjustment multiplication factor. [4] The display device according to any one of claims 1 to 3, wherein the brightness calculation unit calculates a vector in the three-dimensional space based on the set angles and calculates the brightness of each processed surface component based on the sum of the addition of the three-dimensional spatial components of the vector. [5] Computer program that causes a computer to perform operations that include: Extracting a normal vector of each machined surface component based on shape information regarding a machined surface formed by machined surface components; Calculating the brightness of each processed surface component based on the normal vector; and graphically displaying the machined surface based on the brightness of each machined surface component, where calculating the brightness comprises calculating adjusted angles by multiplying angles formed by the normal vector with axes of a three-dimensional space by a predetermined adjustment multiplication factor, and calculating the brightness of each machined surface component based on the adjusted angles.
Citation Information
Patent Citations
Face plate pattern finish simulation system and face plate pattern finish simulation method
JP2017138726A
