Perspective ruler display method
The perspective ruler display method converts straight lines into curved lines using functions f(θ,k) or g(r,k) to simulate fisheye lens distortions, addressing the limitations of conventional rulers and improving the accuracy and ease of drawing fisheye lens-like illustrations.
Patent Information
- Application Number
- JP2023038187
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-12
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2043-03-12
AI Technical Summary
Conventional fisheye perspective rulers lack the ability to draw lines in various directions and do not accommodate the diverse distortions of different fisheye lenses, often interfering with the drawing process and making it difficult to create accurate illustrations.
A perspective ruler display method that converts straight lines into curved lines based on a function f(θ,k) or g(r,k) to simulate fisheye lens distortions, allowing users to specify vanishing points and adjust distortion strength, scale factor, and canvas movement to create accurate fisheye lens representations.
Enables users to easily draw illustrations resembling fisheye lens photographs by providing a flexible and accurate perspective ruler display method, enhancing the drawing experience and reducing interference from unnecessary grid patterns.
Smart Images

Figure 2024128991000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a perspective ruler display method. [Background technology]
[0002] Conventionally, when drawing three-dimensional objects such as illustrations using drawing software, a perspective ruler based on the law of perspective (abbreviated as "perspective") is sometimes used. A perspective ruler is used to draw accurate perspective drawings based on the law of perspective when drawing illustrations. An example of how to use a perspective ruler is as follows.
[0003] When a user draws an object, the user places the perspective ruler on the object to be drawn. For example, if the object is in the shape of a box, the perspective ruler is placed along the shape of the box. The perspective line can be drawn along the perspective ruler. When drawing a line, the user can use the perspective ruler to draw along the guide lines of the perspective ruler, so that the user can draw a straight line that follows the laws of perspective even by hand. By repeating the same procedure, an illustration that follows the laws of perspective can be drawn on a two-dimensional canvas.
[0004] In the composition of a typical illustration, a linear projection method known as perspective projection is used, but to create a more powerful effect, a special type of perspective known as fisheye perspective may be used.
[0005] Unlike typical perspective projection, fisheye perspective requires drawing curves, which makes it difficult to draw accurate lines by hand. Therefore, a ruler tool is needed to assist in drawing such complex fisheye lens images. A commonly used conventional fisheye perspective ruler uses curved grid lines.
[0006] There is drawing software that provides a curved perspective ruler that can be used to draw illustrations with distortions such as those seen in photographs taken with a fisheye lens. By using the curved perspective ruler, users can draw objects that express perspective similar to that seen in photographs taken with a fisheye lens. Using this software, it becomes relatively easy to draw perspective drawings that look like they were taken with a fisheye lens.
[0007] There is also a non-patent document that discloses how to draw fisheye perspective (for example, see Non-Patent Document 1). This document discloses a general methodology for drawing illustrations with distortion like a photograph taken with a camera using a fisheye lens. However, conventional fisheye perspective rulers have the following characteristics:
[0008] Although it is possible to draw curved lines parallel to the coordinate axes of a virtual camera, as if they were captured with a fisheye lens, there is no perspective ruler that can draw lines in various directions.
[0009] In addition, there are various types of fisheye lenses, each of which has a different degree of perspective distortion. However, conventional fisheye perspective rulers do not provide users with a function that can be used to work on drawings with such various distortions. The fisheye perspective ruler is displayed in a grid pattern even in places that are not related to the drawing, which can sometimes get in the way of the user's drawing. [Prior art documents] [Non-patent literature]
[0010] [Non-Patent Document 1] https: / / oekaki-zukan.com / articles / 11818 Summary of the Invention [Problem to be solved by the invention]
[0011] The disclosed technology aims to enable users to more easily create illustrations that resemble photographs taken with a fisheye lens when using drawing software to draw pictures on a virtual canvas. [Means for solving the problem]
[0012] The disclosed technology is a perspective ruler display method in which a computer displays a perspective ruler placed on a planar canvas existing in a virtual three-dimensional space, and the computer displays the perspective ruler in response to a user's instruction to draw a fisheye lens representation by drawing a line on the canvas along the perspective ruler, A function f(θ,k) that converts the coordinates of point W to the coordinates of point B on the canvas that is a distance f(θ,k) away from point O, where θ is the angle of ∠OPW formed by point O on the canvas, point P placed on a line V that passes through point O and is perpendicular to the plane of the canvas, and point W existing in the three-dimensional space, and the distance between point O and point P is 1, In the range of θ used in the conversion, 0≦θ<π / 2, 0≦f(θ,k)≦R*tan(θ) 0≦∂f(θ,k) / ∂θ≦R*sec 2 (θ) Fulfilling ∂f(θ,k) / ∂θ| θ=0 =R If the range of θ includes a region of π / 2 or more, then within the range of θ, π / 2≦θ≦π, f(θ,k)>0 ∂f(θ,k) / ∂θ≧0 Define a function f(θ, k) that satisfies Transforming a straight line on the canvas or a figure existing in the three-dimensional space by the function f(θ, k) to obtain a curve having the same shape as the curve obtained by transforming the straight line by the function f(θ, k), and displaying a perspective ruler having the obtained curve; having Here, k is a parameter that represents the strength of fisheye lens distortion in the perspective ruler, R is a parameter that represents the overall expansion or contraction of the perspective ruler centered on the point O. Provides a perspective ruler display method.
[0013] In addition, in the disclosed technology, the point B may exist on a straight line that is a perpendicular projection of a straight line connecting the point O and the point W onto the plane of the canvas.
[0014] Furthermore, in the disclosed technology, the point W may be a point on the canvas, and displaying the perspective ruler may involve displaying a curved perspective ruler obtained by transforming a straight line on the canvas using the function f(θ, k).
[0015] In the disclosed technique, the point B may be on the line connecting the point O and the point W.
[0016] In the disclosed technique, a curved surface G is formed that is symmetrical about the straight line V; The point where the straight line connecting point P and point W intersects with the curved surface G is defined as point Q, and the point where the straight line connecting point S, which is on the straight line V and is located on the opposite side of point O with respect to point P, and point Q intersects with the canvas is defined as point D. The value of k is proportional to the distance between the point P and the point S, The value of the function f(θ, k) may be proportional to the distance between the point O and the point D.
[0017] In the disclosed technique, a curved surface G is formed that is symmetrical about the straight line V; Let Q be the point where the straight line connecting point P and point W intersects with the curved surface G, let C be the point on the straight line connecting point P and point W, let α be the angle between the plane of the canvas and vector OQ, and let β be the angle between the plane of the canvas and vector OC, The value of k is proportional to the value of β / α, The value of the function f(θ, k) may be proportional to the distance between the point O and the point C. In the disclosed technique, the function f(θ, k) may be set to coincide with or approximate R*tan(θ) when the distortion strength k is a predetermined value. In the disclosed technique, when the distortion strength k is a predetermined value, the function f(θ, k) is expressed as follows: Stereographic projection, 2*R*tan(θ / 2), The equidistant projection,R*θ, The equal solid angle projections are 2*R*sin(θ / 2) and The orthogonal projection is R*sin(θ), The first and second parameters may be set to coincide with or approximate at least one of the first and second parameters. In addition, in the disclosed technology, determining the function f(θ, k) includes the following steps: When calculating the coordinates of point B, a function f(θ, k) is applied to the X-coordinate of point B and the Y-coordinate of point B on the X-axis and Y-axis, which are mutually orthogonal coordinate axes with point O as the origin on the plane of the canvas, to calculate the coordinates of point B on the canvas; may include: In addition, in the disclosed technology, displaying the perspective ruler Setting the distortion strength k and the scale factor R so as to keep the magnitude of the function f(π / 2, k) constant; may include:
[0018] In the disclosed technique, the function f(θ, k) is defined by the following formula: f(θ,k)=R*(k+1)*sin(θ) / (k+cos(θ)) Here, 0≦k≦∞ may be satisfied.
[0019] In the disclosed technique, the function f(θ, k) is defined by the following formula: f(θ,k)=R*sin(θ) / cos(θ-θ*k / 2) Here, 0≦k≦2 may be satisfied. The disclosed technology is a perspective ruler placed on a flat canvas, and a computer displays the perspective ruler in such a way that a line is drawn on the canvas along the perspective ruler in response to a user's instruction to draw a fisheye lens representation, the method comprising: A function g(r, k) converts the coordinates of point W into the coordinates of point B on the canvas that is a distance g(r, k) away from point O, where r is the distance between point O on the canvas and point W on the canvas, 0≦g(r,k)≦R*r 0≦∂g(r,k) / ∂r≦R ∂g(r,k) / ∂r| r=0 =R Define a function g(r,k) that satisfies Transforming the straight line on the canvas by the function g(r, k) to obtain a curved line, and displaying a perspective ruler having the obtained curved line; having Here, k is a parameter that represents the strength of fisheye lens distortion in the perspective ruler, R is a parameter that represents the overall expansion or contraction of the perspective ruler centered on the point O. A perspective ruler display method may be provided. In the disclosed technique, the function g(r, k) is defined by the following formula: g(r,k) = R*(k+1)*sin(tan -1 (r)) / (k+cos(tan -1 (r)) Here, 0≦k≦∞ may be satisfied. In the disclosed technique, the function g(r, k) is defined by the following formula: g(r,k) = R*sin(tan -1 (r)) / cos(tan -1 (r)-tan -1 (r)*k / 2) Here, 0≦k≦2 may be satisfied.
[0020] The disclosed technology is a perspective ruler placed on a planar canvas existing in a virtual three-dimensional space, and a computer displays the perspective ruler so that lines are drawn on the canvas along the perspective ruler in response to a user's instruction to draw a fisheye lens representation, the method comprising: Identifying a rule for converting a straight line on the canvas or a virtual straight line in the three-dimensional space into a curve on the canvas that matches the fisheye lens representation based on a user instruction; generating the perspective ruler defined by a curve based on the rules, the curve passing through a predetermined position on the canvas designated by a user; Identifying a vanishing point, which is a point where the curves of the multiple perspective rulers converge, on a plane including the canvas in a manner that is recognized by the user; Displaying the perspective ruler on the canvas; The present invention provides a perspective ruler display method having the above-mentioned configuration.
[0021] In addition, in the disclosed technology, specifying the rule includes: When the user's instruction is to change the strength of the fisheye lens distortion, modifying the rules in response to a change in the distortion strength; The generating of the perspective ruler includes: This may include changing the perspective ruler generated before the rule was changed to a perspective ruler defined by a curve based on the changed rule, the curve passing through the predetermined position specified by the user before the rule was changed.
[0022] In addition, in the disclosed technology, specifying the rule includes: The rule may be specified based on at least one of the strength of distortion of the fisheye lens representation specified by the user, a scale factor, and a position of an intersection between a central axis of a virtual lens of the fisheye lens representation and a canvas.
[0023] In addition, in the disclosed technology, specifying the rule includes: Identifying two perspective ruler curves by drawing two curves on the canvas based on a user's instructions; The intersection of the two curves is set as a vanishing point; determining a degree of distortion of the fisheye lens representation based on at least a degree of curvature of at least one of the two curves; may include:
[0024] In addition, in the disclosed technology, generating the perspective ruler includes: if the user's instruction is to change the inclination of a predetermined perspective ruler, applying the rule in response to the change in inclination, changing the position of the vanishing point of the predetermined perspective ruler; may include:
[0025] In addition, in the disclosed technology, generating the perspective ruler includes: when the user's instruction is to change the predetermined position, applying the rule in response to the change of the predetermined position to change a curve of the predetermined perspective ruler that passes through the changed predetermined position without changing a position of a vanishing point of the predetermined perspective ruler; may include:
[0026] In addition, in the disclosed technology, generating the perspective ruler includes: When a user instructs that a position of a predetermined vanishing point is to be fixed, and the predetermined position of a perspective ruler that converges to the predetermined vanishing point is not changed, the perspective ruler cannot be changed; may include:
[0027] In addition, in the disclosed technology, generating the perspective ruler includes: If the strength of the distortion is changed by the user, the predetermined position may not be moved.
[0028] In addition, in the disclosed technology, generating the perspective ruler includes: changing a curve of the perspective ruler when the position of the vanishing point is changed by an instruction from the user; may include:
[0029] In addition, in the disclosed technology, displaying the perspective ruler If the display of the perspective ruler that was already displayed is changed, modifying the image drawn along each of the plurality of perspective rulers at the direction of a user in accordance with the modification of each of the plurality of perspective rulers; may include:
[0030] In addition, in the disclosed technology, displaying the perspective ruler If the display of the perspective ruler that was already displayed is changed, modifying an image present on said canvas to conform to changes in each of said plurality of perspective rulers; may include:
[0031] Furthermore, the disclosed technology may be a program that causes a computer to execute the perspective ruler display method. Effect of the Invention
[0032] The disclosed technology can provide an environment in which a user can more easily draw illustrations that resemble photographs taken with a fisheye lens when using drawing software to draw pictures on a virtual canvas. [Brief description of the drawings]
[0033] [Figure 1] Fig. 1 is a diagram for explaining an overview of the disclosed technology. Fig. 1A is a diagram showing an illustration drawn by a user using the disclosed technology. Fig. 1B shows a reference image that the user used as a reference when drawing the illustration. [Diagram 2] FIG. 2 is a diagram for explaining an overview when a user uses the disclosed technology to draw an illustration. [Diagram 3] FIG. 3 is a diagram showing a situation in which a fisheye perspective ruler is set in accordance with a reference image. [Figure 4] FIG. 4 is a diagram showing a curve 410 drawn along a fisheye perspective ruler. [Diagram 5] FIG. 5 is a diagram showing a display when the display of the reference image is turned off. [Figure 6] FIG. 6 is a diagram showing an example of a function f(θ, k) used when generating a fish-eye perspective ruler. [Figure 7] FIG. 7 is a diagram showing an example in which θ exceeds 90° in the same method and function f(θ, k) as in FIG. [Figure 8] FIG. 8 is a diagram showing another example of the function f(θ, k) used when generating a fish-eye perspective ruler. [Figure 9] FIG. 9 is a diagram showing an example in which θ exceeds 90° in the same method and function f(θ, k) as in FIG. [Figure 10] FIG. 10 is a diagram showing an example in which the curved surface G is a curved surface other than a spherical surface. [Figure 11] Fig. 11 is a diagram showing an example of setting the strength of distortion and determining the vanishing point based on a user's instruction. Fig. 11A to Fig. 11D show an example of a user interface that allows a user to intuitively operate the strength of distortion, the determination of the vanishing point, and the determination of two fisheye perspective rulers. [Figure 12] Fig. 12 shows an example of the display of the fisheye perspective ruler when the user changes the strength of distortion. Fig. 12A shows the display of the fisheye perspective ruler before changing the strength of distortion. Fig. 12B shows the display of the fisheye perspective ruler after changing the strength of distortion. [Figure 13] Fig. 13 is a diagram explaining the movement of the vanishing point accompanying a change in the inclination of the fisheye perspective ruler. Fig. 13A shows the state before the inclination of the fisheye perspective ruler is changed. Fig. 13B shows the state after the inclination of the fisheye perspective ruler is changed. [Figure 14]Fig. 14 is a diagram showing an example of adding a fish-eye perspective ruler. Fig. 14A to Fig. 14C show an example of adding one fish-eye perspective ruler. [Figure 15] Fig. 15 shows the state when a specific position on the fisheye perspective ruler is moved according to a user's instruction. Fig. 15A shows the state before the specific position is moved. Fig. 15B shows the state after the specific position is moved. [Figure 16] Fig. 16 shows an example of the handle display when the user instructs to fix the position of the vanishing point. Fig. 16A shows the state before the user instructs to fix the position of the vanishing point. Fig. 16B shows the state after the user has left the command to fix the position of the vanishing point. [Figure 17] Fig. 17 is a diagram showing a state transition when a point O (lens center point O) where a straight line V of a virtual lens central axis intersects with the canvas is moved. Fig. 17A is a diagram before the lens center point O is moved. Fig. 17B is a diagram after the lens center point O is moved. [Figure 18] Fig. 18 is a diagram showing state transitions when the vanishing point is moved. Fig. 18A is a diagram before the vanishing point is moved. Fig. 18B is a diagram after the vanishing point is moved. [Figure 19] Fig. 19 is a diagram showing state transitions when the strength of distortion is changed. Fig. 19A is a diagram showing the state before the strength of distortion is changed. Fig. 19B is a diagram showing the state after the strength of distortion is changed. [Figure 20] Fig. 20 is a diagram showing state transitions when the scale factor R is changed. Fig. 20A is a diagram showing the state before the scale factor R is changed. Fig. 20B is a diagram showing the state after the scale factor R is changed. [Figure 21] Fig. 21 shows changes to the display of the fisheye perspective ruler. Fig. 21A shows the state before the strength of distortion is changed. Fig. 21B shows the state after the strength of distortion is changed. [Figure 22]Fig. 22 shows how the curves already drawn along the fisheye perspective ruler are changed when the display of the fisheye perspective ruler is changed. Fig. 22A shows the state before the strength of distortion is changed. Fig. 22B shows the state after the strength of distortion is changed. [Figure 23] Fig. 23 shows how the canvas image changes with the change in the fisheye perspective ruler display. Fig. 23A shows the state before the strength of distortion is changed. Fig. 23B shows the state after the strength of distortion is changed. [Figure 24] Fig. 24 shows how the canvas image changes with the change in the fisheye perspective ruler display. Fig. 24A shows the state before the change. Fig. 24B shows the state after the change. [Diagram 25] FIG. 25 is a flowchart for generating curves of a fisheye perspective ruler used for drawing fisheye lens representations. [Figure 26] FIG. 26 is a flow chart showing a process using the functions described in FIGS. [Figure 27] FIG. 27 is a flow chart showing a process using the functions described in FIGS. [Figure 28] Figure 28 is a flowchart showing how to display a fisheye perspective ruler on a canvas. [Figure 29] 29A and 29B are flow charts showing an example of the subroutine of steps S2802 and S2804 above. [Diagram 30] FIG. 30 shows the flow for identifying rules. [Diagram 31] FIG. 31 shows another flow for specifying rules. [Diagram 32] FIG. 32 is a flowchart showing an example of a process flow for generating a fish-eye perspective ruler. [Diagram 33] FIG. 33 is a flowchart showing another example of the processing flow for generating a fish-eye perspective ruler. [Diagram 34] FIG. 34 is a flowchart showing an example of displaying a fish-eye perspective ruler. [Diagram 35] FIG. 35 is a flowchart showing another example of displaying a fish-eye perspective ruler. [Diagram 36] FIG. 36 is a diagram showing the hardware configuration of the embodiment. [Figure 37] FIG. 37 shows how to obtain the position of point B from the position of point W on the canvas without using θ. [Figure 38] FIG. 38 is a diagram showing a user interface for easily setting multiple fish-eye perspective rulers that are perpendicular to each other. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0034] The disclosed technology will be described below with reference to the drawings.
[0035] The perspective ruler is provided with various functions when a user draws on a virtual canvas on a plane using an input interface (e.g., a pencil, a mouse, a touch panel, a tablet, a pointing device, etc.). It should be noted that in this specification, explanations of general publicly known functions among conventional functions related to the perspective ruler may be omitted.
[0036] In addition, in this specification, a virtual three-dimensional space may be mentioned. However, it should be noted that this virtual three-dimensional space is used to easily explain the present technology (such as a perspective ruler generation method), and the existence of this virtual three-dimensional space is not necessarily essential when a user uses the present technology (such as a perspective ruler) to perform drawing.
[0037] In addition, in this specification, an example is given of drawing a line that would be drawn as a straight line in normal perspective projection as a curved line according to fisheye perspective representation, but it goes without saying that the disclosed technology is not limited to drawing curved lines and can be used for other drawing methods such as points, circles, rectangles, and colored areas.
[0038] <Embodiment 1> Fig. 1 is a diagram for explaining an overview of the disclosed technology. Fig. 1A is a diagram showing an illustration drawn by a user using the disclosed technology. Fig. 1B shows a reference image that the user used as a reference when drawing the illustration.
[0039] FIG. 1A shows an illustration 102A drawn on a canvas 100. The illustration 102A is an image in which an object that is originally straight has a distorted curve, like a photograph taken with a fisheye lens. For example, a window 104A should have a window frame made up of straight lines in a normal perspective projection. However, the window 104A has a distorted and curved frame, like a photograph taken with a fisheye lens. This type of illustration is more powerful than a normal perspective projection.
[0040] Window 104B present in reference image 102B shown in FIG. 1B is also a curved window, and reference image 102B itself is an image intended to have a fisheye lens appearance.
[0041] The disclosed technology provides a technology that allows a user to easily draw an illustration 102A that mimics a fisheye lens expression. It is desirable that when a user draws the illustration 102A, the user can also display a reference image 102B as a rough sketch superimposed on the canvas. It should be noted that the reference image 102B is not essential when the user draws the illustration. Alternatively, it is assumed that the reference image 102B exists only in the user's mind as the target image that the user intends to draw. Usually, the user has in his or her mind the image that he or she is going to draw (intended illustration). In order to materialize such a virtual image, the user places a fisheye perspective ruler in accordance with the virtual image and draws a curve along the placed fisheye perspective ruler.
[0042] FIG. 2 is a diagram for explaining an overview of how a user uses the disclosed technology to draw an illustration. FIG. 2A is a diagram showing a fisheye perspective ruler and the like superimposed on a canvas. FIG. 2B is a diagram showing the outline of a building drawn by a computer using the disclosed technology based on a user's instructions. FIG. 2C is a diagram showing the building and the surrounding scenery. FIG. 2D is a diagram showing the completed illustration.
[0043] 2A shows a drawing assistant tool 200 including a fish-eye perspective ruler superimposed on a canvas. It is preferable that the drawing assistant tool 200 exists on a layer separate from the drawing layer on which the illustration is drawn.
[0044] In FIG. 2A, the eye level 260 is a line also called the horizon, and can be used to align the vanishing point of the perspective ruler with the horizon. For example, in a projection method such as perspective projection, it is known that a plane parallel to the ground converges to the horizon at infinity. For example, a set of parallel lines in a three-dimensional space, such as the road walls of a road that continue to infinity, that are parallel to the ground, is known to converge to a single vanishing point at the eye level 260 at infinity. In this way, the eye level 260 is used as a guide when setting the vanishing point of the fisheye perspective ruler. An interface may be provided in which the vanishing point is attached to the eye level line when the vanishing point is brought close to the eye level.
[0045] In FIG. 2A, there are vanishing points 210, 220, and 230. The vanishing point 220 and the vanishing point 230 exist on the line of the eye level 260. The fisheye perspective rulers 222, 224, and 226 converge to the vanishing point 220 existing on the line of the eye level 260, and similarly, the fisheye perspective rulers 232, 234, and 236 converge to the vanishing point 230 existing on the line of the eye level 260. The fisheye perspective rulers 212, 214, and 216 converge to the vanishing point 210 not existing on the line of the eye level 260. By using a fisheye perspective ruler with a vanishing point existing on the line of the eye level 260, it is easy to draw a curved line distorted based on a fisheye lens representation of a straight line parallel to the ground. Note that a fisheye perspective ruler with a vanishing point not existing on the line of the eye level 260 is used when drawing a straight line not parallel to the ground with a curved line distorted based on a fisheye lens representation.
[0046] 2A depicts a 180-degree circle 202. The 180-degree circle corresponds to a direction of 90 degrees from the front of the camera in the virtual three-dimensional space. In other words, the inside of the 180-degree circle corresponds to the area in front of the camera in the virtual three-dimensional space, and the outside of the 180-degree circle corresponds to the area behind the camera in the virtual three-dimensional space. The lens circle is the circle formed by the edges of the image projected by the fisheye lens onto the imaging surface. The lens circle of a fisheye lens with a 180-degree angle of view is the same as a 180-degree circle. A fisheye perspective ruler that has a vanishing point on the 180-degree circle 202 has another vanishing point (not shown) at the other point where a straight line passing through one vanishing point and the lens center point O intersects with the 180-degree circle. The vanishing point may be restricted so that it cannot be moved by the user beyond and outside the 180 degree circle. Also, the orientation of the camera in the virtual three-dimensional space is not necessarily parallel to the ground, so it is desirable to allow the user to freely set the eye level 260 according to the purpose of drawing.
[0047] The lens circle may be displayed on the canvas. In the case of a fisheye lens with an angle of view exceeding 180 degrees, two vanishing points that form a pair can be placed within the lens circle.
[0048] FIG. 2B shows how a building outline 280A is drawn along each fisheye perspective ruler under the user's instructions. FIG. 2C shows an illustration of a completed building 280B and the roads around the building. For example, when a user draws a curved line, a line may be drawn at the position of each fisheye perspective ruler. Also, when a user draws a line away from the fisheye perspective ruler, an invisible fisheye perspective ruler that passes through the position of the canvas pointed to by the pointing device may be selected, and the curve may be drawn along the selected fisheye perspective ruler based on the user's instructions. In this way, the number of displayed fisheye perspective rulers can be reduced, preventing the fisheye perspective ruler from getting in the way when the user draws, and the computer can draw an illustration with an appropriate fisheye lens expression based on the user's instructions.
[0049] FIG. 3 is a diagram showing a situation in which a fisheye perspective ruler is set in accordance with a reference image. Multiple fisheye perspective rulers 342 converging to vanishing point 340 and multiple fisheye perspective rulers 352 converging to vanishing point 350 are fisheye perspective rulers that follow the edges of a desk, the boundary between the wall and the floor, and the horizontal frame of a window frame, which are considered to be straight lines parallel to the ground.
[0050] In the canvas 300, multiple fisheye perspective rulers 322 converging on a vanishing point 320 are fisheye perspective rulers that follow the legs of a desk, the boundaries between walls, and a vertical window frame, which are considered to be straight lines perpendicular to the ground. In this way, by using a reference image, the user can easily set multiple fisheye perspective rulers.
[0051] FIG. 4 is a diagram showing a curve 410 drawn along a fisheye perspective ruler. When the user moves the pointing device on the canvas along the fisheye perspective ruler, the computer can draw a curve 410.
[0052] 5 shows the display when the display of the reference image is turned off. A drawn curve 410 is displayed together with a fisheye perspective ruler. Note that a rectangle 500 is included for the sake of convenience to indicate the position of the reference image.
[0053] 6 and 7 are diagrams showing an example of a function f(θ, k) used when generating a fisheye perspective ruler. Fig. 6 is a diagram for the case where 0≦θ<π / 2, and Fig. 7 is a diagram for the case where π / 2≦θ≦π. The value of the angle ∠OPW formed by point O on the canvas 610, point P placed on a line V that passes through point O and is perpendicular to the plane of the canvas, and point W existing in three-dimensional space is θ, and the distance between point O and point P is 1. Then, point S is placed, which is on the line V, on the opposite side of point O with respect to point P, and at a distance k from point P.
[0054] Also, place a curved surface G that is axially symmetric with respect to the straight line V. An example of the curved surface G is a sphere with a radius of 1 and centered at the point P. However, the curved surface G is not limited to such a sphere.
[0055] The point where the line connecting point P and point W intersects with the curved surface G is designated as point Q. The point where the line connecting point S and point Q intersects with the canvas 610 is designated as point D. The distance from point O to point D is designated as n. If the surface G is a sphere of radius 1 centered at point P, the distance n is expressed as follows: n=(k+1)*sin(θ) / (k+cos(θ)) (Equation 1) where 0≦k≦∞ If the scale factor is R, the function f(θ, k) is expressed as follows: f(θ,k)=R*(k+1)*sin(θ) / (k+cos(θ)) (Equation 2) Note that k is a parameter that represents the strength of distortion in the fisheye lens representation, and the scale factor R is a parameter that scales the entire transformation formula. f(θ,k) matches or approximates various projection methods depending on the value of k, as follows: k=0: Match perspective (f(θ,k)=R*tan(θ)) (Formula 3-1) k=1: corresponds to stereographic projection (f(θ,k)=2*R*tan(θ / 2)) (Equation 3-2) k=1.8: Approximate equidistant projection (f(θ,k)≒R*θ) (Equation 3-3) k=2.5: Approximate equisolid angle projection (f(θ,k)≒2*R*sin(θ / 2)) (Formula 3-4) k=∞: Matches orthographic (f(θ,k)=R*sin(θ)) (Formula 3-5) In this way, by appropriately setting the distortion parameter k and the scale factor R, it is possible to define fisheye perspective rulers that correspond to fisheye lens expressions of various characteristics. The radius of the 180-degree circle is the value of the function f(θ, k) when θ = π / 2, that is, f(π / 2, k). The function f(θ, k) has the following properties: In the range of θ used in the conversion, 0≦θ<π / 2, 0≦f(θ,k)≦R*tan(θ) (Equation 4) 0≦∂f(θ,k) / ∂θ≦R*sec 2 (θ) (Formula 5-1) Meet the following. ∂f(θ,k) / ∂θ| θ=0 =R (Formula 5-2) Meet the following. If the range of θ includes a region of π / 2 or more, within the range of θ, π / 2≦θ≦π, f(θ,k)>0 (Formula 5-3) ∂f(θ,k) / ∂θ≧0 (Equation 5-4) is satisfied. Equation 4 indicates that the transformation by the function f(θ, k) shows that the coordinates of the points in the transformed result move towards the point O compared to the transformation by perspective projection (and its uniform scaling). Equation 5-1 indicates that the transformation by the function f(θ, k) shows that the corresponding part of the transformed result shrinks in the radial direction centered on the point O compared to the transformation by perspective projection (and its uniform scaling). Equation 5-2 indicates that in the vicinity of the point O, the transformation by perspective projection (and its uniform scaling) and the scaling are almost the same. The above conditional equations 4, 5-1, and 5-2 show that in the vicinity of the point O, it is almost the same as the transformation by perspective projection, shrinks towards the point O, and as it moves away from the point O, the degree of shrinkage in the radial direction centered on the point O becomes stronger. Furthermore, the function f(θ, k) may be defined such that ∂f(θ, k) / ∂θ / (R*sec 2 (θ)) is monotonically decreasing with respect to θ. The transformation by the function f(θ, k) shows that the degree of shrinkage of the corresponding part of the transformed result becomes stronger (shrinks to be smaller) as it moves away from the point O compared to the transformation by perspective projection (and its uniform scaling). As shown in FIG. 7, even when θ exceeds π / 2 (90°), it is possible to define a fisheye scale rule. However, depending on the value of k, the value of f(θ, k) may become infinite or may not satisfy Equation 5-4. Therefore, it is desirable to limit the range of θ to a range where the value of f(θ, k) does not become infinite and satisfies Equation 5-4.
[0056] Note that if the value of k is -1 < k < 0, spiral distortion can be expressed. The point S is located on the same side of the point O as the point P.
[0057] Transform a straight line on the canvas or a figure existing in three-dimensional space by the function f(θ, k) to obtain a curve having the same shape as the curve obtained by transforming the straight line by the function f(θ, k), and display a fisheye scale rule having the obtained curve.
[0058] For a straight line L in three-dimensional space, there exists a figure F that satisfies the following conditions. Condition: Given a figure F that exists in three-dimensional space, the curve obtained by transforming figure F by a function f(θ, k) is identical to the curve obtained by transforming a straight line L by a function f(θ, k). Using this, instead of transforming the straight line L by the function f(θ, k), the shape F may be transformed by the function f(θ, k) to obtain the curve of the fisheye perspective ruler.
[0059] An example of such a figure F is given below. Here, the plane containing point P and line L is called plane E. -The intersection line between plane E and curved surface G. · A curve on plane E. -Plane figure on plane E. The above application using the figure F also applies to other examples of the function f(θ, k) described below. Furthermore, when determining the coordinates of point B, a Cartesian coordinate system (X, Y coordinates) with point O as the origin may be set on the plane of the canvas (not shown), and a function f(θ, k) having different parameters between the X coordinate of point B and the Y coordinate of point B may be applied to determine the coordinates of point B on the canvas, thereby defining a fisheye perspective ruler. By defining such a fisheye perspective ruler, it is possible to obtain a fisheye perspective ruler that has different fisheye lens expressions in the X-axis and Y-axis directions.
[0060] The above application of using different parameters for the X coordinate and the Y coordinate also applies to other examples of the function f(θ, k) described below.
[0061] Figures 8 and 9 are diagrams showing other examples of the function f(θ, k) used when generating a fisheye perspective ruler. Figure 8 is a diagram for the case where 0≦θ<π / 2, and Figure 9 is a diagram for the case where π / 2≦θ≦π.
[0062] Let θ be the value of the angle ∠OPW formed by point O on canvas 810, point P placed on a line V that passes through point O and is perpendicular to the plane of the canvas, and point W existing in three-dimensional space. Let the distance between point O and point P be 1. A curved surface G is formed that is symmetrical about the straight line V as its axis.
[0063] The point where the straight line connecting point P and point W intersects with the curved surface G is defined as point Q, and the value of the angle between the plane of the canvas 810 and vector OQ is defined as α. The point placed on the straight line connecting point P and point W is defined as point C, and the value of the angle between the plane of the canvas 810 and vector OC is defined as β. Define k as follows: k=β / α (Equation 6) Let the distance from point O to point C be m. If the surface G is a sphere of radius 1 centered at point P, the distance m is expressed as follows: m=sin(θ) / cos(θ-θ*k / 2) (Equation 7) where 0≦k≦2 If the scale factor is R, the function f(θ, k) is expressed as follows: f(θ,k)=R*sin(θ) / cos(θ-θ*k / 2) (Equation 8)
[0064] Note that k is a parameter that represents the strength of distortion in the fisheye lens representation, and the scale factor R is a parameter that scales the entire transformation formula. f(θ,k) matches or approximates various projection methods depending on the value of k, as follows: k=0: Match perspective (f(θ,k)=R*tan(θ)) k=0.655: Approximate stereographic projection (f(θ,k)≒2*R*tan(θ / 2)) k=0.875: Approximate equidistant projection (f(θ,k)≒R*θ) k=1: Matches equisolid angle projection (f(θ,k)=2*R*sin(θ / 2)) k=2: Match orthographic (f(θ,k)=R*sin(θ)) In this way, by appropriately setting the distortion strength parameter k and the scale factor R, it is possible to define fisheye perspective rulers that correspond to fisheye lens expressions of various characteristics. The function f(θ, k) has the properties shown in Equation 4 and Equations 5-1 through 5-4. As shown in Figure 9, it is possible to define a fisheye perspective ruler even when θ exceeds π / 2 (90°). However, depending on the value of k, the value of f(θ,k) may become infinite or may not satisfy formula 5-4. Therefore, it is desirable to limit the range of θ to a range where the value of f(θ,k) does not become infinite and formula 5-4 is satisfied.
[0065] If the value of k is set to k<0, pincushion distortion can be expressed.
[0066] Incidentally, application examples have already been explained, so the explanation will be omitted. By using the above functions, a fisheye perspective ruler can be defined. The vanishing point may also be the point where two fisheye perspective rulers intersect.
[0067] The eye level may be a curve drawn using the function used to generate the fisheye perspective ruler. Note that the eye level can be used as one of the fisheye perspective rulers, and when a user draws a horizon, the computer can draw the horizon based on the user's operation by attaching the drawing line to the eye level.
[0068] FIG. 10 is a diagram showing an example in which the curved surface G is other than a spherical surface.
[0069] In Fig. 10, the curved surface G1010 has a surface like an inverted cone. In this case, the distortion in the area close to point O is stronger than when the curved surface G is a sphere. In this way, various fisheye perspective rulers can be defined by changing the shape of the curved surface G.
[0070] Fig. 11 is a diagram showing an example of setting the strength of distortion and scale factor R and determining the vanishing point based on a user's instruction. Fig. 11A to Fig. 11D show an example of a user interface that allows a user to intuitively operate the strength of distortion, scale factor R, determination of the vanishing point, and determination of two fisheye perspective rulers.
[0071] In FIG. 11A, a user instruction (e.g., the start point D of a mouse cursor drag 1120) s 1122 and end point D e A straight line 1110 is drawn on the screen by a straight line passing through 1124.
[0072] In FIG. 11B, a vector determined by the start point and end point of the next drag of the mouse cursor 1170 is taken as vector 1171. The length L of the drag 1120 in FIG. d Based on t and the length of the component perpendicular to the line 1110 of the vector 1171 in FIG. 11B, several parameters including the distortion strength k, the scale factor R, the lens center point O, and the radius Rp of the 180-degree circle can be determined. Therefore, based on the determined parameters, a curve 1112 (a line that is the basis of the fisheye perspective ruler) is drawn by curving the straight line 1110 so that it passes through a starting point 1122 and an ending point 1124. At this time, the straight line 1110 is curved in a direction that matches the direction of the vector 1171 to obtain the curve 1112. The strength of the distortion is, for example, k=t / L d A different formula may be used, but it is desirable that k be 0 when t=0 and be monotonically increasing with respect to t. t=L d In this case, it is preferable that k=1. The radius of a 180 degree circle is, for example, Rp=Ld 2 / t. A different formula may be used, but it becomes infinity when t → 0, and t = L d In the case of L d It is desirable that it should be monotonically decreasing with respect to t. The scale factor R can be calculated from the distortion strength k and the radius Rp of the 180-degree circle (for example, equations a-1 and a-2 described below). The lens center point O is point D s and point D e Point D is on the perpendicular bisector of the line segment connecting s and point D e The distance between the line and O is -4(tL d / 2) 2 / L d +L d This distance can be expressed as t=0,L d It is desirable for the function to be upwardly convex so that it has a minimum value of 0 when
[0073] In Figure 11C, multiple parameters have already been determined, so for example, by drawing curve 1113 (a line that serves as the basis for other fisheye perspective rulers) that passes through start point 1182 of drag 1181 of mouse cursor 1180 and is determined by the position of end point 1184 of drag 1181, the intersection of curve 1112 and curve 1113 can be determined as vanishing point 1130. In FIG. 11D, it is desirable to delete curve 1112A and curve 1113A in FIG. 11C, which extend beyond vanishing point 1130. The eye level may be drawn appropriately so as to pass through the created vanishing point 1130. Also, a 180-degree circle may be drawn based on a plurality of parameters. In this way, at least one vanishing point and two fisheye perspective rulers can be displayed on the screen with simple operations.
[0074] Furthermore, the user can add two fisheye perspective rulers with the intersection of two curves as the vanishing point by drawing two curves (not shown). Also, if the user draws a curve that passes through an already drawn vanishing point, one fisheye perspective ruler that passes through that vanishing point may be added (not shown).
[0075] Fig. 12 shows an example of the transition of the fisheye perspective ruler display when the user changes the distortion strength. Fig. 12A shows the fisheye perspective ruler display before changing the distortion strength. Fig. 12B shows the fisheye perspective ruler display after changing the distortion strength without changing the scale factor.
[0076] 12A, an eye level 1220A, fisheye perspective rulers 1230A, and 1240A are displayed within a 180-degree circle 1210A. A predetermined position 1222A designated by the user exists on the eye level line. A predetermined position 1232A designated by the user exists on the fisheye perspective ruler 1230A line. A predetermined position 1242A designated by the user exists on the fisheye perspective ruler 1240A line. A vanishing point 1250A exists on the eye level 1220A line. FIG. 12B shows the state in which the user has changed the strength of the fisheye lens distortion, resulting in an increased strength of distortion. Due to the increased strain strength, the following changes occur in FIG. 12B compared to FIG. 12A: (1) The size of 180-degree circle 1210A becomes smaller and becomes 180-degree circle 1210B. (2) The curvature of the fisheye perspective rulers 1230A and 1240A increases and the length decreases, becoming fisheye perspective rulers 1230B and 1240B, respectively. 12A and 12B, the size of the 180-degree circles 1210A and 1210B changes because the distortion strength k is changed without changing the scale factor R. It is also possible to link the change in distortion strength k with the change in scale factor R so that the distortion strength can be changed without changing the size of the 180-degree circle. Below, the radius of the 180 degree circle is Rp Here is an example of how the distortion strength and scale factor R work together while keeping the (1) When the function f(θ, k) is defined as Equation 2 The radius of the 180 degree circle is R p Then, the following equation can be derived from equation 2. R p =f(π / 2,k)=R*(k+1) / k From the above formula, R=R p *k / (k+1) (formula a-1) The relationship can be derived. By using this formula a-1 to link the distortion strength k and the scale factor R, the radius of the 180-degree circle is set to a constant value R p We can change the distortion strength k while keeping the (2) When the function f(θ, k) is defined as Equation 8 The radius of the 180 degree circle is R p Then, the following equation can be derived from equation 8. R p =f(π / 2,k)=R*cos(π*(2-k) / 4) From the above formula, R=R p / cos(π*(2-k) / 4) (Eq. a-2) The relationship can be derived. By using this formula a-2 to link the distortion strength k and the scale factor R, the radius of the 180-degree circle is set to a constant value R p We can change the distortion strength k while keeping the
[0077] Despite the above changes, the positions on the canvas of the predetermined positions 1222A and 1222B on the eye level line are both (x0, y0) and have not moved. The positions on the canvas of the predetermined positions 1232A and 1232B on the line of the fisheye perspective ruler 1230A are both (x2, y2) and have not moved. The positions on the canvas of the predetermined positions 1242A and 1242B on the line of the fisheye perspective ruler 1240A are both (x1, y1) and have not moved.
[0078] As described above, the positions of the predetermined positions on the canvas may be maintained even if the strength of distortion is changed. For example, the shape of the fisheye perspective ruler set by the user to match each side of a desk can be changed so that the predetermined positions designated by the user are maintained even if the strength of distortion is changed by setting the predetermined positions near the center of the side of the desk. In this way, the user can fix a predetermined position of the fisheye perspective ruler, so that the degree of inclination or curvature of the fisheye perspective ruler can be changed while aligning the fisheye perspective ruler with the desired image position of the reference image, and the fisheye perspective ruler having the shape desired by the user can be set more easily.
[0079] The above advantages also apply to a predetermined position set on the eye level line. By changing the strength of the distortion, it is possible to prevent the position and shape of the eye level and fish-eye perspective ruler from being changed to a position or shape that is not intended by the user.
[0080] Fig. 13 is a diagram explaining the movement of the vanishing point accompanying a change in the inclination of the fisheye perspective ruler. Fig. 13A shows the state before the inclination of the fisheye perspective ruler is changed. Fig. 13B shows the state after the inclination of the fisheye perspective ruler is changed.
[0081] In FIG. 13A, the fisheye perspective ruler 1320A has a vanishing point 1370A and two handles 1324A that allow the user to adjust the inclination. By dragging either of the two handles 1324A, the following desired operations can be provided to the user. In addition, the fisheye perspective ruler 1320A has a predetermined position 1322A set. When the user drags and moves one of the handles 1324A, for example, using the cursor 1370, the fisheye perspective ruler 1320A can be rotated in the direction of the arrow 1350 around the predetermined position 1322A.
[0082] 13B, fisheye perspective ruler 1320A, shown by a dashed line, rotates in the direction of arrow 1350 in response to the user's drag operation, changing its curvature and arriving at the state of fisheye perspective ruler 1320B. In response to this rotation and change in curvature, the position of vanishing point 1370A moves to the position of vanishing point 1370B. As the vanishing point moves, fisheye perspective ruler 1310A extends the distance indicated by arrow 1360 to vanishing point 1370B. In this way, it is possible to change the inclination of fisheye perspective ruler 1320A and move the position of the vanishing point while fixing predetermined position 1322A based on user instructions.
[0083] Fig. 14 is a diagram showing an example of adding a fish-eye perspective ruler. Fig. 14A to Fig. 14C show an example of adding one fish-eye perspective ruler.
[0084] In Fig. 14A, fisheye perspective rulers 1410 and 1420 share a vanishing point 1430. When the user presses the mouse button at the position of cursor 1450, for example, a straight line 1460A is displayed. When the user drags cursor 1450 while keeping the mouse button pressed, straight line 1460A rotates in response to the drag, for example, into straight line 1460B. Note that although straight lines 1460A and 1460B are displayed in Fig. 14A, a curved line may also be displayed. In FIG. 14B, as the user continues dragging, fish-eye perspective ruler 1460C is attached to vanishing point 1430.
[0085] 14C, when the user stops dragging (releases the mouse), the curve 1460D that protrudes beyond the vanishing point 1430 of the fisheye perspective ruler 1460C disappears. This operation generates a new fisheye perspective ruler 1460C that shares the already existing vanishing point 1430.
[0086] Alternatively, the state of Figure 14A may be omitted, and when the user drags the mouse, a fisheye perspective ruler 1460C passing through the cursor 1450 in Figure 14B may be displayed. When the user releases the mouse, the curve 1460D protruding beyond the vanishing point 1430 of the fisheye perspective ruler 1460C disappears. This operation may generate a new fisheye perspective ruler 1460C that shares the already existing vanishing point 1430.
[0087] In addition, if there are multiple vanishing points on the canvas, in FIG. 14B, fisheye perspective ruler 1460C may be attached to the vanishing point closest to the position of fisheye perspective ruler 1460C in response to the operation of cursor 1450 indicated by the user (not shown). By doing as described above, it is easy to add a new fisheye perspective ruler so that it passes through a desired vanishing point.
[0088] Fig. 15 shows the state when a specific position on the fisheye perspective ruler is moved by a user's instruction. Fig. 15A shows the state before the specific position is moved. Fig. 15B shows the state after the specific position is moved. 15A, fisheye perspective ruler 1520A has a vanishing point 1540. The user drags a predetermined position 1522A in the direction of arrow 1530 with mouse cursor 1550.
[0089] FIG. 15B shows the state after the drag. The predetermined position moves from predetermined position 1522A to predetermined position 1522B in response to the drag. Along with this movement, the curve of the fisheye perspective ruler is appropriately changed. Note that the vanishing point 1540 and the other parts of the fisheye perspective ruler 1510 do not need to be changed.
[0090] Fig. 16 shows an example of the handle display when the user instructs to fix the position of the vanishing point. Fig. 16A shows the state before the user instructs to fix the position of the vanishing point. Fig. 16B shows the state after the user has left the command to fix the position of the vanishing point.
[0091] 16A, movement of the vanishing point 1610 is permitted, so four handles 1624 for changing the inclination of the fisheye perspective ruler are displayed. In this case, the user can change the inclination of the fisheye perspective ruler by operating any of the four handles 1624 with a mouse or the like. This change causes the vanishing point 1610 to move.
[0092] 16B, when movement of the vanishing point 1610 is not permitted, the four handles 1624 for changing the inclination of the fisheye perspective ruler may be made to disappear. By doing so, the user cannot manipulate the inclination of the fisheye perspective ruler, and therefore movement of the vanishing point 1610 in response to such manipulation is prevented.
[0093] Also, it is possible to prevent the vanishing point 1610 from moving even if the user drags the vanishing point 1610 with the cursor. Note that it is preferable that the position of the vanishing point does not move even if the user moves a predetermined position.
[0094] It is preferable that vanishing points that are not permitted to be moved are not moved even if the user changes the strength of distortion. However, if the position of the vanishing point becomes unstable, such as when the vanishing point exceeds the lens circle due to a change in the strength of distortion or the scale factor R, the vanishing point may be moved.
[0095] Fig. 17 is a diagram showing a state transition when a point O (lens center point O) where a straight line V of a virtual lens central axis intersects with the canvas is moved. Fig. 17A is a diagram before the lens center point O is moved. Fig. 17B is a diagram after the lens center point O is moved.
[0096] The position of the lens center point O (1710A) in FIG. 17A moves in the direction of the arrow 1730, and in FIG. 17B, it moves to the lens center point O (1710B). The coordinates (x5, y5) of the predetermined position 1750A and the coordinates (x6, y6) of the predetermined position 1760A in FIG. 17A are also the coordinates (x5, y5) of the predetermined position 1750B and the coordinates (x6, y6) of the predetermined position 1760B in FIG. 17B, respectively, and do not move on the canvas. Note that the 180-degree circle and the vanishing point move following the movement of the lens center point O. Accordingly, the shapes of the fisheye perspective ruler 1752A and the fisheye perspective ruler 1762A in FIG. 17 change to the fisheye perspective ruler 1752B and the fisheye perspective ruler 1762B, respectively. It is desirable that the eye levels 1790A, 1790B and the predetermined positions on the eye level line move in accordance with the movement of the lens center point. By doing so, when the reference image is displayed in an overlapping manner, it is possible to prevent the reference image from being misaligned with the predetermined position.
[0097] Fig. 18 is a diagram showing state transitions when the vanishing point is moved. Fig. 18A is a diagram before the vanishing point is moved. Fig. 18B is a diagram after the vanishing point is moved. In FIG. 18A, the vanishing point 1820A is moved in the direction of the arrow 1850. In FIG. 18B, the position of the vanishing point 1820B after the movement is shown. In this case, the coordinates (x7, y7) of the predetermined position 1870A and the coordinates (x8, y8) of the predetermined position 1880A in FIG. 18A are also the coordinates (x7, y7) of the predetermined position 1870B and the coordinates (x8, y8) of the predetermined position 1880B in FIG. 18B, respectively, and do not move on the canvas. As the vanishing point 1820A in FIG. 18 moves to the vanishing point 1820B, the shapes of the fisheye perspective ruler 1872A and the fisheye perspective ruler 1882A change to the fisheye perspective ruler 1872B and the fisheye perspective ruler 1882B, respectively. The behavior when a vanishing point is dragged can be, for example, as follows. The behavior can be different depending on whether the vanishing point is on the eye level line. Even if it is on the eye level line, the behavior can be different depending on whether the vanishing point is the first vanishing point or a second or subsequent vanishing point. (1) When the vanishing point is the first vanishing point on the eye level line and the eye level is fixed: The position of the vanishing point moves along the eye level line. Even if the vanishing point is moved, the eye level does not change. (2) If the vanishing point is the first vanishing point on the eye level line and the eye level is not fixed: There is no restriction on the location of the loss. As the vanishing point moves, the eye level changes. (3) If the vanishing point is the second or subsequent vanishing point on the eye level line, or is a vanishing point that is not on the eye level line: There is no restriction on the position of the missing point (however, it may be made to adhere to the eye level). The eye level does not change even if the vanishing point is moved. By doing so, when the reference image is displayed in an overlapping manner, it is possible to prevent the reference image from being misaligned with the predetermined position.
[0098] Fig. 19 is a diagram showing state transitions when the strength of distortion is changed. Fig. 19A is a diagram showing the state before the strength of distortion is changed. Fig. 19B is a diagram showing the state after the strength of distortion is changed.
[0099] If vanishing point 1950A is fixed, it is desirable to maintain the coordinates of the fixed vanishing point. If no vanishing points are specified to be fixed, it is desirable to maintain the coordinates of all of the predetermined positions.
[0100] Fig. 19A shows a case where there is no instruction to fix the position of vanishing point 1950A. In this case, the coordinates of predetermined positions 1930A and 1940A in Fig. 19A are the same as the coordinates of predetermined positions 1930B and 1940B in Fig. 19B.
[0101] On the other hand, when an instruction to fix the coordinates of vanishing point 1950A is given in Fig. 19A, it is preferable not to change the position of vanishing point 1950B in Fig. 19B. In this case, the coordinates of predetermined positions 1930A and 1940A do not have to be the same as the coordinates of predetermined positions 1930B and 1940B in Fig. 19B. By doing so, when changing the strength of the distortion, the user can select whether to fix the position of the vanishing point or to fix a predetermined position.
[0102] Fig. 20 is a diagram showing state transitions when the scale factor R is changed. Fig. 20A is a diagram showing the state before the scale factor R is changed. Fig. 20B is a diagram showing the state after the scale factor R is changed.
[0103] If the vanishing point 2022A is fixed, it is desirable to maintain the coordinates of the fixed vanishing point. If no instruction has been given to fix any vanishing point, it is desirable to maintain the coordinates of all of the predetermined positions. Fig. 20A shows a case where no instruction has been given to fix the position of vanishing point 2022A. In this case, the coordinates of predetermined positions 2030A and 2040A in Fig. 20A are the same as the coordinates of predetermined positions 2030B and 2040B in Fig. 20B. On the other hand, when an instruction to fix the coordinates of vanishing point 2022A is given in Fig. 20A, it is desirable not to change the position of vanishing point 2022B in Fig. 20B. In this case, the coordinates of predetermined positions 2030A and 2040A do not have to be the same as the coordinates of predetermined positions 2030B and 2040B in Fig. 20B.
[0104] By doing so, when changing the scale factor R, the user can select whether to fix the position of the vanishing point or to fix a predetermined position.
[0105] Fig. 21 shows changes to the display of the fisheye perspective ruler. Fig. 21A shows the state before the strength of distortion is changed. Fig. 21B shows the state after the strength of distortion is changed.
[0106] When an instruction is given to increase the strength of distortion for fisheye perspective ruler 2150A in Fig. 21A, the display changes to fisheye perspective ruler 2150B in Fig. 21B. For other fisheye perspective rulers and eye level shapes, when an instruction is given to increase the strength of distortion, the display also changes to the shapes shown in Fig. 21A and Fig. 21B.
[0107] Fig. 22 shows how curves already drawn along the fisheye perspective ruler are changed as the display of the fisheye perspective ruler is changed. Fig. 22A shows the state before the strength of distortion is changed. Fig. 22B shows the state after the strength of distortion is changed.
[0108] When the display of the fisheye perspective ruler shown in FIG. 22A (e.g., fisheye perspective ruler 2250A) is changed to the fisheye perspective ruler shown in FIG. 22B (e.g., fisheye perspective ruler 2250B), the already drawn curve 2210A shown in FIG. 22A is changed to the curve 2210B shown in FIG. 22B.
[0109] In this way, as the strength of distortion is changed and the display of fisheye perspective ruler 2250A changes to fisheye perspective ruler 2250B, curve 2210A, which has already been drawn along the fisheye perspective ruler, also changes to curve 2210B to match this change.
[0110] In this way, the fisheye perspective ruler may be modified to accommodate changes in the strength of a particular distortion, and curves that have already been drawn may also be modified. By doing so, even if the fisheye perspective ruler is changed, the user does not need to redraw the drawing from scratch.
[0111] Fig. 23 shows how the curves already drawn along the fisheye perspective ruler are changed and the reference image is also changed when the display of the fisheye perspective ruler is changed. Fig. 23A shows the state before the strength of distortion is changed. Fig. 23B shows the state after the strength of distortion is changed.
[0112] By doing this, even if the fisheye perspective ruler is changed, the user does not need to redraw the drawing from scratch, and since the reference image itself, which is the image used as a reference for the drawing, is also transformed, the user can easily refer to changes in the details of the reference image when continuing to draw in more detail, making it easier to continue drawing.
[0113] Fig. 24 shows how the referenced image is changed in accordance with the change in the display of the fisheye perspective ruler. Fig. 24A shows the state before the change, and Fig. 24B shows the state after the change.
[0114] When the shape of either the fisheye perspective ruler 2420A or the fisheye perspective ruler 2430A in Fig. 24A is changed to the fisheye perspective ruler 2420B or 2430B in Fig. 24B, respectively, or when the position of the vanishing point 2450A in Fig. 24A is changed to the position of the vanishing point 2450B in Fig. 24B, the reference image to be referred to is also deformed. The drawn image may be changed to match this change (not shown). In this way, the fisheye perspective ruler can be easily transformed based on user instructions, such as by changing the curvature of the fisheye perspective ruler or changing the position of the vanishing point, so that the drawn image and / or the reference image can also be easily transformed to accommodate those changes.
[0115] <Embodiment 2> Figure 25 is a flowchart for generating curves for a fisheye perspective ruler used to draw a fisheye lens representation. Each step in Figure 25 is explained below. [Step S2502] A function f(θ, k) is defined. Here, the function f(θ, k) is In the range of θ used in the conversion, 0≦θ<π / 2, 0≦f(θ,k)≦R*tan(θ) (Equation 9) 0≦∂f(θ,k) / ∂θ≦R*sec 2 (θ) (Formula 10-1) Fulfilling ∂f(θ,k) / ∂θ| θ=0 =R (Formula 10-2) Fulfilling If the range of θ includes a region of π / 2 or more, within the range of θ, π / 2≦θ≦π, f(θ,k)>0 (Equation 11) ∂f(θ,k) / ∂θ≧0 (Equation 12) Meet the following. The meanings of formulas 9, 10-1 and 10-2 are as already described for formulas 4, 5-1 and 5-2.
[0116] In formula 11, when θ exceeds π / 2 (90°), tan(θ) becomes a negative value in formula 9, so tan(θ) is omitted from the conditional formula. Equation 12 shows that the function is a simple increasing function even when θ exceeds π / 2 (90°).
[0117] If you use a function that satisfies the above conditions to convert a straight line on a canvas, for example, you can obtain a curve that is close to the curve obtained by capturing the straight line with a fisheye lens. By using this curve in a fisheye perspective ruler, it is possible to draw a line that would be drawn as a straight line according to the perspective projection method as a curve that is close to the image captured by a fisheye lens.
[0118] [Step S2504] The straight line on the canvas or the figure existing in the three-dimensional space is transformed by the function f(θ, k) to obtain a curve having the same shape as the curve obtained by transforming the straight line by the function f(θ, k), and a fisheye perspective ruler having the obtained curve is displayed. This step S2504 allows a fisheye perspective ruler having curves that can draw a fisheye lens representation to be displayed superimposed on the canvas. By using this fisheye perspective ruler, users can draw on a canvas, creating illustrations with a fisheye lens effect. Furthermore, for example, if the trajectory of a circle is converted to generate a fisheye perspective ruler curve, a user can use the fisheye perspective ruler with this curve to easily draw on a canvas the curve that is captured when a circle is photographed with a fisheye lens.
[0119] FIG. 26 is a flow chart showing a process using the functions described in FIGS. [Step S2602] This step functions as a subroutine of step S2502 in FIG. [Step S2604] As a function f(θ, k), f(θ,k)=R*(k+1)*sin(θ) / (k+cos(θ)) Here, 0≦k≦∞. applies. This function was explained with reference to FIGS.
[0120] FIG. 27 is a flow chart showing a process using the functions described in FIGS. [Step S2702] This step functions as a subroutine of step S2502 in FIG. [Step S2704] As a function f(θ, k), f(θ,k)=R*sin(θ) / cos(θ-θ*k / 2) Here, 0≦k≦2. applies. This function was explained with reference to FIGS.
[0121] Figure 28 is a flowchart showing how to display a fisheye perspective ruler on a canvas. Each step will be explained below. [Step S2802] Based on a user instruction, a rule is specified for converting a straight line on the canvas or a virtual straight line in three-dimensional space into a curve on the canvas that matches the fisheye lens representation. A specific example of this rule has already been explained, so a repeat explanation will be avoided. [Step S2804] A fish-eye perspective ruler is generated, which is determined by a rule-based curve that passes through a predetermined position on the canvas designated by the user. [Step S2806] On a plane including the canvas, the position of a vanishing point, which is a point where the curves of multiple fish-eye perspective rulers converge, is identified in a manner that is recognizable to the user. [Step S2808] Display the fisheye perspective ruler on the canvas. Through the above process, a fisheye perspective ruler can be displayed on the canvas.
[0122] 29A and 29B are flow charts showing an example of the subroutine of steps S2802 and S2804 above. [Step S2902] This indicates that the flow following this step S2902 is a subroutine of step S2802.
[0123] [Step S2904] It is checked whether the user's instruction is to change the strength of distortion. If the check result is affirmative (Yes), the process proceeds to step S2906. If the check result is negative (No), the process returns. [Step S2906] The rules are changed in response to the change in the distortion strength. The following process flow shown in FIG. 29B is executed after the above process. [Step S2910] This indicates that the flow following step S2910 is a subroutine of step S2804. [Step S2912] The fisheye perspective ruler that was generated before the rules were changed is changed to a fisheye perspective ruler determined by a curve based on the changed rules, which curve passes through a predetermined position specified by the user before the rules were changed. Through the above processing, the curves of the fisheye perspective ruler are appropriately changed in accordance with the change in distortion.
[0124] FIG. 30 shows the flow for identifying rules. [Step S3002] This indicates that the flow following this step S3002 is a subroutine of step S2802.
[0125] [Step S3004] A rule is identified based on at least one of the strength of distortion of the fisheye lens representation, the scale factor, and the position of the virtual lens center point of the fisheye lens representation specified by the user. Parameters that are not specified by the user can be determined in advance.
[0126] FIG. 31 shows another flow for specifying rules. [Step S3102] This indicates that the flow following this step S3102 is a subroutine of step S2802. [Step S3104] Two curves are drawn on the canvas based on the user's instructions, thereby specifying the curves of two fish-eye perspective rulers. [Step S3106] The intersection of the two curves is set as the vanishing point. [Step S3108] The strength of the fisheye lens distortion is determined based on at least the degree of curvature of at least one of the two curves.
[0127] FIG. 32 is a flowchart showing an example of a process flow for generating a fish-eye perspective ruler. [Step S3202] This indicates that the flow following this step S3202 is a subroutine of step S2804.
[0128] [Step S3204] It is checked whether the user's instruction is to change the inclination of a specified fisheye perspective ruler. If the check result is affirmative (Yes), the process proceeds to step S3206. If the check result is negative (No), the process proceeds to step S3208. [Step S3206] Change the position of the vanishing point of the specified fish-eye perspective ruler and return.
[0129] [Step S3208] It is checked whether the user's instruction is to change the predetermined position. If the check result is affirmative (Yes), the process proceeds to step S3210. If the check result is negative (No), the process proceeds to step S3212. [Step S3210] Without changing the position of the vanishing point, change the curve of the specified fish-eye perspective ruler that passes through the changed specified position, and then return. [Step S3212] The position of the predetermined vanishing point is fixed, and a check is made to see whether the predetermined position of the fish-eye perspective ruler that converges to the predetermined vanishing point is to be changed. If the check result is affirmative (Yes), proceed to step S3214. If the check result is negative (No), return. [Step S3214] The fisheye perspective ruler is made unchangeable, and the process returns.
[0130] FIG. 33 is a flowchart showing another example of the processing flow for generating a fish-eye perspective ruler. [Step S3302] This indicates that the flow following this step S3302 is a subroutine of step S2804.
[0131] [Step S3304] It is checked whether the distortion strength has been changed by the user. If the check result is affirmative (Yes), the process proceeds to step S3306. If the check result is negative (No), the process proceeds to step S3308.
[0132] [Step S3306] Change the curve of the perspective ruler without moving the specified position, and then return. By not changing the specified position, it is possible to prevent the position of the fish-eye perspective ruler from moving at the specified position that the user is focusing on.
[0133] [Step S3308] It is checked whether the position of the vanishing point has been changed by the user's instruction. If the check result is affirmative (Yes), the process proceeds to step S3310. If the check result is negative (No), the process returns. [Step S3310] Change the curve of the fisheye perspective ruler and return.
[0134] FIG. 34 is a flowchart showing an example of displaying a fish-eye perspective ruler. [Step S3402] This indicates that the flow following this step S3402 is a subroutine of step S2808. [Step S3404] It is checked whether the display of the already displayed fish-eye perspective ruler has been changed. If the check result is affirmative (Yes), proceed to step S3406. If the check result is negative (No), return. [Step S3406] The image drawn along each of the plurality of fish-eye perspective rulers is modified in accordance with the modification of each of the plurality of fish-eye perspective rulers in accordance with the user's instructions.
[0135] FIG. 35 is a flowchart showing another example of displaying a fish-eye perspective ruler. [Step S3502] This indicates that the flow following this step S3502 is a subroutine of step S2808. [Step S3504] It is checked whether the display of the already displayed fish-eye perspective ruler has been changed. If the check result is affirmative (Yes), proceed to step S3506. If the check result is negative (No), return. [Step S3506] The image on the canvas that has been used as a rough sketch by the user is modified in accordance with the modifications made to each of the multiple fisheye perspective rulers. Through this process, the image that the user used as a reference image is modified to match the changes in the fisheye perspective ruler.
[0136] FIG. 36 is a diagram showing the hardware configuration of the embodiment.
[0137] The hardware configuration of the embodiment includes a CPU 4001, a ROM 4002 in which the program and data of the embodiment can be stored, a RAM 4003, a network interface 4005, an input interface 4006, a display interface 4007, and an external memory interface 4008. These pieces of hardware are connected to each other by a bus 4004.
[0138] The network interface 4005 is connected to a network 4015. The network 4015 may be a wired LAN, a wireless LAN, the Internet, a telephone network, or the like. The input interface 4006 is connected to an input unit 4016. The display interface 4007 is connected to a display unit 4017. The display unit 4017 may be realized by a plurality of display devices. The external memory interface 4008 is connected to a storage medium 4018. The storage medium 4018 may be a RAM, a ROM, a CD-ROM, a DVD-ROM, a hard disk, a memory card, a USB memory, or the like. <Variation 1> When point W exists on the canvas, an equivalent expression is possible using the distance r instead of the angle θ by converting variables with the distance between point O and point W as r. Using function g(r,k), the coordinates of point W are converted to the coordinates of point B on the canvas that is a distance g(r,k) away from point O. The relationship between the distance r and the angle θ is expressed by the following equation. r=tan(θ) (Eq. 13) Since the point W exists on the canvas, the range of θ is 0≦θ<π / 2. The function g(r,k) equivalent to the function f(θ,k) can be obtained by the following transformation. g(r,k)=f(tan -1(r),k) (Equation 14) The conditional expression 0≦f(θ,k)≦R*tan(θ) is replaced by the conditional expression 0≦g(r,k)≦R*r. The conditional expression 0≦∂f(θ,k) / ∂θ≦R*sec2(θ) is replaced by the conditional expression 0≦∂g(r,k) / ∂r≦R. The conditional expression ∂f(θ,k) / ∂θ| θ=0 = R is ∂g(r,k) / ∂r| r=0 =Replaced with R. Therefore, the conditional expressions of Equation 4, Equation 5-1, and Equation 5-2 are equivalent to the following expressions. 0≦g(r,k)≦R*r (Equation 15) 0≦∂g(r,k) / ∂r≦R (Equation 16-1) ∂g(r,k) / ∂r| r=0 =R (Formula 16-2) Additionally, the condition that ∂f(θ,k) / ∂θ / (R*sec2(θ)) is monotonically decreasing with respect to θ can be replaced with the condition that ∂g(r,k) / ∂r is monotonically decreasing with respect to r. This will be described as a modification of the embodiment shown in Fig. 6. By converting Equation 2 using Equation 14, the following equation equivalent to Equation 2 is obtained. g(r,k) = R*(k+1)*sin(tan -1 (r)) / (k+cos(tan -1 (r))) (Equation 17) This will be described as a modification of the embodiment shown in Fig. 8. By converting equation 8 using equation 14, the following equation equivalent to equation 8 is obtained. g(r,k) = R*m = sin(tan -1 (r)) / cos(tan -1 (r)-tan -1 (r)*k / 2) (Equation 18) FIG. 37 is a diagram showing how the position of point B is obtained from the position of point W on a canvas 3710 without using θ. Using the function g(r, k) shown in Equation 17 or Equation 18, the coordinates of point W are converted to the coordinates of point B on the canvas 3710 that is a distance g(r, k) away from point O. In other words, the relationship between the distance r and the angle θ is g(r, k)=f(tan -1 (r), k). <Variation 2> FIG. 38 is a diagram showing a user interface for easily setting multiple fish-eye perspective rulers that are perpendicular to each other. A number of fisheye perspective rulers (for example, fisheye perspective rulers 3912 and 3914, and fisheye perspective rulers 3922 and 3924) that pass through a common vanishing point on the canvas correspond to groups of parallel lines in three-dimensional space. A restriction may be added so that a group of lines in three-dimensional space corresponding to one group of fisheye perspective rulers on the canvas plane and a group of lines in three-dimensional space corresponding to the other group of fisheye perspective rulers are mutually orthogonal in three-dimensional space. A specific example is shown in Fig. 38. Assume that the object to be drawn is a rectangle parallel to the ground in three-dimensional space, such as the top surface of a rectangular desk. In Fig. 38, a distorted rectangle 3930 surrounded by a thick line is, for example, the top surface of a desk. A group of curves of multiple fisheye perspective rulers 3912 and 3914 passing through vanishing point 3910 and a group of curves of multiple fisheye perspective rulers 3922 and 3924 passing through vanishing point 3920 should be perpendicular to each other in three-dimensional space. Therefore, for example, when the user determines the position of the vanishing point 3910 on the line of the eye level 3902, the position of the vanishing point 3920 can be automatically determined so as to satisfy the above-mentioned orthogonal condition in three-dimensional space. Furthermore, for example, when the user moves the position of vanishing point 3910 on the eye level line, the position of vanishing point 3920 may automatically move on the eye level line in conjunction with this, so as to satisfy the above-mentioned orthogonal condition in three-dimensional space. By doing as described above, it is possible to easily set fisheye perspective rulers that are perpendicular to each other, and when the user changes the position or vanishing point of one fisheye perspective ruler, it is easy to ensure that the other fisheye perspective ruler is set accordingly while maintaining their perpendicular relationship to each other. To set such a feature, for example, the user is allowed to specify a pair of two vanishing points having a group of fisheye perspective rulers that are perpendicular to each other.
[0139] The order of each flow in the illustrated flowchart can be changed as long as there is no contradiction. Furthermore, one illustrated flow can be executed multiple times at different times as long as there is no contradiction. Furthermore, multiple flows can be executed simultaneously as long as there is no contradiction. Furthermore, not all steps are essential, and some steps may not exist or may not be executed as long as there is no contradiction. The above points also apply to the constituent elements of the method defined in the claims. That is, the order of the constituent elements can be changed as long as there is no contradiction. Also, multiple constituent elements can be implemented simultaneously as long as there is no contradiction. The implementation of these constituent elements also falls within the technical scope defined in the claims. Also, each step may be executed by an operating system or hardware. Also, the program may be distributed in a state stored in a non-transitory medium.
[0140] The program and method for implementing the above-described embodiment may be executed by a computer having the hardware configuration shown in Fig. 36. That is, the program of the embodiment may be implemented as a method for causing a computer to execute the program. The program may be stored in the storage medium 4018, the ROM 4002, or the RAM 4003. Each embodiment may be implemented as a hardware device having a program installed thereon. The "fisheye perspective ruler" described in this specification is synonymous with the "perspective ruler" in the claims and drawings. The scale factor R is an example of a parameter that represents the overall enlargement or reduction of the fisheye perspective ruler. [Explanation of symbols]
[0141] 4004 Bus 4005 Network Interface 4006 Input Interface 4007 Display Interface 4008 External Memory Interface 4015 Network 4016 Input section 4017 Display section 4018 Storage medium
Claims
1. A perspective ruler display method in which a computer displays a perspective ruler placed on a planar canvas existing in a virtual three-dimensional space, and the computer displays the perspective ruler in response to an instruction from a user to draw a fisheye lens representation by drawing a line on the canvas along the perspective ruler, comprising: A function f(θ, k) that converts the coordinates of point W into the coordinates of point B on the canvas that is a distance f(θ, k) away from point O, where θ is the angle ∠OPW formed by point O on the canvas, point P placed on a line V that passes through point O and is perpendicular to the plane of the canvas, and point W existing in the three-dimensional space, and the distance between point O and point P is 1, In the range of θ used in the conversion, 0≦θ<π / 2, 0≦f(θ,k)≦R*tan(θ) 0≦∂f(θ,k) / ∂θ≦R*sec 2 (θ) Fulfilling ∂f(θ,k) / ∂θ| θ=0 = R Fulfilling When the range of θ includes a region of π / 2 or more, in the range of θ, π / 2≦θ≦π, f(θ, k)>0 ∂f(θ,k) / ∂θ≧0 Defining a function f(θ, k) that satisfies Transforming a straight line on the canvas or a figure existing in the three-dimensional space by the function f(θ, k) to obtain a curve having the same shape as the curve obtained by transforming the straight line by the function f(θ, k), and displaying a perspective ruler having the obtained curve; having Here, k is a parameter that represents the strength of fisheye lens distortion in the perspective ruler, R is a parameter that represents the overall expansion or contraction of the perspective ruler centered on the point O. How to display perspective rulers.
2. The point B exists on a line obtained by perpendicularly projecting a line connecting the point O and the point W onto the plane of the canvas. The perspective ruler display method according to claim 1 .
3. The point W is a point on the canvas, and displaying the perspective ruler is 2. The method for displaying a perspective ruler according to claim 1, further comprising the step of displaying a curved perspective ruler obtained by converting a straight line on the canvas by the function f(θ, k).
4. The point B is on the line connecting the point O and the point W. The perspective ruler display method according to claim 3.
5. forming a curved surface G having an axisymmetric shape with respect to the straight line V; A point Q is a point where the straight line connecting point P and point W intersects with the curved surface G, and a point S on the straight line V, which is located on the opposite side of point O with respect to point P, and a point D is a point where the straight line connecting point Q and point S intersects with the canvas, The value of k is proportional to the distance between the point P and the point S, The value of the function f(θ, k) is proportional to the distance between the point O and the point D. The perspective ruler display method according to claim 1 .
6. forming a curved surface G having an axisymmetric shape with respect to the straight line V; Let Q be the point where the straight line connecting point P and point W intersects with the curved surface G, let C be the point on the straight line connecting point P and point W, let α be the angle between the plane of the canvas and vector OQ, and let β be the angle between the plane of the canvas and vector OC, The value of k is proportional to the value of β / α, The value of the function f(θ, k) is proportional to the distance between the point O and the point C. The perspective ruler display method according to claim 1 .
7. The function f(θ, k) is equal to or approximates R*tan(θ) when the distortion strength k is a predetermined value. The perspective ruler display method according to claim 1 .
8. The function f(θ, k) is expressed as follows when the distortion strength k is a predetermined value: Stereographic projection, 2*R*tan(θ / 2), R*θ, which is an equidistant projection, Equivalent solid angle projection, 2*R*sin(θ / 2) and R*sin(θ), which is the orthogonal projection matches or approximates at least one of The perspective ruler display method according to claim 1 .
9. The function f(θ, k) is defined as follows: When calculating the coordinates of point B, a function f(θ, k) is applied to the X-coordinate of point B and the Y-coordinate of point B on the X-axis and the Y-axis, which are mutually orthogonal coordinate axes with point O as the origin on the plane of the canvas, to calculate the coordinates of point B on the canvas; The perspective ruler display method according to claim 1 , further comprising:
10. Displaying the perspective ruler Setting the distortion strength k and the scale factor R so as to keep the magnitude of the function f(π / 2, k) constant; The perspective ruler display method according to claim 1 , further comprising:
11. The function f(θ, k) is defined by the following equation: f(θ,k)=R*(k+1)*sin(θ) / (k+cos(θ)) where 0≦k≦∞. The perspective ruler display method according to claim 1 .
12. The function f(θ, k) is defined by the following equation: f(θ,k)=R*sin(θ) / cos(θ−θ*k / 2) where 0≦k≦2. The perspective ruler display method according to claim 1 .
13. A perspective ruler display method in which a computer displays a perspective ruler placed on a flat canvas, and the computer displays the perspective ruler in response to an instruction from a user to draw a fisheye lens representation by drawing a line on the canvas along the perspective ruler, A function g(r, k) converts the coordinates of point W into the coordinates of point B on the canvas that is a distance g(r, k) away from point O, where r is the distance between point O on the canvas and point W on the canvas. 0≦g(r,k)≦R*r 0≦∂g(r,k) / ∂r≦R ∂g(r,k) / ∂r| r=0 = R Defining a function g(r, k) that satisfies Transforming the straight line on the canvas by the function g(r, k) to obtain a curved line, and displaying a perspective ruler having the obtained curved line; having Here, k is a parameter that represents the strength of fisheye lens distortion in the perspective ruler, R is a parameter that represents the overall expansion or contraction of the perspective ruler centered on the point O. How to display perspective rulers.
14. The function g(r, k) is defined by the following formula: g(r,k)=R*(k+1)*sin(tan -1 (r)) / (k+cos(tan -1 (r) where 0≦k≦∞. The perspective ruler display method according to claim 13.
15. The function g(r, k) is defined by the following formula: g(r,k)=R*sin(tan -1 (r)) / cos(tan -1 (r) -tan -1 (r) * k / 2) where 0≦k≦2. The perspective ruler display method according to claim 13.
16. A program for causing a computer to execute the perspective ruler display method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Image processing system and its processing method
JP2012103805A
Image conversion device, and image conversion method and program
JP2013257844A
