IMAGE RESOLUTION ADJUSTMENT METHOD
There is disclosed an image resolution adjustment method comprising the steps of: performing a predetermined selection rule to select one of scaling modes based on a source resolution Vi and a display resolution Vo to generate a scaling value set for outputting a scaled image; and determining whether a smoothing process to determine whether or not the scaled image is smoothed based on application requirements, wherein the scaling modes comprises a first scaling mode, a second scaling mode and a third scaling mode to generate each of the corresponding scaling value set, respectively. The scaling value set is provided to generate replicated pixels or lines for each pixel or line of the source image during a horizontal or vertical scaling period, and the replicated pixels or lines are arranged in horizontal or vertical symmetry in relation to its central region of the source image.
1. Field of the Invention
The invention relates to an image resolution conversion technique and more particularly to an image resolution conversion method performed in a scaling phase and a smoothing phase.
2. Description of the Related Art
This application claims the benefit of Taiwan Application No. 97125041 entitled “IMAGE RESOLUTION ADJUSTING DEVICES, DISPLAY DEVICES AND IMAGE RESOLUTION ADJUSTING METHODS” filed on Jul. 3, 2008. The disclosure of the Taiwan Application is incorporated herein.
For current display devices, electronic monitor systems are widely applied in various applications, such as digital cameras, liquid crystal display (LCD) devices, and LCD televisions. In order to conform to specifications of electronic monitor systems with different resolutions, the resolutions of image sources have to be controlled by scaling images. For example, when a resolution of an input image is in VGA mode (640×480) while an output device is in XGA mode (1024×768), the resolution of the input image has to be enhanced, and when a resolution of an input image is in SXGA mode (1280×1024) while an output device is in XGA mode (1024×768), the resolution of the input image is degraded.
Conventional image scaling control techniques usually use resolution (i.e. pixel or line of an image) interpolation or replication during an image upscaling period. An image which is upscaled by interpolation advantageously has smooth edges from the perspective of human vision; however, the content of the original image is changed so as to result in image degration for its accuracy. When an image is upscaled by replication, disadvantageously, the image has sawtooth edges if the scaling ratio for the image is not controlled appropriately, resulting in degraded quality of the image.
Please referred to FIG. 1, U.S. Pat. No. 6,587,602 discloses a resolution conversion method. It is a process for converting an original digital image into another digital image having a different number of pixels. In this prior art, the original image is converted into an enlarged image by generating pixels to be interpolated to increase the number of pixels. Besides, a function f1 links the gray scale levels of adjacent pixels so as to generate interpolation pixels such that the gray scale levels thereof are positioned on the function f1. On the other hand, if the difference between the gray scale levels of the adjacent pixels is greater than the predetermined difference threshold, a function f2 links the gray scale levels of adjacent pixels so as to generate interpolation pixels such that the gray scale levels thereof are positioned on the function f2. However, the prior art uses interpolation to provide the resolution conversion so as to cause original pixel data change from the source image unfortunately, and it is not appropriate in some cases of the emergent medical surgery because this situation does not allow any change of original pixel data to prevent any of the medical mistakes from viewing the original medical images.
Besides, U.S. Pat. No. 7,199,837 also discloses a system for improving a ratiometric expansion. The prior art provides, after an image being enlarged by a replicator, the resolution of the image re-adjusted by a re-sampler. However, the prior art is trouble with disadvantageously complicating image scaling calculation and smoothness.
BRIEF SUMMARY OF THE INVENTIONIn order to solve the above mentioned problems, the present invention provides an image resolution adjustment method comprising the steps of: (a) performing a predetermined selection rule in a scaling phase in which one of four scaling modes is selected to generate a scaling value set based on a source resolution Vi and a display resolution Vo for outputting a scaled image; and (b) determining whether or not the scaled image is smoothed based on the application requirement of display in a smoothing phase, wherein the predetermined selection rule comprises a first decision provided to determine whether or not a first scaling mode is selected; a second decision provided to determine whether or not a second scaling mode is selected; a third decision provided to determine whether or not a third scaling mode is selected; and a fourth decision provided to determine whether or not a fourth scaling mode is selected, wherein one of the scaling modes is selected to calculate the corresponding scaling value set so as to generate replicated pixels or lines for each pixel or line of the source image during a horizontal or vertical scaling period.
Therefore, it is a principal object of the present invention to provide an image resolution adjustment method in medical or other related applications to acquire higher resolution without content loss of a source image during the image scaling process.
It is another principal object of the present invention to provide an image resolution adjustment method to properly select one of the scaling modes in scaling phase and smoothing phases for converting a source image into a scaled image to meet the display resolution so as to ensure the scaled image having replicated pixels and replicated lines arranged in positional symmetry along horizontal and vertical directions in relation to the source image.
It is yet another principal object of the present invention to provide an image resolution adjustment method to properly smooth a scaled image in a smoothing phase based on a variety of application requirements of display.
It is yet another principal object of the present invention to provide an image resolution adjustment method to properly select one of the scaling modes for converting a source image into a scaled image based on the scaling factors of the value sets for pixel and line replications such that the scaling factors of the source image are arranged in a gradually decreased proportion from its central region to peripheral regions.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
The invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The following description is of the best-contemplated mode of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims. Moreover, the diagrams included in the following are not completely drawn according to the real size and are only used to demonstrate features related to the present invention.
Referred to
(Vo/Vi)=n, where n is an integer.
If the condition is satisfied, then the fourth decision is set as TRUE (i.e. “yes”) and the step S125 serves to perform a fourth scaling mode for generating a scaling value set indicating a scaling factor equal to n. Therefore, the source image is converted to the scaled image enlarged by n times in horizontal or vertical directions, respectively. In the smoothing phase, the step S160 serves to determine whether or not the scaled image is smoothed based on a variety of application requirements of display in a smoothing phase. Eventually, the step S170 serves to output the scaled image with or without the smoothing process for display.
Referred back to
(Vo−Vi)<=(2*Vi), and
(Vo/Vi)=n, where n is not an integer.
If both the condition are satisfied, then the first decision is set as TRUE (i.e. “yes”), and the step S135 serves to perform a first scaling mode for generating a scaling value set including a center resolution Vc, a sided resolution Vs, and scaling factors corresponding to the center resolution Vc and the sided resolution Vs determined by the equations below:
Vc=(Vo−Vi)/2, (1); and
Vs=(3*Vi−Vo)/4, (2)
where Vc and Vs are integers, respectively, and
the scaling factors corresponding to Vc and Vs are equal to 1 and 3, respectively. Hence, the source image is upscaled to a scaled image determined by the equations (1), (2) and corresponding scaling factors. In the smoothing phase, the step S160 serves to determine whether or not the scaled image is smoothed based on a variety of application requirements of display in a smoothing phase. Eventually, the step S170 serves to output the scaled image with or without the smoothing process for display. However, it is noted that when Vs is not an integer multiple, the step S160 determines to start the smoothing process in which Vs is divided into an upper sided resolution value Vs-up and a lower sided resolution value Vs-dn determined by the equations below:
Vs-up=(3*Vi−Vo)/4−0.5, (3) and
Vs-dn=(3*Vi−Vo)/4+0.5. (4)
Therefore, the source image is converted to a scaled image based on the scaling value set determined by the equations (1), (3) and (4), and eventually the step S170 serves to output the scaled image with the smoothing process for display. It is noted that both Vs-up and Vs-dn can be determined in the smoothing phase by the above mentioned equations (3) and (4), or equations (4) and (3), and the value of 0.5 in this embodiment provided in the equations (3) and (4) can be replaced with a different one to modify Vs-up and Vs-dn so as to improve image smoothness of the scaled image according to the display application. Besides, the equations (3) and (4) can be one of the smoothing methods and the present invention should not be limited to the particular method.
Referred back to
(Vo−Vi)>(2*Vi),
(Vo/Vi)=n, where n is not an integer, and
(7*Vi)>2*Vo.
If the three conditions are satisfied, then the second decision is set as TRUE (i.e. “yes”), then the step S145 serves to perform a second scaling mode for generating a scaling value set including a center resolution Vc, a sided resolution Vs and scaling factors corresponding to Vc and Vs determined by the equations below:
Vs=(Vo−3*Vi)/2, (5)
Vc=Vi−2*Vs=x+y, (6), and
2*x+z*y=Vo−2*Vs, (7)
where x, y>0 and z=3, 4, 5, . . . , respectively, and the scaling factors are equal to 1, 2, 3 or an integer greater than 3. Therefore, the source image is converted to the scaled image based on the scaling value set determined by the equations (5)˜(7). Referred back to
(Vo−Vi)>(2*Vi),
(Vo/Vi)=n, where n is not an integer, and
(7*Vi)<=2*Vo.
If the three conditions are satisfied, then the third decision is set as TRUE (i.e. “yes”), and the step S155 serves to perform a third scaling mode for generating a scaling value set including a center resolution Vc, a sided resolution Vs and scaling factors corresponding to Vc and Vs determined by the equations below:
Vs=Vi/4, (8)
when Vs is an integer multiple.
Otherwise the step S160 determines to start the smoothing process in which Vs is divided into an upper sided resolution value Vs-up and a lower sided resolution value Vs-dn determined by the equations below:
Vs-up=Vi/4−0.5 (9) and
Vs-dn=Vi/4+0.5. (10)
Vc is determined by the two equations:
Vc=Vi−2*Vs=x+y, (11) and,
2*x+z*y=Vo−Vi (12)
where x, y>0 and z=3, 4, 5, . . . , respectively, and the scaling factors are equal to 2, 3 or an integer greater than 3. Therefore, the source image is converted to a scaled image based on the scaling value set determined by the equations (8) (12). After the scaling phase is proceeded, the step S160 in the smoothing phase serves to determine whether or not the scaled image is smoothed dependent on a variety of application requirements of display. Eventually, the step S170 outputs the complete scaled image with/without the smoothing process to the display panel. It is noted that both Vs-up and Vs-dn can be determined in the smoothing phase by the above mentioned equations (9) and (10), or equations (10) and (9), and the value of 0.5 in this embodiment provided in the equations (9) and (10) can be replaced with a different one to modify Vs-up and Vs-dn so as to improve image smoothness of the scaled image according to the display application. Besides, the equations (9) and (10) can be one of the smoothing methods and the present invention should not be limited to the particular method.
Referred to
According to one of the above mentioned embodiments, the image resolutions and display resolutions including (1024×768) vs (2560×2048), (640×350) vs (1024×768), (640×350) vs (1600×1200), and (640×400) vs (2048×1536) are conformed to the VESA standard and are described as follows. According to the above mentioned horizontal and vertical scaling, any source image having lower resolution can be converted or upscaled to a display image having higher resolution conversion without content lost for the source image during the image scaling process.
Referred to
Referred back to
Besides, referred back to
Referred back to
Besides, referred back to
Referred back to
Referred to
The source image 50 is logically divided into five sections of source blocks for each of sections including three source column blocks. All the source blocks are indicated by 521, 531 and 522 for the 1st section, 551, 561 and 552 for the 2nd section, 541, 51 and 542 for the 3rd section, 553, 562 and 554 for the 4th section, and 523, 532 and 524 for the 5th section, accordingly. Each of source blocks has its resolution value in pixels determined from the equations (1) and (2) during the horizontal scaling period, and its resolution value in lines determined from the equations (5), (6) and (7) during the vertical scaling period. For example, during the horizontal scaling period, each of the source blocks 51, 531, 532, 561 and 562 has its corresponding resolution value Vc=480 pixels, Vc labeled in
Besides, referred back to
Referred back to
Referred back to
Referred to
In this case, the source image 60 is logically divided into five sections of source blocks for each of sections including five source column blocks. All the source blocks are indicated by 621, 631, 643, 632 and 622 for the 1st section, 651, 671, 661, 672 and 652 for the 2nd section, 641, 681, 61, 682 and 642 for the 3rd section, 653, 673, 662, 674 and 654 for the 4th section, and 623, 633, 644, 634 and 624 for the 5th section, accordingly. Each of the source blocks has its resolution value in pixels determined from the equations (5), (6) and (7) during the horizontal scaling period, and its resolution value in lines determined from the equations (8), (9), (10), (11) and (12) during the vertical scaling period. For example, during the horizontal scaling period, each of the source blocks 621, 622, 623, 624, 641, 642 651, 652, 653 and 654 has its corresponding resolution value Vs=64 pixels determined by the equation (5), Vs labeled in
Referred back to
Referred back to
Besides, referred to
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Claims
1. An image resolution adjustment method, for receiving a source resolution Vi from a source image and a display resolution Vo, comprising the steps of: wherein said predetermined selection rule comprises: wherein said second decision is set to TRUE if three conditions below are satisfied and wherein said third decision is set to TRUE if three conditions below are satisfied
- performing a predetermined selection rule in a scaling phase to generate a scaling value set based on said source resolution Vi and said display resolution Vo for outputting a scaled image; and
- determining whether or not said scaled image is smoothed based on a variety of application requirements of display in a smoothing phase;
- a first decision to determine whether or not a first scaling mode is selected based on said source resolution Vi and said display resolution Vo;
- a second decision to determine whether or not a second scaling mode is selected based on said source resolution Vi and said display resolution Vo; and
- a third decision to determine whether or not a third scaling mode is selected based on said source resolution Vi and said display resolution Vo;
- wherein said first decision is set to TRUE if both conditions below are satisfied (Vo−Vi)<=(2*Vi), and (Vo/Vi)=n, where n is not an integer;
- (Vo−Vi)>(2*Vi),
- (Vo/Vi)=n, where n is not an integer, and
- (7*Vi)>(2*Vo);
- (Vo−Vi)>(2*Vi),
- (Vo/Vi)=n, where n is not an integer, and
- (7*Vi)<=(2*Vo).
2. An image resolution adjustment method according to claim 1, wherein said scaling value set includes a center resolution Vc, a sided resolution Vs and scaling factors corresponding to said center resolution Vc and said sided resolution Vs determined by the equations below in said scaling phase when said first decision is TRUE:
- Vc=(Vo−Vi)/2, and
- Vs=(3*Vi−Vo)/4,
- where Vc and Vs are integers, respectively, and
- said scaling factors are equal to 1 and 3.
3. An image resolution adjustment method according to claim 2, wherein said sided resolution value Vs is selected from an upper sided resolution value Vs-up or a lower sided resolution value Vs-dn when Vs is not an integer, and wherein Vs-up is determined by the equation in said the smoothing phase: Vs-dn is determined by the equation:
- Vs-up=(3*Vi−Vo)/4−0.5, and
- Vs-dn=(3*Vi−Vo)/4+0.5.
4. An image resolution adjustment method according to claim 1, wherein said scaling value set includes a center resolution Vc, a sided resolution Vs and scaling factors corresponding to said center resolution Vc and said sided resolution Vs determined by the equations below when said second decision is TRUE: where x, y>0 and z=3, 4, 5,..., respectively, and
- Vs=(Vo−3*Vi)/2,
- Vc=Vi−2*Vs=x+y, and
- 2*x+z*y=Vo−2*Vs,
- said scaling factors are equal to 1, 2, 3 or an integer greater than 3.
5. An image resolution adjustment method according to claim 1, wherein said scaling value set includes a center resolution Vc, a sided resolution Vs and scaling factors corresponding to said center resolution Vc and said sided resolution Vs determined by the equations below when said third decision is TRUE: where Vs is an integer multiple, and where x, y>0 and z=3, 4, 5,..., respectively, and
- Vs=Vi/4,
- said center resolution Vc is determined by the two equations: Vc=Vi−2*Vs=x+y, and 2*x+z*y=Vo−Vi
- said scaling factors are equal to 2, 3 or an integer greater than 3.
6. An image resolution adjustment method according to claim 5, wherein said sided resolution Vs is selected from an upper sided resolution Vs-up or a lower sided resolution value Vs-dn when Vs is not an integer, wherein Vs-up is determined by the equation: Vs_DN is determined by the equation:
- Vs-up=Vi/4−0.5 and
- Vs-dn=Vi/4+0.5.
7. An image resolution adjustment method according to claim 1, wherein said predetermined selection rule further comprises a fourth decision to determine whether or not a fourth scaling mode is selected based on said source resolution Vi and said display resolution Vo.
8. An image resolution adjustment method according to claim 7, wherein said fourth scaling mode is set to TRUE if a condition below is satisfied
- (Vo/Vi)=n, when n is an integer multiple, and
- said scaling value set including a scaling factor equal to n.
9. An image resolution adjustment method according to claim 1, wherein said scaling value set is provided to generate replicated pixels for each pixel of said source image during a horizontal scaling period, and said replicated pixels are arranged in an axial symmetry in relation to its central region of said source image.
10. An image resolution adjustment method according to claim 1, wherein said scaling value set is provided to generate replicated lines for each line of said source image during a vertical scaling period, and said replicated lines are arranged in an axial symmetry in relation to its central region of said source image.
11. An image resolution adjustment method, for receiving a source resolution Vi from a source image and a display resolution Vo, comprising the steps of: wherein said scaling modes comprises:
- performing a predetermined selection rule in a scaling phase to select one of scaling modes based on said source resolution Vi and said display resolution Vo, so as to generate a scaling value set for outputting a scaled image; and
- determining whether or not said scaled image is smoothed based on a variety of application requirements of display in a smoothing phase;
- a first scaling mode to generate said corresponding scaling value set based on said source resolution Vi and said display resolution Vo;
- a second scaling mode to generate said corresponding scaling value set based on said source resolution Vi and said display resolution Vo; and
- a third scaling mode to generate said corresponding scaling value set based on said source resolution Vi and said display resolution Vo.
12. An image resolution adjustment method according to claim 11, wherein said scaling value set includes a center resolution Vc, a sided resolution Vs and scaling factors corresponding to said center resolution Vc and said sided resolution Vs determined by the equations below, when said first scaling mode being selected: where Vc and Vs are integers, respectively, and said scaling factors are equal to 1 and 3.
- Vc=(Vo−Vi)/2, and
- Vs=(3*Vi−Vo)/4,
13. An image resolution adjustment method according to claim 12, wherein said sided resolution value Vs is selected from an upper sided resolution value Vs-up or a lower sided resolution value Vs-dn when Vs is not an integer, and wherein Vs-up is determined by the equation: Vs-dn is determined by the equation:
- Vs-up=(3*Vi−Vo)/4−0.5, and
- Vs-dn=(3*Vi−Vo)/4+0.5.
14. An image resolution adjustment method according to claim 11, wherein said scaling value set includes a center resolution Vc, a sided resolution Vs and scaling factors corresponding to said center resolution Vc and said sided resolution Vs determined by the equations below, when said second scaling mode being selected: where x, y>0 and z=3, 4, 5,..., respectively, and said scaling factors are equal to 1, 2, 3 or an integer greater than 3.
- Vs=(Vo−3*Vi)/2,
- Vc=Vi−2*Vs=x+y, and
- 2*x+z*y=Vo−2*Vs,
15. An image resolution adjustment method according to claim 11, wherein said scaling value set includes a center resolution Vc, a sided resolution Vs and scaling factors corresponding to said center resolution Vc and said sided resolution Vs determined by the equations below, when said third scaling mode being selected: where Vs is an integer multiple, and said center resolution Vc is determined by the two equations: where x, y>0 and z=3, 4, 5,..., respectively, and said scaling factors are equal to 2, 3 or an integer greater than 3.
- Vs=Vi/4,
- Vc=Vi−2*Vs=x+y, and
- 2*x+z*y=Vo−Vi
16. An image resolution adjustment method according to claim 15, wherein said sided resolution Vs is selected from an upper sided resolution Vs-up or a lower sided resolution value Vs-dn when Vs is not an integer, wherein Vs-up is determined by the equation: Vs-dn is determined by the equation:
- Vs-up=Vi/4−0.5 and
- Vs-dn=Vi/4+0.5.
17. An image resolution adjustment method according to claim 11, wherein said scaling modes further comprises a fourth scaling mode to generate said corresponding scaling value set including a scaling factor n equal to an integer multiple.
18. An image resolution adjustment method according to claim 17, wherein said scaling factor n is determined by the equation n=Vo/Vi.
19. An image resolution adjustment method according to claim 11, wherein said scaling value set is provided to generate replicated pixels for each pixel of said source image during a horizontal scaling period, and said replicated pixels are arranged in an axial symmetry in relation to its central region of said source image.
20. An image resolution adjustment method according to claim 11, wherein said scaling value set is provided to generate replicated lines for each line of said source image during a vertical scaling period, and said replicated lines are arranged in an axial symmetry in relation to its central region of said source image.
Type: Application
Filed: Dec 22, 2008
Publication Date: Jan 7, 2010
Patent Grant number: 8208760
Inventor: Kuan-Yi Wu (Jen Te Hsiang)
Application Number: 12/340,792
International Classification: G06K 9/32 (20060101);