1. Field of the Invention
This invention relates to an image display device, image display method, and image display program wherein an image in a specified region on a displayed image is enlarged and displayed in an enlarged display region on the displayed image. More particularly, the present invention relates to a technique that can adjust the brightness of an image in a region to be enlarged so that the enlarged image has a higher contrast than the original image before being enlarged.
2. Description of the Related Art
Conventionally, exemplary known approaches through which an image in a specified region on a displayed image is enlarged in an enlarged display region on the displayed image include a utility called magnifier. As shown in
In addition, there is a known function for improving visual recognition of an overall displayed image, which is called high contrast. As shown in
Published Unexamined Japanese Patent Application No. 7-334665 discloses an image display technique for enlarging a specific region of an image and reducing other regions surrounding the specific region based on image data, wherein the enlarged display region has a different display mode from the surrounding region. The display mode can be made different by emphasizing the luminance, changing the color, or displaying more detailed information in the specific region, or by displaying the specific region without any change and the surrounding region dimly.
However, with the above described magnifier utility, simply enlarging an image may not enough to improve visual recognition of letters and so on. In that case, using the above described high contrast function may rather hinder the recognition, since it changes the colors of an overall screen and causes the loss of original image information. Since letters, etc., on a bitmap image do not change, visual recognition of them is not improved. That is, the improvement of visual recognition is limited to that obtained by enlargement. In addition, using the technique of Published Unexamined Japanese Patent Application No. 7-334665 to emphasize the luminance, change the color, or display detailed information does not improve visual recognition of graphics in the enlarged display region, since the technique only facilitates differentiation of the enlarged display region from the surrounding region.
In view of these problems of conventional techniques, the object of this invention is to provide a technique for enlarging, in an enlarged display region, an image in a specified region to be enlarged to improve visual recognition of graphics such as in the enlarged image.
To achieve the above object, an image display device according to the invention comprises an image display means for displaying on a screen an image based on image data; a region indicator means for instructing an enlarged region to be subjected to an enlarged display in the displayed image; and a data modification means for modifying data parts corresponding to an enlarged display region within the image data so that an image within the enlarged region is to be enlarged and displayed in a predetermined enlarged display region on the screen, wherein the data modification means further comprises a brightness adjusting means for adjusting values instructing brightness of the corresponding image data part such that a contrast of the image within the enlarged display becomes higher than a contrast of an original image within the enlarged region.
An image display method according to the invention comprises an image display step of displaying on a screen an image based on image data; a region indication step of instructing an enlarged region to be subjected to an enlarged display in the displayed image; and a data modification step of modifying data parts corresponding to an enlarged display region within the image data so that an image within the enlarged region is to be enlarged and displayed in a predetermined enlarged display region on the screen, wherein the method further comprises a brightness adjusting step of adjusting values instructing brightness of the corresponding image data part such that a contrast of the image within the enlarged display becomes higher than a contrast of an original image within the enlarged region.
An image display program according to the invention causes a computer to function as an image display means for displaying on a screen an image based on image data; a region indicator means for instructing an enlarged region to be subjected to an enlarged display in the displayed image; and a data modification means for modifying data parts corresponding to an enlarged display region within the image data so that an image within the enlarged region is to be enlarged and displayed in a predetermined enlarged display region on the screen, wherein the data modification means further comprises a brightness adjusting means for adjusting values instructing brightness of the corresponding image data part such that a contrast of the image within the enlarged display becomes higher than a contrast of an original image within the enlarged region.
In these embodiments, the position of the enlarged display region may be fixed at a predetermined place on the screen independent of the position of the enlarged region, or may be changed depending on the position of the enlarged region in a fixed positional relationship with the enlarged region. In the latter case, the enlarged region may be either inside or outside the enlarged display region. A pointing device may be used to indicate a point having a certain relationship with the enlarged region of a fixed shape and dimension, or to indicate two points that define the rectangular enlarged region.
In these embodiments, when an image is displayed on the screen and if the enlarged region is indicated, a portion corresponding to the enlarged display region is modified in the image data used for image display. This modification is made so that the original image in the enlarged region is enlarged and displayed in the enlarged display region. Here, the values of brightness of the corresponding image data portion are also changed so that the enlarged image has a higher contrast than the original image before being enlarged. Therefore, the enlarged image is displayed in the enlarged display region with a higher contrast than that of the original image, which provides improved recognition of letters and so on in the enlarged image.
In these embodiments, the values of brightness may be adjusted by changing each value of brightness using a function represented by a predetermined line (a straight line or a curve) on a graph where a horizontal axis indicates values of brightness before change and a vertical axis indicates values of brightness after change. Alternatively, the brightness can be adjusted by changing each value of brightness in other equivalent manners, such as using a matching table that contains values of brightness before change and their corresponding values after change.
If the image data is in RGB format, the values of brightness may be RGB values of the image data. In this case, the values of brightness may be adjusted by performing the above described change on the RGB values of each image data item concerned.
The values of brightness are preferably adjusted in consideration of the brightness of the original image in the enlarged region. For example, instead of using the above described function as it is, a function may be used that is obtained by shifting the above described function parallel in the direction of the horizontal axis based on the average value of brightness of the image data for the original image in the enlarged region.
An exemplary line representing the above described function may be a line that has a straight segment having a gradient equal to or above 1, and this straight segment may be obtained in such a manner that a function line having a gradient of 1 and causing no change in the values of brightness is rotated about a point on the function line corresponding to the midpoint of the values of brightness. Another exemplary line that may be used has segments corresponding to both ends of the range of the values of brightness where the gradient is above 0 and below 1, and a segment in between these segments where the gradient is equal to or above 1.
The graphics board 4 includes video memory (VRAM) 8 for storing image data used for image display on the display 3. In an on-screen area in the video memory 8, image data with color information for each dot of the display 3 is stored in an address location for the dot. The graphics board 4 periodically sends the image data in the on-screen area to the display 3 for displaying images. The color information for each dot is composed of R (red), G (green), and B (blue) components, each of which having a value from 0 to 255 indicating a degree of brightness or intensity of the color.
In this configuration, when an image is displayed on the screen 21, and if the magnifier program is started and the position of the region to be enlarged 23 is indicated by the region indicator component 27, the image data portion 26 for the enlarged display region 24 is modified by the data modification component 28. This modification is made so that the original image represented by the image data portion 25 for the region to be enlarged 23 is enlarged and displayed in the enlarged display region 24. That is, the image data portion 25 is modified into an enlarged data image by increasing the number of its pixels, and the image data portion 26 is overwritten by the enlarged image data. Here, the values of brightness of the image data, i.e., the RGB values, are also changed so that the image provided from the generated image data portion 26 has a higher contrast than the image represented by the image data portion 25 before being enlarged. This increases the contrast of the enlarged image in the enlarged display region 24 and improves visual recognition of letters and so on. Nevertheless, no change is made to the portion outside of the enlarged display region 24 on the screen 21. Thus, the user can enlarge and view the displayed image on the screen 21 in a natural manner as if the user enlarges the image on a paper with a real magnifier and illuminates the enlarged image to view it with an increased contrast.
When the enlarged display region 24 is moved, the portion of the display on the screen 21 that has been hidden by the enlarged display region 24 and that corresponds to the amount of movement has to be displayed in the original state without being enlarged. Therefore, the corresponding portion of the image data 22 has to be recovered. Thus, the image data for the recovery has to be saved before the corresponding portion becomes hidden by the enlarged display region 24, i.e., before it is overwritten by the image data portion 26. The image data portion 25, from which the image data portion 26 is generated, may be extracted from such saved image data.
In particular, when a mouse message is received, the computer determines whether the message is about moving the magnifier or not according to the magnifier program in Step 31. The magnifier corresponds to the enlarged display region 24 where the enlarged display is to be provided. The mouse message about moving the magnifier corresponds to the indication of the position of the region to be enlarged 23 or the enlarged display region 24. If the mouse message is not about moving the magnifier, the message is passed to another process in the magnifier program, such as one for increasing the size of the magnifier, i.e., the dimension of the enlarged display region 24, or changing the scaling factor for the enlarged display.
If it is determined that the mouse message is about moving the magnifier in Step 31, the direction and amount of the magnifier movement are obtained based on the mouse message in Step 32. Then, in Step 33, the image data for the region to be hidden by the magnifier after the movement, i.e., the image data to be overwritten by the image data portion 26 is transferred to a buffer to be saved.
Then, in Step 34, the image data to be viewed through the magnifier is generated in the buffer. That is, the original image data for the region to be enlarged 23 and displayed in the enlarged display region 24 is generated. This image data may be generated using the image data saved in Step 33.
Then, in Step 35, contrast change is performed on the image data generated in the buffer in Step 34. In this processing, the values of brightness of the image data are changed so that the enlarged image has a higher contrast than the original image in the region to be enlarged 23 before being enlarged. This is performed by changing the values of brightness of each image data item using a function represented by a predetermined line on a graph where the horizontal axis indicates values of brightness before change and the vertical axis indicates values of brightness after change. The image data items represent color information for each dot on the screen as a mixture of R (red), G (green), and B (blue), each represented in 256 gradations from 0 to 255. Therefore, each RGB value of the image data items concerned is changed using the function. Alternatively, the brightness change may be more precisely performed by deriving the value of brightness from each RGB gradation value for each dot or pixel and changing that value. However, this would considerably increase the computational complexity.
Once the contrast change is completed, in Step 36, the image data with the changed contrast in the buffer is enlarged and transferred to the video memory 8, where the image data is stored in the data image portion 26 for the enlarged display region 24. Here, the magnifier is moved by the amount of movement obtained in Step 32, and the original image hidden before the movement must be displayed again. Therefore, the image data to be displayed again is also extracted from the image data saved in Step 33 and returned to the corresponding portion in the image data 22. Thus, the magnifier processing in the magnifier program is completed.
If the position indicator which indicates the region to be enlarged 23 is continuously moved, the mouse message about moving the magnifier is successively received, so that the processing from Steps 31 to 36 in
After the magnifier program is started, the processing of
If it is determined that the mouse cursor has been moved in Step 42, image data for the region to be enlarged 23 surrounding the mouse cursor is extracted from the image data 22 and transferred to the buffer in Step 43. Then, in Step 44, contrast change is performed on the image data transferred to the buffer in the same manner as in Step 35 of
Then, in Step 45, the image data with the changed contrast in the buffer is enlarged and stored in the portion 26 for the enlarged display region 24 in the video memory 8. Therefore, the image in the enlarged display region 24 becomes the enlarged and higher-contrast version of the image in the region to be enlarged 23 moved by the amount of the mouse cursor movement. Thus, the magnifier processing is completed.
If the mouse cursor indicating the position of the region to be enlarged 23 is moved and therefore the desired location (indicated position) of the region to be enlarged 23 has moved, the mouse cursor movements are detected in Step 42 by comparing the location just found in Step 41 with those previously recorded in Step 46 after the time interval from the prior processing has passed. In this case, the processing of Steps 43 to 46 in
In particular, after the image data for the region to be enlarged 23 is transferred to the buffer in Step 53, the brightness of the transferred image data in the buffer is averaged in Step 54. Here, the value of brightness for each dot is not determined, but the RGB values of the transferred image data are simply summed and averaged. The average is used as the average value of brightness. That is, the RGB values of each image data item are extracted and averaged based on the original image data portion 25 for the region to be enlarged 23.
In consideration of the obtained average value of brightness, contrast change is performed on the transferred image data in the buffer in Step 55.
The invention is not limited to the above described embodiments but may be implemented with appropriate modifications. For example, the region to be enlarged and the enlarged display region may be circles or ovals, rather than rectangles as described. The region to be enlarged may be indicated or selected with other pointing devices or a keyboard, rather than the mouse as described. Besides mere brightness as described, chroma or color phase may also be changed. In the above described embodiment, the average value of brightness is calculated by summing the RGB values in overall image data for the enlarged region. Instead, the average value of brightness may be calculated only for part of the enlarged region, such as image data portion at the center or image data portions at certain intervals, and then the value may be used for determining the function. Further, the invention may be applicable to image data in other format, such as YUV format, rather than RGB format as described. In that case, the value of luminance of image data may be used as the value of brightness of the image data.
As described above, according to the invention, the value of brightness of corresponding image data is adjusted so that an enlarged image has a higher contrast than the original image in an enlarged region. Thus, the invention may improve visual recognition of letters and so on in the enlarged image.
Number | Date | Country | Kind |
---|---|---|---|
2002-064361 | Mar 2002 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6407747 | Chui et al. | Jun 2002 | B1 |
6411305 | Chui | Jun 2002 | B1 |
6556213 | Yamada | Apr 2003 | B1 |
6677959 | James | Jan 2004 | B1 |
20020075285 | Morrison | Jun 2002 | A1 |
20020080149 | Alexander et al. | Jun 2002 | A1 |
Number | Date | Country | |
---|---|---|---|
20030179219 A1 | Sep 2003 | US |