This application claims priority from Canadian Patent Application No. 2,386,702 filed May 17, 2002, and incorporated herein by reference.
The invention relates to the field of computer graphics processing, and more specifically to the inversion of distortions, including folds, in detail-in-context presentations in detail-in-context presentation systems.
Display screen are the primary visual display interface to a computer. One problem with these visual display screens is that they are limited in size, thus presenting a challenge to user interface design, particularly when larger amounts of information is to be displayed. This problem is normally referred to as the “screen real estate problem”.
Well-known solutions to this problem include panning, zooming, scrolling or combinations thereof. While these solutions are suitable for a large number of visual display applications, these solutions become less effective where the visual information is spatially related, such as maps, newspapers and such like. In this type of information display, panning, zooming and/or scrolling is not as effective as much of the context of the panned, zoomed or scrolled display is hidden.
A recent solution to this problem is the application of “detail-in-context” presentation techniques. Detail-in-context is the magnification of a particular region of interest (the “focal region”) in a data presentation while preserving visibility of the surrounding information. This technique has applicability to the display of large surface area media, such as maps, on limited size computer screens including personal digital assistance (PDA's) and cell phones.
In the detail-in-context discourse, differentiation is often made between the terms “representation” and “presentation”. A representation is a formal system, or mapping, for specifying raw information or data that is stored in a computer or data processing system. For example, a digital map of a city is a representation of raw data including street names and the relative geographic location of streets and utilities. Such a representation may be displayed visually on a computer screen or printed on paper. On the other hand, a presentation is a spatial organization of a given representation that is appropriate for the task at hand. Thus, a presentation of a representation organizes such things as the point of view and the relative emphasis of different parts or regions of the representation. For example, a digital map of a city may be presented with a region magnified to reveal street names.
In general, a detail-in-context presentation may be considered as a distorted view (or distortion) of a portion of the original representation where the distortion is the result of the application of a “lens” like distortion function to the original representation. A detailed review of various detail-in-context presentation techniques such as Elastic Presensation Space (“EPS”) may be found in a publication by Marianne S. T. Carpendale, entitled “A Framework for Elastic Presentation Space” (Carpendale, Marianne S. T., A Framework for Elastic Presentation Space (Burnaby, British Columbia: Simon Fraser University, 1999)), and incorporated herein by reference.
Development of increasingly powerful computing devices has lead to new possibilities for applications of detail-in-context viewing.
One shortcoming of the prior art detail-in-context presentation methods is their inability to effectively invert distortions in a detail-in-context presentation back to an original or undistorted presentation of the representation. The ability to perform such an inversion or inverse mapping would be of great value in extending the capabilities of detail-in-context presentations to applications such as image editing. For example, the editing of a focal region in a representation may be facilitated more easily in a distorted presentation rather than in an undistorted presentation.
The ability to perform an inverse mapping is also necessary for applications involving the subsequent distortion of a previously distorted presentation. In other words, inversion would allow a presentation system user to accurately position or reposition one or more distortion producing “lenses” within a given presentation that has already been distorted. Hence, the distorted presentation ultimately viewed by the user may be the end result of a series of distortion steps wherein the individual distortion steps are not known or are difficult to invert. In fact, the need for inversion arises whenever it is necessary to position a lens based on observed coordinates in the distorted presentation. This is so because the lens may be directly generated only from coordinate information in the undistorted presentation. As such, an inversion is necessary to produce the source coordinates for generating the lens.
Moreover, inversion provides a means to calculate real distances in an undistorted presentation based on locations within one or more lenses in a corresponding distorted presentation. For example, if a user wants to know the distance in the undistorted presentation between the focal points of two separate lenses in a corresponding distorted presentation of a map, such as the distance between a current location and a destination location, this distance can be computed via inversions of the focal points of these lenses.
Several systems are known which provide techniques for converting distorted or warped three-dimensional (3D) images into corrected, undistorted, or dewarped two-dimensional (2D) images. In U.S. Pat. No. 6,005,611, to Gullichsen, et al., a system is disclosed wherein a distorted image captured by a wide-angle or fisheye lens is corrected through the use of a specially generated polynomial transform function that maps points from the distorted image into rectangular points. A more complex transform function is described in U.S. Pat. No. 5,185,667, to Zimmerman. In U.S. Pat. No. 5,329,310, to Liljegern, et al., a similar objective is achieved in the context of motion picture images through the use of multiple lens (i.e. camera and projector) transfer functions. The result being the ability to project an image, taken from a particular point of view, onto a screen, especially a curved wide angle screen, from a different point of view, to be viewed from the original point of view, without distortion. In U.S. Pat. No. 5,175,808, to Sayre, a method and apparatus for non-affine image warping is disclosed that uses displacement tables to represent the movement of each pixel from an original location in a source image to a new location in a warped destination image. Through these displacement tables and a resampling method, the need for inversion of the underlying transform equation that specify the distortion or warp is eliminated. Finally, in U.S. Pat. No. 4,985,849, to Hideaki, look-up tables are used in combination with the forward evaluation of the transform equation in order to avoid the step of transform equation inversion. However, none of these systems disclose a method and system for inverting distortions in a manner that is optimized for detail-in-context presentations.
In U.S. patent application Ser. No. 09/932,088, assigned to the applicant of the present invention, a method and system for inverting distortions for detail-in-context presentations is disclosed. However, the method disclosed does not adequately invert distortions That include extreme “folding” as described by Carpendale. Folding occurs in a detail-in-context presentation, for example, when the applied distortion causes an undistorted surface of the presentation to be hidden by a portion of the distorted surface when viewed by a user on a computer display screen.
A need therefore exists for the effective inversion of distortions, including folds, in detail-in-context presentations in detail-in-context presentation systems. Consequently, it is an object of the present invention to obviate or mitigate at least some of the above mentioned disadvantages.
In general, the present invention provides for the effective inversion of distortions, including folds, in detail-in-context presentations in detail-in-context presentation systems.
According to one aspect of the invention, a method is provided for inverting a distorted surface presentation into an undistorted surface presentation in a detail-in-context presentation system. The method includes the steps of: (a) selecting an input point {right arrow over (p)}input on the undistorted surface; (b) calculating a vector {right arrow over (ν)} from the input point {right arrow over (p)}input to a reference viewpoint ν{right arrow over (r)}p; (c) locating a starting point {right arrow over (p)}i−1, the starting point {right arrow over (p)}i−1 lying above the distorted surface and on the vector {right arrow over (ν)}; (d) locating a first bracketing point {right arrow over (p)}, for a first intersection point of the vector {right arrow over (ν)} and the distorted surface, the first bracketing point {right arrow over (p)}, lying above the distorted surface and on the vector {right arrow over (ν)}; (e) locating a second bracketing point {right arrow over (p)}i−1 for the first intersection point, the second bracketing point {right arrow over (p)}i+1 lying below the distorted surface, and below the first intersection point, but above any subsequent intersection points of the vector {right arrow over (ν)} and the distorted surface; (f) locating a midpoint {right arrow over (p)}mid between the first and second bracketing points {right arrow over (p)}i, {right arrow over (p)}i+1; and, (g) determining if the midpoint {right arrow over (p)}mid is an acceptable approximation for the first intersection point; the acceptable approximation being an inversion point corresponding to the input point {right arrow over (p)}input.
According to another aspect of the invention, the method further includes the step of repeating steps (a) through (g) for remaining input points {right arrow over (p)}input.
Advantageously, the method may be applied to a distorted point that is acted on by a single lens including a lens having extreme “folding”. The present invention facilitates the location of the point in the undistorted data space which, when distorted, yields a specified point in the distorted data space. Then, if desired, the inverse mapping of the entire distorted space to the original undistorted data space can be obtained as the inverse mapping of the locus of the points in the distorted data space.
Embodiments of the invention may best be understood by referring to the following description and accompanying drawings. In the description and drawings, line numerals refer to like structures or processes. In the drawings:
FIG. 6(a) is a graphical representation of the geometry of a presentation illustrating the process of stepping towards the intersection point for a distorted surface without extreme folding, in accordance with an embodiment of the invention;
FIG. 6(b) is a graphical representation of the geometry of a presentation illustrating the process of stepping towards the intersection point for a distorted surface with extreme folding, in accordance with an embodiment of the invention;
FIG. 8(a) is a graph illustrating the field function F({right arrow over (p)}) along the domain of {right arrow over (ν)} for the lens of FIG. 6(a), in accordance with an embodiment of the invention;
FIG. 8(b) is a graph illustrating the field function F({right arrow over (p)}) along the domain of {right arrow over (ν)} for the lens of FIG. 6(b), in accordance with an embodiment of the invention; and,
In the following description, numerous specific details are set forth to provide a thorough understanding of the invention. However, it is understood that the invention may be practiced without these specific details. In other instances, well-known software, circuits, structures and techniques have not been described or shown in detail in order not to obscure the invention. In the drawings, like numerals refer to like structures or processes.
The term “data processing system”, is used herein to refer to any machine for processing data, including the computer systems and network arrangements described herein. The term “Elastic Presentation Space” (“EPS”) (or “Pliable Display Technology” (“PDT”)) is used herein to refer to techniques that allow for the adjustment of a visual presentation without interfering with the information content of the representation. The adjective “elastic” is included in the term as it implies the capability of stretching and deformation and subsequent return to an original shape. EPS graphics technology is described by Carpendale in “A Framework for Elastic Presentation Space” (Carpendale, Marianne S. T., A Framework for Elastic Presentation Space (Burnaby, British Columbia: Simon Fraser University, 1999)) which is incorporated herein by reference. In EPS graphics technology, a two-dimensional visual representation is placed onto a surface; this surface is placed in three-dimensional space; the surface, containing the representation, is viewed through perspective projection; and the surface is manipulated to effect the reorganization of image details. The presentation transformation is separated into two steps: surface manipulation or distortion and perspective projection.
Referring to
Referring to
To reiterate, EPS refers to a collection of know-how and techniques for performing “detail-in-context viewing” (also known as “multi-scale viewing”and “distortion viewing”) of information such as images, maps, and text, using a projection technique summarized below. EPS is applicable to multidimensional data and is well suited to implementation on a computer for dynamic detail-in-context display on an electronic display surface such as a monitor. In the case of two dimensional data, EPS is typically characterized by magnification of areas of an image where detail is desired, in combination with compression of a restricted range of areas of the remaining information (the “context”), the end result typically giving the appearance of a lens having been applied to the display surface. EPS has numerous advantages over conventional zoom, pan, and scroll technologies, including the capability of preserving the visibility of information outside the local region of interest.
In general, in EPS, The source image to be viewed is located in the basal plane. Magnification and compression are achieved through elevating elements of the source image relative to the basal plane, and then projecting the resultant distorted surface onto the reference view plane. EPS performs detail-in-context presentation of n-dimensional data through the use of a procedure wherein the data is mapped into a region in an (n+1) dimensional space, manipulated through perspective projections in the (n+1) dimensional space, and then finally transformed back into n-dimensional space for presentation.
For example, and referring to
System. Referring to
Method. Referring to
Referring to
Referring to
Referring to FIG. 6(a), there is shown a graphical representation 600 of the geometry of a presentation illustrating the process of stepping towards the intersection point 420 for a distorted surface 230 without extreme folding, in accordance with an embodiment of the invention. Two bracketing points 610, including an upper bracketing point 611 and a lower bracketing point 612, are found which can then be used in a bisection process to find the intersecting point 420. Referring to FIG. 6(b), there is shown a graphical representation 605 of the geometry of a presentation illustrating the process of stepping towards the intersection point 420 for a distorted surface 230 with extreme folding, in accordance with an embodiment of the invention. Extreme folding occurs in a detail-in-context presentation, for example, when the applied distortion 230 causes an undistorted surface 210 of the presentation to be hidden by a portion of the distorted surface 640 when viewed by a user on a computer display screen 340. If a lens has undergone extreme folding, then the lower bracketing point 612 may be missed in the stepping process. If this occurs, then step refinement is used to decrease the magnitude of the step size 630.
Beginning at a starting point 620 on {right arrow over (ν)} that lies above 510 the distorted surface 230, an initial step size 630 is used to step along {right arrow over (ν)} towards the distorted surface 230. The field function is evaluated at each point along {right arrow over (ν)} and the sign of the result is compared with the sign of the field function evaluation for the previous point. If the comparison yields opposite signs, then two points 610 have been obtained that bracket the intersecting point 420. If the comparison yields the same signs, then one of two instances will have occurred. In the first instance, a point has been obtained that is still above 510 the surface 230 and the stepping process may continue. In the second instance, a point has been obtained that falls below a folded cusp 640 of the distorted surface 230 that may result due to extreme folding. This phenomenon will be referred to as “overstepping” 650. Overstepping 650 occurs if the step size 630 is too large resulting in the lower bracketing point 612 being missed (i.e. overstepped) in the stepping process. If this occurs, then the step size 630 is reduced to avoid missing the lower bracketing point 612. Once the bracketing points 610 have been obtained, then a bisection search is used to locate the intersecting point. This search will be described in more detail below.
Referring to
Referring to FIG. 8(a), there is shown a graph 800 illustrating the field function F({right arrow over (p)}) along the domain of {right arrow over (ν)} for the lens 230 of FIG. 6(a), in accordance with an embodiment of the invention.
Referring to FIG. 8(b), there is shown a graph 805 illustrating the field function F({right arrow over (p)}) along the domain of {right arrow over (ν)} for the lens 230 of FIG. 6(b), in accordance with an embodiment of the invention. The graph shown in FIG. 8(a) has one root 420 that corresponds to the single intersection of {right arrow over (ν)} with the surface 230 illustrated in FIG. 6(a). The graph shown in FIG. 8(b) has three roots 420 since {right arrow over (ν)} intersects the surface 230 in FIG. 6(b) three times.
To converge on the correct root 420, it is essential that a good starting point 620 for initiating the stepping process be chosen. Since it is desired to converge on the root 420 that has the largest z value (i.e. the bracketed root 421 in FIG. 8(b)), a starting point {right arrow over (p)}0 that has a larger z value than this root 420 is chosen. Referring to
where h is the height of the lens 230 and step is a predetermined initial step size 630.
The stepping process is initiated with {right arrow over (p)}0. In general, given a point {right arrow over (p)}i on {right arrow over (ν)}, the next point on {right arrow over (ν)} is {right arrow over (p)}i+1={right arrow over (p)}i+step·{right arrow over (ν)}. The field function F({right arrow over (p)}) is evaluated at {right arrow over (p)}i+1 and {right arrow over (p)}i+1. If the evaluations yield the same signs for {right arrow over (p)}i and {right arrow over (p)}i+1, then one of two instances will have occured. In the first instance, a point has been obtained that is still above 510 the distorted surface 230 and the stepping process may continue. In the second instance, a point has been obtained that falls below the cusp 640 of a folded lens 230 resulting in overstepping 650. The field function results at {right arrow over (p)}i and {right arrow over (p)}i+1 (i.e. F({right arrow over (p)}) and F({right arrow over (p)}i+1), respectively) and the slopes at {right arrow over (p)}i and {right arrow over (p)}i+1 (i.e. F′({right arrow over (p)}i) and F′({right arrow over (p)}i+1), respectively) can be used to determine whether the first or second instance has occurred. If the sign of F′({right arrow over (p)}i) is equal to the sign of F′({right arrow over (p)}i+1) and, at the same time, the sign of F({right arrow over (p)}i) is equal to the sign of F({right arrow over (p)}i+1), then the first instance has occurred and both points are still above the surface. If the sign of F′({right arrow over (p)}i) is not equal to the sign of F′({right arrow over (p)}i+1) and, at the same time, the sign of F({right arrow over (p)}i+1) is equal to the sign of F({right arrow over (p)}i+1), then overstepping has occurred. If overstepping occurs then the step size 630 must be refined (i.e. decreased in magnitude) until these overstepping conditions evaluate to false. Referring to FIG. 8(b), when these conditions evaluate to false, then two points 611, 612 have been found that bracket the intersection point 420. Once two points 611, 612 have been found that bracket the intersection point 420 (i.e. when the field function evaluations at {right arrow over (p)}i and {right arrow over (p)}i+1 return opposite signs), then a bisection search can be used to calculate the intersection point 420.
Referring to
Referring to
and back-project this midpoint {right arrow over (p)}mid along {right arrow over (d)} onto the baseplane 210 to get a point {right arrow over (p)}midback. Let D2({right arrow over (p)}midback) denote the two-dimensional PDT distortion of {right arrow over (p)}midback. The point {right arrow over (p)}mid is a good approximation to the intersection point 420 if ∥D2({right arrow over (p)}midback)−{right arrow over (p)}input∥<ε, where ε is small. If this condition is false, then the bisection search continues with either {right arrow over (p)}i and {right arrow over (p)}mid or with {right arrow over (p)}i+1 and {right arrow over (p)}mid until the condition is met. When a good approximation of the intersection point 420 is found, then the corresponding back-projection of this approximation is returned as the undisplaced result for {right arrow over (p)}input 410.
Referring to
At step 1001, the method starts.
At step (a), an input point {right arrow over (p)}input on the undistorted surface is selected.
At step (b), a vector {right arrow over (ν)} from the input point {right arrow over (p)}input to the reference viewpoint v{right arrow over (r)}p is calculated.
At step (c), a starting point {right arrow over (p)}0 620 is located by adding to the input point {right arrow over (p)}input the vector {right arrow over (ν)} scaled by a predetermined step value step added to a ratio of the height h and a z-axis component of the vector {right arrow over (ν)} that is, {right arrow over (p)}0={right arrow over (p)}input+(h/νz+step) {right arrow over (ν)}. The starting point {right arrow over (p)}0 lies above the distorted surface and on the vector {right arrow over (ν)}. The starting point may be designated {right arrow over (p)}i−1.
At step (d), a first bracketing point {right arrow over (p)}i 611 for a first intersection point of the vector {right arrow over (ν)} and the distorted surface is located by subtracting from the starting point {right arrow over (p)}i−1 the vector {right arrow over (ν)} scaled by a predetermined step value step, that is, {right arrow over (p)}i={right arrow over (p)}i−1−step·{right arrow over (ν)}. The first bracketing point {right arrow over (p)}i lies above the distorted surface and on the vector {right arrow over (ν)}. Note that this step is optional in that the first bracketing point {right arrow over (p)}i may be set equal to the starting point {right arrow over (p)}i−1.
At step (e), a second bracketing point {right arrow over (p)}i+1 612 for the first intersection point is located by subtracting from the first bracketing point {right arrow over (p)}i the vector {right arrow over (ν)} scaled by a predetermined step value step, that is, {right arrow over (p)}i+1={right arrow over (p)}i−step·{right arrow over (ν)}. The second bracketing point {right arrow over (p)}i+1 lies below the distorted surface, and below the first intersection point, but above any subsequent intersection points of the vector {right arrow over (ν)} and the distorted surface. In other words, the first bracketing point {right arrow over (p)}i and the second bracketing point {right arrow over (p)}i+1 are located to bracket the first intersection point 421. In general, the first and second bracketing points are located by iteration.
To determine if the first and second bracketing points do bracket the first intersection point, the following steps are performed;
If the first bracketing point {right arrow over (p)}i and the second bracketing point {right arrow over (p)}i+1 do not bracket the first intersection point, that is, SIGN(F({right arrow over (p)}i))=SIGN(F({right arrow over (p)}i+1)), then either the second bracketing point {right arrow over (p)}i+1 lies above the distorted surface or the second bracketing point {right arrow over (p)}i+1 has overstepped the distorted surface. In the first case, new first and second bracketing points are located by redefining the second bracketing point {right arrow over (p)}i+1 as the first bracketing point {right arrow over (p)}i and repeating step (e). In the second case, a new second bracketing point {right arrow over (p)}i+1 is located by reducing the predetermined step value step by a predetermined amount and repeating step (e).
To determine if the second bracketing point {right arrow over (p)}i+1 lies above the distorted surface, the following steps are performed:
To determine if the second bracketing point {right arrow over (p)}i+1 has overstepped the distorted surface, the following steps are performed:
At step (f), a midpoint {right arrow over (p)}mid between the first and second bracketing points {right arrow over (p)}i, {right arrow over (p)}i+1 located by adding the first and second bracketing points {right arrow over (p)}i, {right arrow over (p)}i+1 and dividing by two, that is,
At step (g), a determination if the midpoint {right arrow over (p)}mid is an acceptable approximation for the first intersection point is made by:
At step 1002, the method ends.
Finally, steps (a) through (g) may be repeated for remaining input points {right arrow over (p)}input.
Data Carrier Product. The sequences of instructions which when executed cause the method described herein to be performed by the exemplary data processing system of
Computer Software Product. The sequences of instructions which when executed cause the method described herein to be performed by the exemplary data processing system of
Integrated Circuit Product. The sequences of instructions which when executed cause the method described herein to be performed by the exemplary data processing system of
Although preferred embodiments of the invention have been described herein, it will be understood by those skilled in the art that variations may be made thereto without departing from the spirit of the invention or the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2386702 | May 2002 | CA | national |
Number | Name | Date | Kind |
---|---|---|---|
4985849 | Hideaki | Jan 1991 | A |
5175808 | Sayre | Dec 1992 | A |
5185667 | Zimmermann | Feb 1993 | A |
5329310 | Liljegren et al. | Jul 1994 | A |
6005611 | Gullichsen et al. | Dec 1999 | A |
Number | Date | Country | |
---|---|---|---|
20030231177 A1 | Dec 2003 | US |