1. Field of the Invention
The present invention generally relates to an image processing apparatus, a mark drawing method and a recording medium storing a mark drawing program which can be applied to an apparatus such as a car navigation apparatus.
2. Description of the Related Art
A car navigation apparatus which displays the position and the moving direction of a car and so forth on a map on a display in the car has been widely used, and as the map on the display, a three-dimensional (3D) map which meets recent high technology standards is in demand. In the 3D map, 3D buildings are also displayed on the display while 3D roads are displayed.
On the display of the car navigation apparatus, in addition to the roads and the buildings, icons of many objects such as stores like gas stations, a destination, and a name and letters of the destination are displayed. When the objects are displayed on the 3D map, the following two methods are generally used.
(1): a space coordinate showing the position of an object is displayed on a displaying screen and a mark such as an icon having a fixed size of the object is displayed as a 2D image on the space coordinate.
(2): an object is displayed as a 3D image on a space coordinate showing the position of the object (refer to Patent Document 1).
[Patent Document 1] Japanese Laid-Open Patent Application No. 9-319302
However, in the above method (1), since many icons, names, and letters are overlapped on a displaying screen, an object is hardly distinguished. In addition, since each icon has a fixed size, depth perception of the object is hardly obtained.
In addition, in the above method (2), since the object is in the 3D space, depth perception is obtained; however, when the object is a long distance from a view point, the object becomes too small and cannot be noticed. On the contrary, in a case where an object is a long distance from a car and the size of the object is made to be large enough so as to be noticeable, when the car comes near the object, the object becomes too large in the displaying screen and obstructs the total view. Therefore, the method (2) is effective when the displaying area is small and is not suitable when the displaying area is large.
Accordingly, the present invention may provide an image processing apparatus, a mark drawing method, and a recording medium storing a mark drawing program in which notice-ability of objects on a 3D map can be improved by controlling the two-dimensional sizes of the objects and controlling the number of objects to be displayed by utilizing distance difference from a view point while depth perception of the 3D space is maintained.
Features and advantages of the present invention are set forth in the description which follows, and in part will become apparent from the description and the accompanying drawings, or may be learned by practice of the invention according to the teachings provided in the description. Features and advantages of the present invention may be realized and attained by an image processing apparatus, a mark drawing method, and a recording. medium storing a mark drawing program particularly pointed out in the specification in such full, clear, concise, and exact terms as to enable a person having ordinary skill in the art to practice the invention.
According to one aspect of the present invention, there is provided an image processing apparatus which displays a 3D (three-dimensional) map including a road and a building on a display. The image processing apparatus includes a determining unit that determines whether a distance between a view point which determines a visual field on a display and a 2D (two-dimensional) object to be displayed belongs to any of first through fourth areas which are classified in the order from a shortest distance to a longest distance; a first setting unit that sets an image drawing size of the 2D object on the display to be a maximum value when the distance between the view point and the 2D object is in the first area; a second setting unit that sets the image drawing size of the 2D object on the display to be a value which continuously changes from the maximum value to a minimum value corresponding to the distance when the distance between the view point and the 2D object is in the second area; a third setting unit that sets the image drawing size of the 2D object on the display to be the minimum value when the distance between the view point and the 2D object is in the third area; a fourth setting unit that sets not to display the 2D object on the display when the distance between the view point and the 2D object is in the fourth area; and an image drawing unit that two-dimensionally displays the 2D object whose image drawing size is set on the display.
According to another aspect of the present invention, the image processing apparatus further includes a leg indicator drawing unit that draws a leg indicator which has a length corrected from a maximum length determined in each of the kinds of 2D objects based on the depression angle from the view point to the 2D object, and has an inverse triangular shape whose upper end contacts the 2D object and whose lower end indicates the point where the 2D object exists.
According to another aspect of the present invention, the 2D object which is set not to display by the fourth setting unit is displayed at a position corresponding to the existence of the 2D object on the horizon with the minimum image drawing size on the display when the 2D object is a specific spot which is registered by a user.
According to another aspect of the present invention, there is provided an image processing apparatus which displays a 3D map including a road and a building on a display. The image processing apparatus includes a determining unit that determines whether a distance between a view point which determines a visual field on a display and a 3D object to be displayed belongs to any of first through fourth areas which are classified in the order from a shortest distance to a longest distance; a first setting unit that sets an image drawing scale of the 3D object on a 3D space to be a minimum value when the distance between the view point and the 3D object is in the first area; a second setting unit that sets the image drawing scale of the 3D object on the 3D space to be a value which continuously changes from a maximum value to the minimum value corresponding to the distance when the distance between the view point and the 3D object is in the second area; a third setting unit that sets the image drawing scale of the 3D object on the 3D space to be the maximum value when the distance between the view point and the 3D object is in the third area; a fourth setting unit that sets not to display the 3D object on the 3D space when the distance between the view point and the 3D object is in the fourth area; and an image drawing unit that three-dimensionally displays the 3D object whose image drawing scale is set on the display.
According to another aspect of the present invention, a mark drawing method in an image processing apparatus which displays a 3D map including a road and a building on a display can be realized.
According to another aspect of the present invention, a recording medium storing a mark drawing program in an image processing apparatus which displays a 3D map including a road and a building on a display can be realized.
According to an embodiment of the present invention, in an image processing apparatus, a mark drawing method, and a recording medium storing a mark drawing program, notice-ability of objects on a 3D map can be improved by controlling the two-dimensional sizes of the objects and controlling the number of objects to be displayed by utilizing distance difference from a view point while depth perception of the 3D space is maintained.
Features and advantages of the present invention will become apparent from the following detailed description when read in conjunction with the accompanying drawings.
In the following, a preferred embodiment of the present invention is described with reference to the accompanying drawings.
In the embodiment, a case where the present invention is applied to a car navigation apparatus is described.
In addition, the car navigation apparatus 100 includes a distant view drawing section 108, a map drawing section 109, a mark image drawing section 111, an operating screen drawing section 112, a route search processing section 113, a navigating route drawing section 114, and a VRAM (video random access memory) 115. The distant view drawing section 108 draws a distant view image in the VRAM 115 based on the 3D map information obtained from the data buffer 103 and the car position information obtained from the car position calculating section 107. The map drawing section 109 draws a map image of roads and 3D buildings in the VRAM 115 based on the 3D map information obtained from the data buffer 103. The mark image drawing section 111 draws images of objects to be displayed such as icons in the VRAM 115 based on the 3D map information obtained from the data buffer 103. The operating screen drawing section 112 draws an operating screen image in the VRAM 115 based on the 3D map information obtained from the data buffer 103. The route search processing section 113 searches for a most suitable route to a destination received from a user based on the 3D map information obtained from the data buffer 103 and the car position information obtained from the car position calculating section 107. The navigating route drawing section 114 draws a navigating route image in the VRAM 115 based on the search result from the route search processing section 113. In addition, the car navigation apparatus 100 includes an image outputting section 116 which outputs the distant view image, the map image, the object image, the operating screen image, and the navigating route image; and a display 117 which displays a composite image of the above images.
In
X is a distance between a view point coordinate (camera) and a space coordinate (two-dimensional coordinate) of an object to be displayed.
L1 is a distance within which the image drawing size of the object to be displayed does not become larger even if the view point approaches the object.
L2 is a distance beyond which the image drawing size of the object to be displayed does not become smaller even if the view point leaves from the object.
L3 is a distance beyond which no object is displayed. That is, there is the following relationship; X≧0, 0<L1<L2<L3.
Further, in
S is the image drawing size of an object to be displayed.
Smin is the minimum image drawing size of the object which is noticeable on the displaying screen 1.
Smax is the maximum image drawing size of the object which does not obstruct the view of the whole screen.
Next, the areas A1 through A4 are described.
Area A1(X<L1)
A1 is an area where an object is displayed with the maximum image drawing size. The maximum image drawing size of the object is maintained on the displaying screen 1 and the maximum image drawing size does not obstruct the whole screen. The maximum image drawing size is Smax as described above.
Area A2(L1<X<L2)
A2 is an area where the image drawing size of the object is enlarged or reduced. The depth perception is obtained by changing the image drawing size corresponding to the distance X. The changing range of the image drawing size is Smax<S<Smin.
Area A3(L2<X<L3)
A3 is an area where the object is displayed with the minimum image drawing size. The minimum image drawing size of the object is maintained on the displaying screen 1 and the minimum image drawing size is Smin and is a noticeable size.
Area A4(X≧L3)
A4 is an area no object is displayed and the furthest area on the displaying screen 1. Further, A4 is an area that prevents many objects from being displayed
In
In
“θ” is the depression angle of the view point (camera).
“h” is the length of the leg indicator which is changed by the depression angle θ.
Each object always faces the view point and the maximum length of the leg indicator is hmax, and when the depression angle θbecomes large, the length “h” becomes small. In this, the maximum length hmax of the leg indicator is determined by the kinds of objects. Specifically, the length “h” of the leg indicator is determined by multiplying the maximum length hmax by cos θ, and corresponds to a length when a 2D object is viewed by the depression angle θ. In
First, displaying data of an object to be displayed are read from the data buffer 103 (step S1), and the displaying coordinate (displaying position) of the object is detected (step S2). The distance X between the displaying coordinate and the view point position is calculated (step S3). Next, it is determined whether L2≦X<L3 is satisfied, that is, whether the object is in the area A3 (step S4). When the object is in the area A3 (YES in step S4), the image drawing size of the object is set to be Smin (step S5). When the object is not in the area A3 (NO in step S4), it is determined whether X<L1 is satisfied, that is, whether the object is in the area A1 (step S6). When the object is in the area A1 (YES in step S6), the image drawing size of the object is set to be Smax (step S7). When the object is not in the area A1 (NO in step S6), it is determined whether L1≦X<L2 is satisfied, that is, whether the object is in the area A2 (step S8). When the object is in the area A2 (YES in step S8), the image drawing size of the object is set to be a value which continuously changes from the maximum value Smax to the minimum value Smin, corresponding to the distance X (step S9). When the object is not in the area A2 (NO in step S8), the image drawing of the object is not performed by considering X≧L3 (step S10), and the process returns to step S1. By the setting in steps S5, S7, and S9, the image drawing size S is determined (step S111).
Next, the maximum length hmax of the leg indicator of each object to be displayed is detected (step S12), and the length “h” of the leg indicator is calculated by using the depression angle θfrom the view point (step S13). Next, it is determined whether the length “h” of the leg indicator is larger than the-maximum length hmax (step S14). When the length “h” of the leg indicator is larger than the maximum length hmax (YES in step S14), the maximum length hmax is set to be the length “h” (step S15) and the length “h” is determined (step S16). When the length “h” of the leg indicator is not larger than the maximum length hmax (NO in step S14), the length “h” is determined as it is by using the depression angle θ(step S16). Then, the object to be displayed and the leg indicator are two-dimensionally displayed on the displaying screen 1 based on the determined image drawing size S and the length “h” of the leg indicator (step S17).
As described above, since a 2D object such as an icon, which is positioned near the view point, is drawn by a maximum image drawing size which is a fixed size, even if a car approaches the object, the icon does not become too large and does not obstruct the whole screen. In addition, when the car is a long distance from an object, the object is displayed with a noticeable minimum image drawing size; therefore, a case where a user of the car cannot recognize the object due to a too-small size of the object does not occur. In addition, when the object is in a middle distance from the car, since the image drawing size is changed corresponding to the distance between the object and the car, depth perception can be obtained. Further, if the object is far from a predetermined distance, the object is not displayed; therefore, displaying too many objects can be avoided. In addition, when the object is displayed with the leg indicator, the length of the leg indicator is changed by the depression angle from the view point; therefore, a visual effect similar to a 3D effect can be obtained and the displaying position (indicating position) of the object can be easily recognized. Further, since the length of the leg indicator is different from among the kinds of objects to be displayed, the kind of object can be easily recognized by the floating height above the surface of the earth.
Next, a 3D object to be displayed is described.
In
X is a distance between a view point coordinate (camera) and a space coordinate (two-dimensional coordinate) of an object to be displayed.
L1′ is a distance within which the image drawing scale of the object is not decreased even if the view point approaches the object.
L2′ is a distance beyond which the image drawing scale of the object is not increased even if the view point leaves the object.
L3′ is a distance beyond which no object is displayed. That is, there is the following relationship; X≧0, 0<L1′<L2′<L3′.
Further, in
SC is an image drawing scale of an object to be displayed.
SCmin is the optimal minimum image drawing scale of the object on the displaying screen 1.
SCmax is the optimal maximum image drawing scale of the object on the displaying screen 1.
Next, the areas A1′ through A4′ are described.
Area A1′(X<L1′)
A1′ is an area where the image drawing scale of an object to be displayed is set to be an optimal minimum scale and maintains the optimal minimum image drawing scale even when a car approaches the object. That is, in the area A1′, the image drawing size of the object is maintained not to become too large. At this time, the image drawing scale is SCmin. Since the image drawing scale is not changed, when the car approaches the object, the object gradually becomes large and also the height of the object gradually becomes large under the optimal minimum image drawing scale. That is, depth perception can be obtained.
Area A2′(L1′≦X<L2′)
A2′is an area where the image drawing scale of the object is changed corresponding to the displaying position of the object. That is, the image drawing scale of the object is changed corresponding to the distance X of the object; then, the size of the object is noticeable as almost the same size as in the area. The changing range of the image drawing scale is SCmin<SC<SCmax. When the car approaches the object, the image drawing scale is changed together with the distance; therefore, the size of the object is maintained as almost the same size in the displaying screen 1.
Area A3′(L2′≦X<L3′)
A3′ is an area where the image drawing scale is set to be an optimal maximum scale and maintains the optimal maximum image drawing scale even when a car leaves the object. The object is displayed on the 3D map with an extremely large size; therefore, the object is noticeable even if the object is a long distance from the car. At this time, the image drawing scale is Smax. Since the optimal maximum image drawing scale is used, when the car approaches the object, the object gradually becomes large and also the height of the object of the object gradually becomes high. Therefore, depth perception can be obtained.
Area A4′(X≧L3′)
A4′ is an area where no object is. displayed. The destination object should be displayed even if the object is a great distance from the car; however, there is actually an upper limit in the displaying distance. Therefore, in this case, the upper limit is provided.
In
First, displaying data of an object to be displayed are read from the data buffer 103 (step S21), and the displaying coordinate (displaying position) of the object is detected (step S22). The distance X between the displaying coordinate and the view point position is calculated (step S23). Next, it is determined whether L2′≦X<L3′ is satisfied, that is, whether the object is in the area A3′(step S24). When the object is in the area A3′(YES in step S24), the image drawing scale of the object is set to be SCmax (step S25). When the object is not in the area A3′(NO in step S24), it is determined whether X<L1′ is satisfied, that is, whether the object is in the area A1′(step S26) . When the object is in the area A1′(YES in step S26), the image drawing scale of the object is set to be SCmin (step S27). When the object is not in the area A1′(NO in step S26), it is determined whether L1′≦X<L2′ is satisfied, that is, whether the object is in the area A2′(step S28). When the object is in the area A2′(YES in step S28), the image drawing scale of the object is set to be a factor which continuously changes from the maximum value SCmax to the minimum value SCmin corresponding to the distance X (step S29). When the object is not in the area A2′(NO in step S28), the drawing image of the object is not performed by considering X≧L3′(step S30), and the process returns to step S21. By the settings in steps S25, S27, and S29, the image drawing scale SC is determined (step S31). Based on the determined image drawing scale SC, the object is three-dimensionally displayed on the displaying screen 1 (on the map) (step S32).
As described above, in the 3D object to be displayed such as the destination object, when the object is a long distance from the view point, the image drawing scale is set to be the maximum image drawing scale. With this, the destination object is displayed relatively larger than other objects and can be easily noticed. In addition, when the object is near the view point, the image drawing scale is set to be the minimum image drawing scale. With this, the destination object is prevented from being displayed with a too large size. Further, in the middle of the distance, the image drawing scale is changed corresponding to the distance; therefore, the image drawing size can be maintained with almost the same size.
Next, examples of image drawing of a mark such an icon are described.
Next, an example of image drawing of a destination object as a 3D object to be displayed is described.
In the embodiment, the present invention is applied to a car navigation apparatus. However, the present invention can be applied to a portable navigation apparatus, a simulator, a game, and so on.
Further, the present invention is not limited to the embodiment, but variations and modifications may be made without departing from the scope of the present invention.
The present invention is based on Japanese Priority Patent Application No. 2005-208756, filed on Jul. 19, 2005, with the Japanese Patent Office, the entire contents of which are hereby incorporated by reference.
Number | Date | Country | Kind |
---|---|---|---|
2005-208756 | Jul 2005 | JP | national |