Perspective ruler display method

The perspective ruler display method addresses the limitations of conventional fisheye rulers by using a coordinate conversion function to create adjustable, curved rulers, allowing for accurate and intuitive drawing of fisheye lens effects.

WO2024190048A1PCT designated stage expired Publication Date: 2024-09-19CELSYS INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/047352
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-12
Filing Date
2023-12-28
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Conventional fisheye perspective rulers lack the ability to draw lines in various directions and do not provide functions for handling different types of perspective distortions, often displaying unnecessary grid patterns that interfere with drawing.

Method used

A perspective ruler display method that uses a function f(θ, k) to convert coordinates in a virtual three-dimensional space, allowing for the creation of a curved perspective ruler that can be adjusted for different distortion strengths and orientations, enabling users to draw illustrations resembling photographs taken with a fisheye lens.

Benefits of technology

Enables users to easily draw illustrations with accurate fisheye lens effects by providing a flexible and intuitive tool for creating curved lines and adjusting distortion parameters, improving the drawing experience by minimizing interference from unnecessary grid patterns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023047352_19092024_PF_FP_ABST
    Figure JP2023047352_19092024_PF_FP_ABST
Patent Text Reader

Abstract

[PROBLEM] To enable a user to easily draw an illustration like a photograph captured by a fisheye lens when drawing a picture on a virtual canvas using drawing software. [SOLUTION] The disclosed technology provides a perspective ruler display method wherein: given a point O on the canvas and a point P disposed on a straight line V which passes through the point O and is orthogonal to the plane of the canvas, the angle ∠OPW formed by a point W in the three-dimensional space is defined as θ and the distance between the point O and the point P is defined as 1; a straight line on the canvas or a figure in the three-dimensional space is converted by means of a function f (θ, k) that converts the coordinates of the point W to the coordinates of a point B that is distant by a distance f(θ, k) from the point O on the canvas, and a curve having the same shape as the curve obtained by converting the straight line by means of the function f (θ, k) is acquired; and a perspective ruler having the acquired curve is displayed.
Need to check novelty before this filing date? Find Prior Art

Description

How to display the perspective ruler

[0001] The present invention relates to a perspective ruler display method.

[0002] Traditionally, when using drawing software to draw illustrations or other three-dimensional objects, perspective rulers based on the law of perspective (abbreviated as "perspective") are sometimes used. Perspective rulers are used to create accurate perspective drawings based on perspective when drawing illustrations. An example of how to use a perspective ruler is as follows.

[0003] When a user wants to draw an object, they place the perspective ruler around the object they want to draw. For example, if the object is box-shaped, they place the perspective ruler along the shape of the box. They can then draw perspective lines along the perspective ruler. When drawing lines, the user can use the perspective ruler to draw along the guide lines of the perspective ruler, so they can draw straight lines that follow perspective even when drawing by hand. By repeating the same procedure, they can draw illustrations that follow perspective on a two-dimensional canvas.

[0004] In the composition of a typical illustration, perspective projection, a linear projection method, is used, but to create a more powerful effect, a special perspective called fisheye perspective is sometimes used.

[0005] Unlike standard perspective projection, fisheye perspective requires drawing curved lines, making it difficult to draw accurate lines by hand. This creates a need for a ruler tool to assist in drawing such complex fisheye lens effects. A commonly used fisheye perspective ruler is one that uses curved grid lines.

[0006] There is drawing software that provides a curved perspective ruler that can be used to draw illustrations with distortions like 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 is relatively easy to draw perspective drawings that look like they were taken with a fisheye lens.

[0007] There are also non-patent documents that disclose how to draw fisheye perspective (see, for example, Non-Patent Document 1). This document discloses a general methodology for drawing illustrations with distortion similar to that of photographs taken with a fisheye lens. However, conventional fisheye perspective rulers have the following characteristics:

[0008] Although it is possible to draw curves that are 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] Furthermore, there are various types of fisheye lenses, each with different degrees of perspective distortion. However, conventional fisheye perspective rulers do not provide users with functionality that can be used to create drawings with these various distortions. Because the fisheye perspective ruler displays a grid-like pattern in unnecessary areas that are not relevant to the drawing, it can sometimes get in the way of the user's drawing.

[0010] https: / / oekaki-zukan.com / articles / 11818

[0011] The disclosed technology aims to enable users to more easily draw illustrations that resemble photographs taken with a fisheye lens when using drawing software to draw pictures on a virtual canvas.

[0012] The disclosed technology is a perspective ruler display method in which a computer displays a perspective ruler placed on a flat canvas existing in a virtual three-dimensional space in such a way 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 perspective ruler being placed on a flat canvas existing in a virtual three-dimensional space, and the computer displays the perspective ruler so that lines are drawn on the canvas along the perspective ruler, the angle ∠OPW formed by a point O on the canvas, a point P placed on a line V that passes through the point O and is perpendicular to the plane of the canvas, and a point W existing in the three-dimensional space is θ, and the distance between the point O and the point P is 1, the function f(θ,k) converts the coordinates of the point W into the coordinates of a point B on the canvas that is a distance f(θ,k) from the point O, and the range of θ used for the conversion is 0≦θ<π / 2, where 0≦f(θ,k)≦R*tan(θ) and 0≦∂f(θ,k) / ∂θ≦R*sec 2 (θ) satisfies ∂f(θ, k) / ∂θ| θ=0 =R, and when the range of θ includes a region equal to or greater than π / 2, determining a function f(θ, k) that satisfies f(θ, k)>0 ∂f(θ, k) / ∂θ≧0 within the range of θ such that π / 2≦θ≦π; transforming a straight line on the canvas or a figure existing in the three-dimensional space using the function f(θ, k) to obtain a curve having the same shape as the curve obtained by transforming the straight line using the function f(θ, k), and displaying a perspective ruler having the obtained curve, wherein k is a parameter that represents the strength of distortion of the fisheye lens representation in the perspective ruler, and R is a parameter that represents the overall expansion or contraction of the perspective ruler with the point O as its center.

[0013] In the disclosed technique, the point B may exist on a line that is a perpendicular projection of a 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 that exists on the canvas, and displaying the perspective ruler may involve displaying a curved perspective ruler obtained by converting a straight line on the canvas using the function f(θ, k).

[0015] In the disclosed technique, the point B may be located on a straight line connecting the point O and the point W.

[0016] Furthermore, in the disclosed technology, a curved surface G having an axisymmetric shape with the straight line V as an axis is formed; a point Q is defined as the point at which a straight line connecting the point P and the point W intersects with the curved surface G; a point D is defined as the point S on the straight line V, the point S being located on the opposite side of the point O from the point P, and a point D is defined as the point at which a straight line connecting the point Q and the point S on the straight line V intersects with the canvas; the value of k may be proportional to the distance between the point P and the point S; and the value of the function f(θ, k) may be proportional to the distance between the point O and the point D.

[0017] Furthermore, in the disclosed technology, a curved surface G having an axisymmetric shape with the straight line V as an axis is formed, and the point where the line connecting the point P and the point W intersects with the curved surface G is designated as point Q, a point located on the line connecting the point P and the point W is designated as point C, the value of the angle formed between the plane of the canvas and vector OQ is designated as α, and the value of the angle formed between the plane of the canvas and vector OC is designated as β, the value of k is proportional to the value of β / α, and the value of the function f(θ, k) is proportional to the distance between the point O and the point C. Furthermore, in the disclosed technology, the function f(θ, k) may be set to match or approximate R*tan(θ) when the distortion strength k is a predetermined value. In the disclosed technology, when the distortion strength k is a predetermined value, the function f(θ, k) may be set to coincide with or approximate at least one of: 2*R*tan(θ / 2) which is a stereographic projection; R*θ which is an equidistant projection; 2*R*sin(θ / 2) which is an equisolid angle projection; and R*sin(θ) which is an orthogonal projection. In the disclosed technology, determining the function f(θ, k) may include: when determining the coordinates of point B, applying different functions f(θ, k) to the X coordinate and the Y coordinate of point B on the X axis and the Y axis which are orthogonal coordinate axes with point O as the origin on the plane of the canvas, to determine the coordinates of point B on the canvas. In the disclosed technology, displaying the perspective ruler may include: setting the distortion strength k and the scale factor R so as to maintain the magnitude of the function f(π / 2, k) at a constant value.

[0018] Furthermore, in the disclosed technology, the function f(θ, k) is defined by the following formula: f(θ, k)=R*(k+1)*sin(θ) / (k+cos(θ)), where 0≦k≦∞.

[0019] In the disclosed technology, the function f(θ, k) may be defined by the following formula: f(θ, k) = R * sin(θ) / cos(θ - θ * k / 2) where 0 ≦ k ≦ 2. The disclosed technology also provides a perspective ruler display method in which a computer displays a perspective ruler placed on a planar canvas so 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 function g(r, k) converting the coordinates of point W on the canvas to the coordinates of point B that is a distance g(r, k) from point O, where 0 ≦ g(r, k) ≦ R * r 0 ≦ ∂ g(r, k) / ∂ r ≦ R ∂ g(r, k) / ∂ r | r=0 = R; and converting a straight line on the canvas by the function g(r, k) to obtain a curve, and displaying a perspective ruler having the obtained curve, where k is a parameter representing the strength of distortion of a fisheye lens representation in the perspective ruler, and R is a parameter representing the overall expansion or contraction of the perspective ruler centered on the point O. In the disclosed technology, 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≦∞. In the disclosed technology, 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 may be satisfied.

[0020] The disclosed technology also provides 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 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 perspective ruler display method comprising: specifying, based on the user's instruction, 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 conforms to the fisheye lens representation; generating the perspective ruler determined by a curve based on the rule, the curve passing through a predetermined position on the canvas specified by the user; specifying, on a plane including the canvas, the position of a vanishing point, which is a point where multiple curves of the perspective ruler converge, so as to be recognizable to the user; and displaying the perspective ruler on the canvas.

[0021] Furthermore, in the disclosed technology, specifying the rule may include, when the user's instruction is to change the strength of distortion of a fisheye lens representation, changing the rule in response to the change in the strength of the distortion, and generating the perspective ruler may include changing the perspective ruler generated before the rule was changed to the perspective ruler determined 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, the rule may be identified based on at least one of the strength of distortion of the fisheye lens representation specified by the user, the scale factor, and the position of the intersection between the central axis of the virtual lens of the fisheye lens representation and the canvas.

[0023] Furthermore, in the disclosed technology, identifying the rule may include: identifying two perspective ruler curves by drawing two curves on the canvas based on user instructions; setting the intersection of the two curves as a vanishing point; and identifying the strength of fisheye lens distortion based on the degree of curvature of at least one of the two curves.

[0024] Furthermore, in the disclosed technology, generating the perspective ruler may include: when the user's instruction is to change the inclination of a predetermined perspective ruler, applying the rule in response to the change in inclination to change the position of the vanishing point of the predetermined perspective ruler.

[0025] Furthermore, in the disclosed technology, generating the perspective ruler may include: when the user's instruction is to change the predetermined position, in response to the change in the predetermined position, applying the rule to change the curve of the predetermined perspective ruler that passes through the changed predetermined position without changing the position of the vanishing point of the predetermined perspective ruler.

[0026] Furthermore, in the disclosed technology, generating the perspective ruler may include making it impossible to change the perspective ruler when a user instructs that the position of a predetermined vanishing point be fixed and when the predetermined position of the perspective ruler that converges to the predetermined vanishing point is not changed.

[0027] In the disclosed technique, generating the perspective ruler may include not moving the predetermined position when the strength of the distortion is changed by a user.

[0028] In the disclosed technique, generating the perspective ruler may include changing a curve of the perspective ruler when the position of the vanishing point is changed in accordance with an instruction from the user.

[0029] Furthermore, in the disclosed technology, displaying the perspective rulers may include, when the display of an already displayed perspective ruler is changed, changing an image drawn in accordance with a user's instructions along each of the plurality of perspective rulers to match the change in each of the plurality of perspective rulers.

[0030] In addition, in the disclosed technology, displaying the perspective rulers may include, when the display of the perspective rulers that have already been displayed is changed, changing the image present on the canvas to match the change to each of the multiple perspective rulers.

[0031] The disclosed technology may also be a program that causes a computer to execute the perspective ruler display method.

[0032] The disclosed technology can provide an environment in which users can more easily draw illustrations that resemble photographs taken with a fisheye lens when using drawing software to draw pictures on a virtual canvas.

[0033] FIG. 1 is a diagram illustrating an overview of the disclosed technology. FIG. 1A is a diagram illustrating 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. FIG. 2 is a diagram illustrating an overview of a user drawing an illustration using the disclosed technology. FIG. 3 is a diagram illustrating a situation in which a fisheye perspective ruler is set according to a reference image. FIG. 4 is a diagram illustrating a state in which a curve 410 is drawn along the fisheye perspective ruler. FIG. 5 is a diagram illustrating a display with the reference image display turned off. FIG. 6 is a diagram illustrating an example of a function f(θ, k) used when generating a fisheye perspective ruler. FIG. 7 is a diagram illustrating an example of a case in which θ exceeds 90° using the same method and function f(θ, k) as in FIG. 6. FIG. 8 is a diagram illustrating another example of a function f(θ, k) used when generating a fisheye perspective ruler. FIG. 9 is a diagram illustrating an example of a case in which θ exceeds 90° using the same method and function f(θ, k) as in FIG. 8. FIG. 10 is a diagram illustrating an example in which the curved surface G is a curved surface other than a spherical surface. FIG. 11 is a diagram showing an example of setting the distortion strength and determining the vanishing point based on user instructions. FIGS. 11A to 11D show an example of a user interface that allows a user to intuitively operate the distortion strength, determine the vanishing point, and determine two fisheye perspective rulers. FIG. 12 is a diagram showing an example of the display of the fisheye perspective ruler when the distortion strength is changed by the user. FIG. 12A shows the display of the fisheye perspective ruler before the distortion strength is changed. FIG. 12B shows the display of the fisheye perspective ruler after the distortion strength is changed. FIG. 13 is a diagram explaining the movement of the vanishing point due to 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. FIG. 14 is a diagram showing an example of adding a fisheye perspective ruler. FIGS. 14A to 14C show an example of adding one fisheye perspective ruler. Figure 15 shows the state when a predetermined position on the fisheye perspective ruler has been moved in response to a user instruction. Figure 15A shows the state before the predetermined position has been moved. Figure 15B shows the state after the predetermined position has been moved. Figure 16 shows an example of how handles are displayed when the user has instructed to fix the position of the vanishing point.FIG. 16A shows the state before the user gives an instruction to fix the position of the vanishing point. FIG. 16B shows the state after the user has released the instruction to fix the position of the vanishing point. FIG. 17 shows the state transition when the point O (lens center point O) where the virtual lens central axis line V intersects with the canvas is moved. FIG. 17A shows the state before the lens center point O is moved. FIG. 17B shows the state after the lens center point O has been moved. FIG. 18 shows the state transition when the vanishing point is moved. FIG. 18A shows the state before the vanishing point is moved. FIG. 18B shows the state after the vanishing point has been moved. FIG. 19 shows the state transition when the distortion strength is changed. FIG. 19A shows the state before the distortion strength is changed. FIG. 19B shows the state after the distortion strength is changed. FIG. 20 shows the state transition when the scale factor R is changed. FIG. 20A shows the state before the scale factor R is changed. FIG. 20B shows the state after the scale factor R is changed. FIG. 21 shows changes in the display of the fisheye perspective ruler. FIG. 21A shows the state before the distortion strength is changed. FIG. 21B shows the state after the distortion strength is changed. FIG. 22 shows how curves already drawn along the fisheye perspective ruler are changed as the fisheye perspective ruler display is changed. FIG. 22A shows the state before the distortion strength is changed. FIG. 22B shows the state after the distortion strength is changed. FIG. 23 shows how the canvas image is changed as the fisheye perspective ruler display is changed. FIG. 23A shows the state before the distortion strength is changed. FIG. 23B shows the state after the distortion strength is changed. FIG. 24 shows how the canvas image is changed as the fisheye perspective ruler display is changed. FIG. 24A shows the state before the change. FIG. 24B shows the state after the change. FIG. 25 is a flowchart for generating fisheye perspective ruler curves used to draw fisheye lens representations. FIG. 26 is a flowchart for processing using the functions described in FIGS. 6 and 7. FIG. 27 is a flowchart for processing using the functions described in FIGS. 8 and 9. FIG. 28 is a flowchart for displaying a fisheye perspective ruler on a canvas.Figures 29A and 29B are flowcharts showing an example of the subroutines of steps S2802 and S2804 above. Figure 30 shows a flow related to identifying a rule. Figure 31 shows another flow related to identifying a rule. Figure 32 is a flowchart showing an example of a processing flow for generating a fish-eye perspective ruler. Figure 33 is a flowchart showing another example of a processing flow for generating a fish-eye perspective ruler. Figure 34 is a flowchart showing an example of displaying a fish-eye perspective ruler. Figure 35 is a flowchart showing another example of displaying a fish-eye perspective ruler. Figure 36 is a hardware configuration diagram of an embodiment. Figure 37 is a diagram showing how the position of point B is obtained from the position of point W on the canvas without using θ. Figure 38 is a diagram showing a user interface for easily setting multiple fish-eye perspective rulers that are perpendicular to each other.

[0034] The disclosed technology will be described below with reference to the drawings.

[0035] A 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 commonly known functions among conventional functions related to a perspective ruler may be omitted.

[0036] Furthermore, although this specification may refer to a virtual three-dimensional space, it should be noted that this virtual three-dimensional space is used to clearly explain the present technology (such as a method for generating a perspective ruler), and that the existence of this virtual three-dimensional space is not necessarily essential when a user draws using the present technology (such as a perspective ruler).

[0037] Although this specification provides an example of drawing lines that would be drawn as straight lines in normal perspective projection as curved lines in accordance with fisheye perspective representation, it goes without saying that the disclosed technology is not limited to drawing curved lines and can be used for drawing other methods such as points, circles, rectangles, and colored areas.

[0038] First Embodiment Fig. 1 is a diagram illustrating an overview of the disclosed technology. Fig. 1A is a diagram illustrating 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 painted on a canvas 100. The illustration 102A shows an image of an object that is originally straight, but has distorted curves, like a photograph taken with a fisheye lens. For example, a window 104A would 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 illustration, unlike a normal perspective projection, has a more powerful appearance.

[0040] The window 104B present in the reference image 102B shown in FIG. 1B is also a curved window, and the reference image 102B itself is an image intended to have a fisheye lens appearance.

[0041] The disclosed technology provides a technique that allows a user to easily draw an illustration 102A that mimics a fisheye lens effect. It is desirable that the user be able to overlay a reference image 102B on the canvas as a rough sketch when drawing the illustration 102A. It should be noted that the reference image 102B is not essential for the user to draw the illustration. Alternatively, the reference image 102B may exist only in the user's mind as the target image the user intends to draw. Typically, users have an image they intend to draw (intended illustration) in their mind. To materialize such a virtual image, the user places a fisheye perspective ruler in line with the virtual image and draws a curve along the placed fisheye perspective ruler.

[0042] FIG. 2 is a diagram illustrating an overview of how a user draws an illustration using the disclosed technology. 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 based on a user's instructions using the disclosed technology. FIG. 2C is a diagram showing the building and its surrounding scenery. FIG. 2D is a diagram showing the completed illustration.

[0043] 2A shows a drawing support tool 200 including a fish-eye perspective ruler superimposed on a canvas. The drawing support tool 200 preferably 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 known as the horizon, which can be used to align the vanishing point of the perspective ruler with the horizon. For example, in projection methods such as perspective projection, it is known that planes parallel to the ground converge to the horizon at infinity. For example, a set of parallel lines in three-dimensional space that are parallel to the ground, such as the walls of a road that continue to infinity, 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 that allows the vanishing point to snap to the eye level line when it is brought close to the eye level.

[0045] In FIG. 2A , vanishing points 210, 220, and 230 exist. Vanishing point 220 and vanishing point 230 exist on the eye level 260 line. Fisheye perspective rulers 222, 224, and 226 converge to vanishing point 220, which exists on the eye level 260 line. Similarly, fisheye perspective rulers 232, 234, and 236 converge to vanishing point 230, which exists on the eye level 260 line. Fisheye perspective rulers 212, 214, and 216 converge to vanishing point 210, which does not exist on the eye level 260 line. By using a fisheye perspective ruler with a vanishing point on the eye level 260 line, it is easy to draw a curved line that is distorted based on a fisheye lens representation from a straight line parallel to the ground. Note that a fisheye perspective ruler with a vanishing point that does not exist on the eye level 260 line is used when drawing a straight line that is not parallel to the ground with a curved line that is distorted based on a fisheye lens representation.

[0046] FIG. 2A depicts a 180-degree circle 202. The 180-degree circle corresponds to a direction 90 degrees from the front of the camera in virtual three-dimensional space. That is, the interior of the 180-degree circle corresponds to the area in front of the camera in virtual three-dimensional space, and the exterior of the 180-degree circle corresponds to the area behind the camera in virtual three-dimensional space. A lens circle is a circle formed by the edges of the image projected onto the imaging surface by a fisheye lens. The lens circle of a fisheye lens with a 180-degree angle of view is identical to the 180-degree circle. A fisheye perspective ruler with a vanishing point on the 180-degree circle 202 has another vanishing point (not shown) at the other point where a 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 the user cannot move it beyond the 180-degree circle. Furthermore, the orientation of the camera in virtual three-dimensional space is not necessarily parallel to the ground. Therefore, it is desirable that the eye level 260 can be freely set according to the user's drawing purpose.

[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 paired vanishing points can be placed within the lens circle.

[0048] FIG. 2B shows the outline 280A of a building drawn along each fisheye perspective ruler under the user's instructions. FIG. 2C shows an illustration of a completed building 280B and roads surrounding the building. For example, when a user draws a curved line, the line may be drawn at the position of each fisheye perspective ruler. Furthermore, when a user draws a line away from the fisheye perspective rulers, an invisible fisheye perspective ruler passing 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. By doing this, the number of displayed fisheye perspective rulers can be reduced, preventing the fisheye perspective rulers from getting in the way of the user while the computer draws an illustration with an appropriate fisheye lens effect under the user's instructions.

[0049] 3 is a diagram showing a situation in which fisheye perspective rulers are set in accordance with a reference image. Multiple fisheye perspective rulers 342 converging on vanishing point 340 and multiple fisheye perspective rulers 352 converging on vanishing point 350 are fisheye perspective rulers that follow the edges of a desk, the boundary between a wall and floor, and the horizontal frame of a window, 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 boundary between walls, and the 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] 4 is a diagram showing a curve 410 drawn along the fisheye perspective ruler. When the user moves the pointing device on the canvas along the fisheye perspective ruler, the computer can draw the curve 410.

[0052] 5 shows the display when the reference image display is turned off. The drawn curve 410 is displayed together with the fisheye perspective ruler. Note that a rectangle 500 is included for convenience to indicate the position of the reference image.

[0053] 6 and 7 are diagrams showing an example of the 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 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 on line V, on the opposite side of point O from point P, and at a distance k from point P.

[0054] Also, a curved surface G is placed that is axially symmetric with respect to the line V. An example of the curved surface G is a spherical surface with a radius of 1 and centered at the point P. However, the curved surface G is not limited to such a spherical surface.

[0055] Let Q be the point where the line connecting points P and W intersects with the curved surface G. Let D be the point where the line connecting points S and Q intersects with the canvas 610. Let n be the distance from point O to point D. If surface G is a sphere of radius 1 centered at point P, then distance n can be expressed as follows: n = (k + 1) * sin(θ) / (k + cos(θ)) (Equation 1) where 0 ≤ k ≤ ∞ If the scale factor is R, then the function f(θ, k) can be 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 equation. f(θ, k) matches or approximates various projection methods depending on the value of k, as follows: k = 0: Matches perspective projection (f(θ, k) = R * tan(θ)) (Equation 3-1) k = 1: Matches stereographic projection (f(θ, k) = 2 * R * tan(θ / 2)) (Equation 3-2) k = 1.8: Approximates equidistant projection (f(θ, k) ≒ R * θ) (Equation 3-3) k = 2.5: Approximates equisolid projection (f(θ, k) ≒ 2 * R * sin(θ / 2)) (Equation 3-4) k = ∞: Matches orthographic projection (f(θ, k) = R * sin(θ)) (Equation 3-5) In this way, by appropriately setting the distortion parameter k and scale factor R, it is possible to define fisheye perspective rulers that correspond to fisheye lens representations of various properties. The radius of a 180-degree circle is the value of the function f(θ, k) when θ = π / 2, i.e., f(π / 2, k). The function f(θ, k) has the following properties. Within the range of θ used for conversion, 0≦θ<π / 2, 0≦f(θ, k)≦R*tan(θ) (Equation 4) 0≦∂f(θ, k) / ∂θ≦R*sec 2 (θ) (Equation 5-1) is satisfied. ∂f(θ, k) / ∂θ| θ=0=R (Equation 5-2) is satisfied. If the range of θ includes an area equal to or greater than π / 2, the following is satisfied within the range of θ where π / 2≦θ≦π: f(θ,k)>0 (Equation 5-3) ∂f(θ,k) / ∂θ≧0 (Equation 5-4) Formula 4 expresses that, compared to a transformation using perspective projection (and its uniform scaling), a transformation using the function f(θ,k) causes the coordinates of the transformed point to move toward point O. Formula 5-1 expresses that, compared to a transformation using perspective projection (and its uniform scaling), a transformation using the function f(θ,k) causes the corresponding part of the transformed result to shrink in the radial direction centered on point O. Formula 5-2 expresses that, in the vicinity of point O, the scaling is approximately the same as that using perspective projection (and its uniform scaling). The above conditional expressions 4, 5-1, and 5-2 indicate that the transformation in the vicinity of point O is almost identical to that by perspective projection, contracting toward point O, and the degree of contraction in the radial direction from point O becomes stronger as the distance from point O increases. Furthermore, ∂f(θ, k) / ∂θ / (R*sec 2 The function f(θ, k) may be defined so that f(θ, k) monotonically decreases with respect to θ. A transformation using the function f(θ, k) results in a stronger degree of shrinkage (smaller shrinkage) of the corresponding part of the transformed result the further away from point O it is from the perspective projection transformation (and its uniform scaling). As shown in Figure 7, 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 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 where Equation 5-4 is satisfied.

[0056] It should be noted that pincushion distortion can be expressed by setting the value of k to -1<k<0. Point S is located on the same side as point O with respect to point P.

[0057] A straight line on a canvas or a figure existing in three-dimensional space is transformed by the function f(θ, k), a curve of the same shape as the curve obtained by transforming the straight line by the function f(θ, k) is obtained, and a fisheye perspective ruler with the obtained curve is displayed.

[0058] For a straight line L that exists in three-dimensional space, there exists a figure F that satisfies the following condition: Condition: A figure F exists in three-dimensional space, and the curve obtained by transforming the figure F with a function f(θ, k) is the same as the curve obtained by transforming the straight line L with the function f(θ, k). Using this, instead of transforming the straight line L with the function f(θ, k), the figure F can be transformed with the function f(θ, k) to obtain the curve of a fisheye perspective ruler.

[0059] Examples of such a figure F are given below. Note that 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. A planar figure on plane E. The above-mentioned applications using figure F also apply to other examples of function f(θ, k) described below. Furthermore, when calculating the coordinates of point B, a fisheye perspective ruler can be defined by setting a Cartesian coordinate system (X, Y coordinates) with point O as the origin on the plane of the canvas (not shown), and applying a function f(θ, k) with different parameters to the X coordinate and Y coordinate of point B to calculate the coordinate of point B on the canvas. By defining such a fisheye perspective ruler, a fisheye perspective ruler with different fisheye lens representations can be obtained in the X-axis and Y-axis directions.

[0060] The above application of using different parameters for the X and Y coordinates also applies to other cases of the function f(θ, k) described below.

[0061] 8 and 9 are diagrams showing other examples of the function f(θ, k) used when generating a fisheye perspective ruler. Fig. 8 shows the case where 0≦θ<π / 2, and Fig. 9 shows the case where π / 2≦θ≦π.

[0062] 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 is defined as θ. The distance between point O and point P is defined as 1. A curved surface G is formed that is symmetrical with the line V as its axis.

[0063] Let Q be the point where the line connecting point P and point W intersects with the curved surface G, and α be the angle formed by the plane of the canvas 810 and vector OQ. Let C be the point placed on the line connecting point P and point W, and β be the angle formed by the plane of the canvas 810 and vector OC. Define k as follows: k = β / α (Equation 6) Let m be the distance from point O to point C. If the curved surface G is a sphere with a radius of 1 centered at point P, the distance m is expressed as follows: m = sin(θ) / cos(θ - θ * k / 2) (Equation 7) where 0 ≤ k ≤ 2 If R is the scale factor, 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: corresponds to perspective projection (f(θ, k) = R * tan(θ)); k = 0.655: approximates stereographic projection (f(θ, k) ≈ 2 * R * tan(θ / 2)); k = 0.875: approximates equidistant projection (f(θ, k) ≈ R * θ); k = 1: corresponds to equisolid projection (f(θ, k) = 2 * R * sin(θ / 2)); k = 2: corresponds to orthographic projection (f(θ, k) = R * sin(θ)). In this way, by appropriately setting the distortion strength parameter k and scale factor R, it is possible to define fisheye perspective rulers that correspond to various fisheye lens representations. The function f(θ, k) has the properties shown in Equation 4, and Equations 5-1 to 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 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 where Equation 5-4 is satisfied.

[0065] If the value of k is set to k<0, pincushion distortion can be expressed.

[0066] Application examples have already been explained, so a description 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 also be used as part of the fisheye perspective ruler, so that when a user draws a horizon, the drawing line can be attached to the eye level, and the computer can draw the horizon based on the user's operation.

[0068] FIG. 10 is a diagram showing an example in which the curved surface G is other than a spherical surface.

[0069] In Figure 10, the curved surface G1010 has a curved surface resembling an inverted cone. In this case, the distortion in the area closer to point O is stronger than when the curved surface G is a spherical surface. In this way, by changing the shape of the curved surface G, various fisheye perspective rulers can be defined.

[0070] 11A to 11D show an example of setting the distortion strength and scale factor R and determining the vanishing point based on user instructions. Figures 11A to 11D show an example of a user interface that allows the user to intuitively operate the distortion strength, scale factor R, determination of the vanishing point, and determination of two fisheye perspective rulers.

[0071] In FIG. 11A, a user instruction (for example, a start point D of a mouse cursor drag 1120) s 1122 and end point D e 1124) to draw a straight line 1110 on the screen.

[0072] 11B, a vector determined by the start point and end point of the next drag of the mouse cursor 1170 is defined as a vector 1171. The length L of the drag 1120 in FIG. d 11B , multiple parameters including the distortion strength k, scale factor R, lens center point O, and radius Rp of the 180-degree circle can be determined based on t and the length of the component of vector 1171 perpendicular to straight line 1110. Therefore, based on the determined parameters, a curve 1112 (a line that serves as the basis for the fisheye perspective ruler) is drawn by curving straight line 1110 so that it passes through start point 1122 and end point 1124. At this time, the curve 1112 is obtained by curving the straight line 1110 in a direction that matches the direction of vector 1171. The distortion strength can be expressed as k=t / L, for example. d A different calculation formula may be used, but it is desirable that k becomes 0 when t=0 and monotonically increases with respect to t. d In this case, it is desirable that k=1. The radius of the 180-degree circle is, for example, Rp=L d 2 / t. A different calculation 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 the scale factor R decreases monotonically 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 later). The lens center point O is located at point D s and point D e Point D is on the perpendicular bisector of the line connecting s and point D e The distance between the line passing through and O is -4(t-L d / 2) 2 / L d +L d This distance can be expressed as t=0, L d It is desirable that the function be an upward convex function that has a minimum value of 0 when

[0073] In Figure 11C, multiple parameters have already been determined. For example, by drawing a curve 1113 (a line that serves as the basis for another fisheye perspective ruler) that passes through the starting point 1182 of the drag 1181 of the mouse cursor 1180 and is determined by the end point 1184 of the drag 1181, the intersection of the curve 1112 and the curve 1113 can be determined as the vanishing point 1130. In Figure 11D, it is desirable to delete the curves 1112A and 1113A in Figure 11C that extend beyond the vanishing point 1130. An eye level may be drawn as appropriate so that it passes through the created vanishing point 1130. Alternatively, a 180-degree circle may be drawn from multiple 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, by drawing two curved lines, the user can add two fisheye perspective rulers with the intersection of the two curved lines as the vanishing point (not shown). Also, if the user draws a curved line that passes through an already drawn vanishing point, one fisheye perspective ruler that passes through that vanishing point may be added (not shown).

[0075] Figure 12 shows an example of the transition of the fisheye perspective ruler display when the user changes the distortion strength. Figure 12A shows the fisheye perspective ruler display before changing the distortion strength. Figure 12B shows the fisheye perspective ruler display after changing the distortion strength without changing the scale factor.

[0076] In FIG. 12A , an eye level 1220A and 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 line of fisheye perspective ruler 1230A. A predetermined position 1242A designated by the user exists on the line of fisheye perspective ruler 1240A. A vanishing point 1250A exists on the line of eye level 1220A. FIG. 12B shows a state in which the user has changed the strength of distortion in the fisheye lens representation, increasing the strength of distortion. Because the strength of distortion has increased, the following changes have occurred in FIG. 12B compared to FIG. 12A : (1) The size of the 180-degree circle 1210A has decreased, becoming a 180-degree circle 1210B. (2) The curvature of the fisheye perspective rulers 1230A and 1240A increases and the length decreases, resulting in fisheye perspective rulers 1230B and 1240B, respectively. Note that in Figures 12A and 12B, the distortion strength k is changed without changing the scale factor R, so the size of the 180-degree circles 1210A and 1210B changes. The change in distortion strength k may be linked to 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 changed by R. p Here is an example of how the strength of distortion and the scale factor R are linked when maintaining the following: (1) When the function f(θ, k) is defined by 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) (Equation a-1) The relationship can be derived. By using this equation a-1 to link the distortion strength k and the scale factor R, the radius of the 180-degree circle can be set to a constant value R p (2) When the function f(θ, k) is defined by 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) (Equation a-2) can be derived. By using this equation a-2 to link the distortion strength k and the scale factor R, the radius of the 180-degree circle can be set to a constant value R p The distortion strength k can be changed 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 predetermined positions on the canvas may be maintained even if the distortion strength is changed. For example, if a user sets a fisheye perspective ruler to fit each edge of a desk, the predetermined positions can be set near the center of the desk edge, so that the shape of the fisheye perspective ruler changes to maintain the predetermined positions specified by the user, even if the distortion strength is changed. This allows the user to fix a predetermined position on the fisheye perspective ruler, so that the user can change the tilt or curvature of the fisheye perspective ruler while aligning the fisheye perspective ruler with the desired image position on the reference image, making it easier to set a fisheye perspective ruler with the user's desired shape.

[0079] The above advantages also apply to a predetermined position set on the eye level line. Changing the distortion strength can prevent the position and shape of the eye level and fisheye perspective ruler from being changed to a position or shape that the user does not intend.

[0080] Figure 13 is a diagram explaining the movement of the vanishing point when the inclination of the fisheye perspective ruler is changed. Figure 13A shows the state before the inclination of the fisheye perspective ruler is changed. Figure 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 the user can use to adjust the tilt. Dragging either of the two handles 1324A allows the user to perform the following desired operations. The fisheye perspective ruler 1320A also has a predetermined position 1322A. When the user drags and moves one of the handles 1324A, for example, using cursor 1370, the fisheye perspective ruler 1320A can be rotated in the direction of 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 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, based on the user's instructions, the position of the vanishing point can be moved by changing the tilt of fisheye perspective ruler 1320A while keeping predetermined position 1322A fixed.

[0083] 14A to 14C are diagrams showing an example of adding a fish-eye perspective ruler. An example of adding one fish-eye perspective ruler is shown in FIGS.

[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, when the user continues dragging, fisheye 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 existing vanishing point 1430.

[0086] 14A may be omitted, and when the user drags the mouse, a fisheye perspective ruler 1460C passing through the cursor 1450 in FIG. 14B may be displayed. When the user releases the mouse, the curve 1460D that protrudes 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] Furthermore, if there are multiple vanishing points on the canvas, the fisheye perspective ruler 1460C may be attached to the vanishing point closest to the position of the fisheye perspective ruler 1460C in accordance with the user's operation of the cursor 1450 in Fig. 14B (not shown). By doing so, it is easy to add a new fisheye perspective ruler so that it passes through a desired vanishing point.

[0088] Figure 15 shows the state when a predetermined position on the fisheye perspective ruler has been moved by a user's instruction. Figure 15A shows the state before the predetermined position has been moved. Figure 15B shows the state after the predetermined position has been moved. In Figure 15A, a fisheye perspective ruler 1520A has a vanishing point 1540. The user uses mouse cursor 1550 to drag predetermined position 1522A in the direction of arrow 1530.

[0089] Figure 15B shows the state after the drag. The predetermined position moves from predetermined position 1522A to predetermined position 1522B in response to the drag. As a result of 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] Figure 16 shows an example of how the handles are displayed when the user gives an instruction to fix the position of the vanishing point. Figure 16A shows the state before the user gives an instruction to fix the position of the vanishing point. Figure 16B shows the state after the user has left the instruction to fix the position of the vanishing point.

[0091] 16A, movement of the vanishing point 1610 is permitted, and 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 tilt of the fisheye perspective ruler may be hidden. By doing so, the user cannot manipulate the tilt of the fisheye perspective ruler, and movement of the vanishing point 1610 in response to such manipulation is prevented.

[0093] Furthermore, it is possible to prevent the vanishing point 1610 from moving even when the user drags the vanishing point 1610 with the cursor. It is desirable to prevent the position of the vanishing point from moving even when the user moves a predetermined position.

[0094] It is desirable that vanishing points that are not permitted to move do not move even if the user changes the strength of distortion. However, if a change in the strength of distortion or the scale factor R causes the vanishing point to exceed the lens circle, or otherwise causes the position of the vanishing point to become corrupted, the vanishing point may be moved.

[0095] Fig. 17 shows the state transition when the point O (lens center point O) where the virtual lens central axis line V 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 has been moved.

[0096] The position of lens center point O (1710A) in FIG. 17A moves in the direction of arrow 1730, and in FIG. 17B, it moves to lens center point O (1710B). The coordinates (x5, y5) of predetermined position 1750A and the coordinates (x6, y6) of predetermined position 1760A in FIG. 17A are also the coordinates (x5, y5) of predetermined position 1750B and the coordinates (x6, y6) of predetermined position 1760B in FIG. 17B, respectively, and do not move on the canvas. Note that the 180-degree circle and vanishing point move in conjunction with the movement of lens center point O. Accordingly, the shapes of fisheye perspective rulers 1752A and 1762A in FIG. 17 change to fisheye perspective rulers 1752B and 1762B, respectively. It is desirable that the eye levels 1790A, 1790B and the predetermined positions on the eye level lines move in accordance with the movement of the lens center point, so that when a reference image is displayed superimposed on the reference image, the reference image and the predetermined positions do not shift.

[0097] FIG. 18 is a diagram showing the state transition 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 has been moved. In FIG. 18A, vanishing point 1820A is moved in the direction of arrow 1850. FIG. 18B shows the position of vanishing point 1820B after the movement. In this case, the coordinates (x7, y7) of predetermined position 1870A and the coordinates (x8, y8) of predetermined position 1880A in FIG. 18A are also the coordinates (x7, y7) of predetermined position 1870B and the coordinates (x8, y8) of predetermined position 1880B, respectively, in FIG. 18B, and do not move on the canvas. As vanishing point 1820A in FIG. 18 moves to vanishing point 1820B, the shapes of fisheye perspective rulers 1872A and 1882A change to fisheye perspective rulers 1872B and 1882B, respectively. The behavior when a vanishing point is dragged may be, for example, as follows: The behavior may differ depending on whether the vanishing point is on the eye-level line. Even if the vanishing point is on the eye-level line, the behavior may differ 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 on the eye-level line. Moving the vanishing point does not change the eye level. (2) When the vanishing point is the first vanishing point on the eye-level line and the eye level is not fixed: There is no limit to the position of the vanishing point. The eye level changes as the vanishing point moves. (3) If the vanishing point is the second or subsequent vanishing point on the eye level line, or if the vanishing point is not on the eye level line: - There is no restriction on the position of the vanishing 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 this, when a reference image is displayed overlaid, it is possible to prevent the reference image from shifting from the specified position.

[0098] Fig. 19 shows state transitions when the distortion strength is changed, Fig. 19A shows the state before the distortion strength is changed, and Fig. 19B shows the state after the distortion strength is changed.

[0099] If the vanishing point 1950A is fixed, it is desirable to maintain the coordinates of the fixed vanishing point. If no instruction has been given to fix any vanishing points, it is desirable to maintain the coordinates of all predetermined positions.

[0100] Fig. 19A shows a case where no instruction has been given 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, if an instruction to fix the coordinates of vanishing point 1950A is given in Fig. 19A, it is desirable to leave the position of vanishing point 1950B in Fig. 19B unchanged. 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. In this way, when changing the strength of distortion, the user can select whether to fix the position of the vanishing point or to fix a predetermined position.

[0102] 20A and 20B are diagrams showing state transitions when the scale factor R is changed. Fig. 20A shows the state before the scale factor R is changed. Fig. 20B shows the state after the scale factor R is changed.

[0103] If vanishing point 2022A is fixed, it is desirable to maintain the coordinates of that fixed vanishing point. If no instruction to fix any vanishing points has been given, it is desirable to maintain the coordinates of all predetermined positions. Figure 20A shows a case where no instruction to fix the position of vanishing point 2022A has been given. In this case, the coordinates of predetermined positions 2030A and 2040A in Figure 20A are the same as the coordinates of predetermined positions 2030B and 2040B in Figure 20B. In contrast, if an instruction to fix the coordinates of vanishing point 2022A has been given in Figure 20A, it is desirable to not change the position of vanishing point 2022B in Figure 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 Figure 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] Figure 21 shows changes to the display of the fisheye perspective ruler. Figure 21A shows the state before the distortion strength is changed, and Figure 21B shows the state after the distortion strength is changed.

[0106] When an instruction to increase the distortion strength is given to the fisheye perspective ruler 2150A in Fig. 21A, the display changes to the fisheye perspective ruler 2150B in Fig. 21B. For other fisheye perspective rulers and eye level shapes, when an instruction to increase the distortion strength is given, the display similarly changes to the displays shown in Fig. 21A and Fig. 21B.

[0107] Figure 22 shows how a curve already drawn along the fisheye perspective ruler is changed as the display of the fisheye perspective ruler is changed. Figure 22A shows the state before the strength of distortion is changed. Figure 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, the display of fisheye perspective ruler 2250A changes to fisheye perspective ruler 2250B, and in accordance with this change, curve 2210A, which has already been drawn along the fisheye perspective ruler, also changes to curve 2210B.

[0110] In this way, the fisheye perspective ruler may be changed to suit the change in the strength of the specific distortion, and the curves already drawn may also be changed, so that the user does not need to redraw the drawing from scratch even if the fisheye perspective ruler is changed.

[0111] Figure 23 shows how, when the display of the fisheye perspective ruler is changed, not only are the curves already drawn along the fisheye perspective ruler changed, but also the reference image being referenced is changed. Figure 23A shows the state before the strength of distortion is changed. Figure 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 the beginning, and the reference image itself, which is the image that is used as a reference for the drawing, is also transformed, so that when continuing to draw in more detail, the user can easily refer to changes in the details of the reference image, making it easier to continue drawing.

[0113] Figure 24 shows how the referenced image changes as the display of the fisheye perspective ruler is changed. Figure 24A shows the state before the change, and Figure 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 is also deformed. The drawn image may be changed to accommodate this change (not shown). In this way, the drawn image and / or the reference image can be easily deformed to accommodate the change when the fisheye perspective ruler is deformed based on a user's instruction, such as by changing the curvature of the fisheye perspective ruler or the position of the vanishing point.

[0115] <Embodiment 2> Fig. 25 is a flowchart for generating a curve of a fisheye perspective ruler used for drawing a fisheye lens representation. Each step in Fig. 25 is explained below. [Step S2502] A function f(θ, k) is determined. Here, the function f(θ, k) satisfies the following formula: 0≦f(θ, k)≦R*tan(θ) (Formula 9) 0≦∂f(θ, k) / ∂θ≦R*sec in the range of 0≦θ<π / 2 of the range of θ used for conversion. 2 (θ) (Equation 10-1) is satisfied, and ∂f(θ, k) / ∂θ| θ=0 =R (Equation 10-2) is satisfied, and when the range of θ includes a region of π / 2 or more, the following is satisfied in the range of θ where π / 2≦θ≦π: f(θ,k)>0 (Equation 11) ∂f(θ,k) / ∂θ≧0 (Equation 12) The meanings of Equations 9, 10-1 and 10-2 are as already stated for Equations 4, 5-1 and 5-2.

[0116] In Equation 11, tan(θ) is omitted from the conditional equation because tan(θ) becomes a negative value in Equation 9 when θ exceeds π / 2 (90°). Equation 12 shows that the function is a simple increasing function even when θ exceeds π / 2 (90°).

[0117] For example, if a straight line on a canvas is transformed using a function that satisfies the above conditions, a curve that approximates the curve obtained by capturing the straight line with a fisheye lens can be obtained. By using this curve in a fisheye perspective ruler, it is possible to draw a line that would be drawn as a straight line using perspective projection with a curve that approximates the image captured with a fisheye lens.

[0118] [Step S2504] A straight line on the canvas or a 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 a curve capable of depicting a fisheye lens effect to be displayed superimposed on the canvas. By using this fisheye perspective ruler, a user can draw an illustration with a fisheye lens effect on the canvas. For example, if a fisheye perspective ruler curve is generated by transforming the trajectory of a circle, the user can easily use the fisheye perspective ruler having this curve to depict on the canvas the curve captured when a circle is photographed with a fisheye lens.

[0119] Fig. 26 is a flowchart showing processing using the functions described in Fig. 6 and Fig. 7. [Step S2602] This step functions as a subroutine of step S2502 in Fig. 25. [Step S2604] The following function is applied as a function f(θ, k): f(θ, k) = R * (k + 1) * sin(θ) / (k + cos(θ)) where 0 ≤ k ≤ ∞. This function has been described using Fig. 6 and Fig. 7.

[0120] Fig. 27 is a flowchart showing processing using the functions explained in Fig. 8 and Fig. 9. [Step S2702] This step functions as a subroutine of step S2502 in Fig. 25. [Step S2704] The following is applied as a function f(θ, k): f(θ, k) = R * sin(θ) / cos(θ - θ * k / 2) where 0 ≤ k ≤ 2. This function was explained using Fig. 8 and Fig. 9.

[0121] FIG. 28 is a flowchart for displaying a fisheye perspective ruler on a canvas. Each step is explained below. [Step S2802] Based on the user's instructions, a rule is identified for converting a straight line on the canvas or a virtual straight line in three-dimensional space into a curve on the canvas that is compatible with the fisheye lens representation. Specific examples of these rules have already been explained, so a repeated explanation will be avoided. [Step S2804] A fisheye perspective ruler is generated based on a curve based on the rule, which curve passes through a specific position on the canvas specified by the user. [Step S2806] The position of the vanishing point, which is the point where the curves of multiple fisheye perspective rulers converge, is identified on a plane including the canvas so that it is recognizable to the user. [Step S2808] The fisheye perspective ruler is displayed on the canvas. Through the above processing, a fisheye perspective ruler can be displayed on the canvas.

[0122] 29A and 29B are flow charts showing an example of the subroutines of the above steps S2802 and S2804. [Step S2902] This indicates that the flow following step S2902 is a subroutine of step S2802.

[0123] [Step S2904] It is checked whether the user's instruction is to change the distortion strength. If the check result is affirmative (Yes), proceed to step S2906. If the check result is negative (No), return. [Step S2906] The rule is changed in response to the change in distortion strength. The following processing flow shown in FIG. 29B is executed after the above processing. [Step S2910] This indicates that the flow following step S2910 is a subroutine of step S2804. [Step S2912] The fisheye perspective ruler generated before the rule change is changed to a fisheye perspective ruler determined by a curve based on the changed rule and passing through a predetermined position specified by the user before the rule change. Through the above processing, the curve of the fisheye perspective ruler is appropriately changed in accordance with the change in distortion.

[0124] 30 shows a flow relating to the specification of 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 user-specified fisheye lens distortion strength, scale factor, and virtual lens center position of the fisheye lens representation. Parameters not specified by the user can be determined in advance.

[0126] Figure 31 shows another flow related to the identification of rules. [Step S3102] This indicates that the flow following this step S3102 is a subroutine of step S2802. [Step S3104] Two curves of a fisheye perspective ruler are identified by drawing two curves on the canvas based on the user's instructions. [Step S3106] The intersection of the two curves is set as the vanishing point. [Step S3108] The strength of distortion of the fisheye lens representation is identified based on the degree of curvature of at least one of the two curves.

[0127] 32 is a flowchart showing an example of a processing 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 tilt of a specified fish-eye perspective ruler. If the check result is affirmative (Yes), proceed to step S3206. If the check result is negative (No), proceed to step S3208. [Step S3206] The position of the vanishing point of the specified fish-eye perspective ruler is changed, and the process returns.

[0129] [Step S3208] It is checked whether the user's instruction is to change a predetermined position. If the check result is affirmative (Yes), proceed to step S3210. If the check result is negative (No), proceed to step S3212. [Step S3210] The curve of the predetermined fish-eye perspective ruler that passes through the changed predetermined position is changed without changing the position of the vanishing point, and the process returns. [Step S3212] The position of the predetermined vanishing point is fixed, and a check is made to determine whether the predetermined position of the fish-eye perspective ruler that converges to the predetermined vanishing point is not changed. If the check result is affirmative (Yes), proceed to step S3214. If the check result is negative (No), the process returns. [Step S3214] The fish-eye perspective ruler is made unchangeable, and the process returns.

[0130] 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] The curve of the perspective ruler is changed without moving the predetermined position, and the process returns. By not changing the predetermined position, the position of the fish-eye perspective ruler at the predetermined position that the user is focusing on can be prevented from moving.

[0133] [Step S3308] It is checked whether the position of the vanishing point has been changed in response to a user instruction. If the check result is affirmative (Yes), proceed to step S3310. If the check result is negative (No), return. [Step S3310] The curve of the fisheye perspective ruler is changed, and return.

[0134] 34 is a flowchart showing an example of displaying a fisheye perspective ruler. [Step S3402] This indicates that the flow following step S3402 is a subroutine of step S2808. [Step S3404] A check is made to see if the display of an already displayed fisheye 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 according to the user's instructions along each of the multiple fisheye perspective rulers is changed to match the changes to each of the multiple fisheye perspective rulers.

[0135] Figure 35 is a flowchart showing another example of displaying a fisheye perspective ruler. [Step S3502] This indicates that the flow following step S3502 is a subroutine of step S2808. [Step S3504] A check is made to determine whether the display of an already displayed fisheye 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 used by the user as a rough sketch is changed to match the changes to each of the multiple fisheye perspective rulers. This process changes the image used as a reference image by the user to match the changes to the fisheye perspective rulers.

[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 multiple 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 a canvas, an equivalent expression is possible using the distance r without using the angle θ by converting variables with the distance r between point O and point W. 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(θ) (Equation 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 =R. Therefore, the conditional expressions of Expression 4, Expression 5-1, and Expression 5-2 are equivalent to the following expressions: 0≦g(r, k)≦R*r (Expression 15) 0≦∂g(r, k) / ∂r≦R (Expression 16-1) ∂g(r, k) / ∂r| r=0=R (Equation 16-2) Furthermore, the condition that ∂f(θ, k) / ∂θ / (R*sec2(θ)) monotonically decreases with respect to θ can be replaced with the condition that ∂g(r, k) / ∂r monotonically decreases with respect to r. This will be explained as a modified example of the embodiment shown in FIG. 6. By converting Equation 2 using Equation 14, the following equation equivalent to Equation 2 can be 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) Figure 37 is a diagram showing how to obtain the position of point B 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 into the coordinates of point B on the canvas 3710, which 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> Figure 38 is a diagram showing a user interface for easily setting multiple fisheye perspective rulers that are orthogonal to each other. Multiple fisheye perspective rulers that pass through a common vanishing point on a canvas (e.g., fisheye perspective rulers 3912 and 3914, and fisheye perspective rulers 3922 and 3924) 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 orthogonal to each other in three-dimensional space. Figure 38 shows a specific example. Assume that the object to be drawn is a rectangle that is parallel to the ground in three-dimensional space, such as the top surface of a rectangular desk. In Figure 38, the distorted rectangle 3930 surrounded by a thick line is, for example, the top surface of a desk. The curved lines of the multiple fisheye perspective rulers 3912 and 3914 passing through the vanishing point 3910 and the curved lines of the multiple fisheye perspective rulers 3922 and 3924 passing through the vanishing point 3920 should be orthogonal to each other in three-dimensional space. Therefore, for example, when a user determines the position of the vanishing point 3910 on the eye level line 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 a user moves the position of the vanishing point 3910 on the eye level line, the position of the vanishing point 3920 can be automatically moved on the eye level line in conjunction with this, so as to satisfy the above-mentioned orthogonal condition in three-dimensional space. By doing so, it is possible to easily set fisheye perspective rulers that are orthogonal to each other, and also to easily set the other fisheye perspective rulers so that they are orthogonal to each other when the user changes the position or vanishing point of one fisheye perspective ruler. Such a setting can be realized, for example, by allowing the user to specify a pair of two vanishing points having a group of fisheye perspective rulers that are orthogonal to each other.

[0139] The order of each flow in the illustrated flowchart may be changed as long as there is no contradiction. Furthermore, as long as there is no contradiction, one illustrated flow may be executed multiple times at different times. Furthermore, as long as there is no contradiction, multiple flows may be executed simultaneously. Furthermore, not all steps are essential; some steps may be absent or not executed as long as there is no contradiction. The above also applies to the constituent elements of the methods defined in the claims. In other words, the order of the constituent elements may be changed as long as there is no contradiction. Furthermore, as long as there is no contradiction, multiple constituent elements may be executed simultaneously. The implementation of these constituent elements also falls within the technical scope defined in the claims. Furthermore, each step may be executed by an operating system or hardware. Furthermore, the program may be distributed in a state stored on a non-transitory medium.

[0140] The program and method for realizing the above-described embodiments can be executed by a computer having the hardware configuration shown in FIG. 36. That is, the program of the embodiments can be implemented as a method for causing a computer to execute the program. The program can be stored in the storage medium 4018, the ROM 4002, or the RAM 4003. Each embodiment can be implemented as a hardware device on which the program is installed. 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 scaling of the fisheye perspective ruler.

[0141] 4004 Bus 4005 Network interface 4006 Input interface 4007 Display interface 4008 External memory interface 4015 Network 4016 Input unit 4017 Display unit 4018 Storage medium

Claims

1. A perspective ruler display method in which a computer displays a perspective ruler placed on a flat canvas existing in a virtual three-dimensional space so 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 perspective ruler being placed on a flat canvas existing in a virtual three-dimensional space, the computer displaying the perspective ruler in such a way that the user draws a line on the canvas along the perspective ruler, the angle ∠OPW formed by a point O on the canvas, a point P placed on a line V that passes through the point O and intersects with the plane of the canvas at right angles, and a point W existing in the three-dimensional space is θ, and the distance between the point O and the point P is 1, the function f(θ,k) converts the coordinates of the point W to the coordinates of a point B on the canvas that is a distance f(θ,k) from the point O, the function f(θ,k) being within the range of 0≦θ<π / 2 within the range of θ used for conversion, and 2 (θ) and ∂f(θ, k) / ∂θ| θ=0 =R, and when the range of θ includes a region of π / 2 or more, determining a function f(θ, k) that satisfies f(θ, k)>0 ∂f(θ, k) / ∂θ≧0 within the range of θ that is π / 2≦θ≦π; transforming a straight line on said canvas or a figure existing in said three-dimensional space using said function f(θ, k) to obtain a curve having the same shape as a curve obtained by transforming a straight line using said function f(θ, k), and displaying a perspective ruler having said obtained curve, wherein k is a parameter that represents the strength of distortion of a fisheye lens representation in said perspective ruler, and R is a parameter that represents the overall expansion or contraction of said perspective ruler with said point O as its center.

2. The perspective ruler display method according to claim 1, wherein the point B exists on a straight line obtained by perpendicularly projecting a straight line connecting the point O and the point W onto the plane of the canvas.

3. The perspective ruler display method according to claim 1, wherein the point W is a point on the canvas, and displaying the perspective ruler comprises displaying a curved perspective ruler obtained by transforming a straight line on the canvas using the function f(θ, k).

4. The perspective ruler display method according to claim 3, wherein the point B exists on a straight line connecting the point O and the point W.

5. A method for displaying a perspective ruler as described in claim 1, comprising: forming a curved surface G having an axially symmetric shape with the straight line V as an axis; defining a point Q as the point where a straight line connecting the point P and the point W intersects with the curved surface G; defining a point D as the point where a straight line connecting point S on the straight line V, the point S being located on the opposite side of point O with respect to point P, and point Q intersects with the canvas; the value of k is proportional to the distance between point P and point S; and the value of the function f(θ, k) is proportional to the distance between point O and point D.

6. A method for displaying a perspective ruler as described in claim 1, comprising: forming a curved surface G having an axially symmetric shape with the straight line V as an axis; defining a point Q at which the straight line connecting the point P and the point W intersects with the curved surface G, defining a point on the straight line connecting the point P and the point W as point C, defining an angle between the plane of the canvas and vector OQ as α, and defining an angle between the plane of the canvas and vector OC as β, wherein the value of k is proportional to the value of β / α, and the value of the function f(θ, k) is proportional to the distance between the point O and the point C.

7. The method for displaying a perspective ruler according to claim 1, wherein the function f(θ, k) coincides with or approximates R*tan(θ) when the distortion strength k is a predetermined value.

8. A method for displaying a perspective ruler according to claim 1, wherein the function f(θ, k) coincides with or approximates at least one of the following when the distortion strength k is a predetermined value: 2*R*tan(θ / 2) which is a stereographic projection; R*θ which is an equidistant projection; 2*R*sin(θ / 2) which is an equisolid angle projection; and R*sin(θ) which is an orthogonal projection.

9. The method of displaying a perspective ruler according to claim 1, comprising: determining the coordinates of point B by applying different functions f(θ, k) 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 determine the coordinates of point B on the canvas.

10. The method for displaying a perspective ruler according to claim 1, wherein displaying the perspective ruler includes setting a distortion strength k and a scale factor R so as to keep the magnitude of the function f(π / 2, k) at a constant value.

11. The method for displaying a perspective ruler according to claim 1, wherein the function f(θ, k) is defined by the following formula: f(θ, k) = R * (k + 1) * sin(θ) / (k + cos(θ)), where 0 ≤ k ≤ ∞.

12. The perspective ruler display method according to claim 1, wherein the function f(θ, k) is defined by the following formula: f(θ, k) = R * sin(θ) / cos(θ - θ * k / 2), where 0 ≤ k ≤ 2.

13. A perspective ruler display method in which a computer displays a perspective ruler placed on a flat canvas so 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 distance between a point O on the canvas and a point W on the canvas being r, and a function g(r, k) converts the coordinates of the point W to the coordinates of a point B on the canvas that is a distance g(r, k) away from point O, where 0≦g(r, k)≦R*r 0≦∂g(r, k) / ∂r≦R ∂g(r, k) / ∂r| r=0 = R; converting straight lines on the canvas by the function g(r, k) to obtain a curved line, and displaying a perspective ruler having the obtained curved line, wherein k is a parameter representing the strength of distortion of a fisheye lens representation in the perspective ruler, and R is a parameter representing the overall expansion or contraction of the perspective ruler centered on the point O.

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 method for displaying a perspective ruler 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 method for displaying a perspective ruler 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