TWI407429B - Image zooming device and image zooming method - Google Patents
Image zooming device and image zooming method Download PDFInfo
- Publication number
- TWI407429B TWI407429B TW98100084A TW98100084A TWI407429B TW I407429 B TWI407429 B TW I407429B TW 98100084 A TW98100084 A TW 98100084A TW 98100084 A TW98100084 A TW 98100084A TW I407429 B TWI407429 B TW I407429B
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- focus
- center
- area
- screen display
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000005484 gravity Effects 0.000 claims description 3
- 241001465754 Metazoa Species 0.000 claims description 2
- 238000006073 displacement reaction Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000004075 alteration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Controls And Circuits For Display Device (AREA)
- Studio Devices (AREA)
Abstract
Description
本發明係關於一種縮放裝置及縮放方法,特別關於一種影像縮放裝置及影像縮放方法。The present invention relates to a zooming device and a zooming method, and more particularly to an image zooming device and an image zooming method.
隨著數位科技的進步,使得資訊容易被攜帶,而人們也可利用電子產品輕易地製作數位資訊、檢視數位資訊或修改數位資訊。With the advancement of digital technology, information is easy to carry, and people can easily use digital products to create digital information, view digital information or modify digital information.
一般使用者常用的功能,以瀏覽影像為例,其係在電子產品開啟影像檔案之後,將影像顯示於螢幕顯示區以供使用者瀏覽。使用者可依據其喜好而將影像進行縮放的檢視動作,然而在縮放的過程中,通常係以影像的中心位置為原點而對影像進行縮放、或以螢幕顯示區的中心位置為原點而對影像進行縮放。For example, the function commonly used by the user is to view the image. After the electronic product opens the image file, the image is displayed on the screen display area for the user to browse. The user can zoom in and out according to his or her preference. However, during the zooming process, the image is usually zoomed at the center of the image, or the center of the screen display area is used as the origin. Scale the image.
請參照圖1A所示,當例如將一影像開啟於一顯示器1時,其係將全部影像顯示於螢幕顯示區11中,此時影像中的主題較小且位於螢幕顯示區的右側。當使用者欲放大影像以檢視主題時,影像係以影像中心為原點而放大,如圖1B所示,此時,影像中的主題不在螢幕顯示區11的正中央,且部分的影像主題已經超出螢幕顯示區11,此時使用者必須藉由拖拉影像,而將主題移動至螢幕顯示區11中。Referring to FIG. 1A, when an image is opened on a display 1, for example, all images are displayed in the screen display area 11, and the theme in the image is small and located on the right side of the screen display area. When the user wants to enlarge the image to view the theme, the image is enlarged with the image center as the origin, as shown in FIG. 1B. At this time, the theme in the image is not in the center of the screen display area 11, and part of the image theme has been The screen display area 11 is exceeded, and the user must move the theme to the screen display area 11 by dragging the image.
承上所述,使用者在對影像縮放之後,常需要藉由拖拉才能瀏覽或檢視影像中的主題,如此將造成使用者需要繁複的拖拉動作才能夠瀏覽或檢視影像中的主題,相當不便。As described above, after zooming in on an image, the user often needs to drag and drop to view or view the theme in the image. This will cause the user to need complicated dragging action to view or view the theme in the image, which is quite inconvenient.
因此,如何提供一種影像縮放裝置及影像縮放方法以令使用者在對影像縮放之後,能夠輕易的瀏覽或檢視影像中的主題,實為當前重要課題之一。Therefore, how to provide an image zooming device and an image zooming method to enable a user to easily view or view a theme in an image after zooming the image is one of the current important topics.
有鑑於上述課題,本發明之目的為提供一種使得影像在螢幕顯示區中縮放時,能夠自動聚焦而將影像中之主題顯示於螢幕顯示區中,以減少使用者須多次拖拉顯示畫面動作的影像縮放裝置及影像縮放方法。In view of the above problems, an object of the present invention is to provide an image that can be automatically focused to display a theme in an image in a screen display area when the image is zoomed in the screen display area, so as to reduce the user's need to drag and drop the display screen multiple times. Image zooming device and image zooming method.
為達上述目的,本發明提供一種影像縮放方法,其係於一螢幕顯示區中調整一影像。影像縮放方法包含以下步驟:於螢幕顯示區中對影像設定至少一聚焦區域;依據聚焦區域得到一聚焦中心;設定影像之一縮放比率;依據螢幕顯示區之中心、聚焦中心及縮放比率得到及一移動向量;以及依據移動向量移動影像於螢幕顯示區中之位置,並依據縮放比率設定影像於螢幕顯示區中之影像大小。To achieve the above object, the present invention provides an image zooming method for adjusting an image in a screen display area. The image zooming method comprises the steps of: setting at least one focus area on the image in the screen display area; obtaining a focus center according to the focus area; setting a zoom ratio of the image; obtaining a center according to the center of the screen display area, the focus center, and the zoom ratio Moving the vector; and moving the image in the screen display area according to the motion vector, and setting the image size of the image in the screen display area according to the zoom ratio.
為達上述目的,本發明提供一種影像縮放裝置係與顯示於一螢幕顯示區之一影像配合應用。影像縮放裝置包含一聚焦區域設定模組、一聚焦中心計算模組、一放大比率設定模組、一移動向量計算模組以及一執行模組。聚焦區域設定模組係於螢幕顯示區中對影像設定至少一聚焦區域。聚焦中心計算模組係依據聚焦區域得到一聚焦中心。放大比率設定模組係設定影像之縮放比率。移動向量計算模組係依據螢幕顯示區之中心位置、聚焦中心及縮放比率而得到及一移動向量。執行模組係依據移動向量移動影像於螢幕顯示區中之位置,並依據縮放比率設定影像於螢幕顯示區中之影像大小。To achieve the above object, the present invention provides an image zooming device and an image matching application displayed on a screen display area. The image zooming device comprises a focus area setting module, a focus center calculation module, an enlargement ratio setting module, a motion vector calculation module and an execution module. The focus area setting module sets at least one focus area on the image in the screen display area. The focus center computing module obtains a focus center based on the focus area. The magnification ratio setting module sets the zoom ratio of the image. The motion vector calculation module obtains a motion vector according to the center position, the focus center and the zoom ratio of the display area of the screen. The execution module moves the image in the screen display area according to the motion vector, and sets the image size of the image in the screen display area according to the zoom ratio.
在本發明之一較佳實施例中,聚焦區域係經由一物件辨識技術而設定。其中物件辨識技術可為人臉辨識技術、或移動物辨識技術、或建築物辨識技術、或自然景觀辨識技術。In a preferred embodiment of the invention, the focus area is set via an object recognition technique. The object identification technology can be face recognition technology, or mobile object recognition technology, or building identification technology, or natural landscape recognition technology.
承上所述,依本發明之影像縮放裝置及影像縮放方法係利用物件辨識技術(例如人臉辨識技術、或移動物辨識技術、或建築物辨識技術、或自然景觀辨識技術)以設定影像中的聚焦區域,並據以得到聚焦中心,且在計算出移動向量之後將聚焦中心往螢幕顯示區的中心位置移動,以令使用者在對影像縮放後,能夠自動將影像中的主題盡量呈現在螢幕顯示區中。如此一來,使用者即可減少拖拉影像的次數,而可輕易地瀏覽或檢視影像中的主題。As described above, the image zooming device and the image zooming method according to the present invention use an object recognition technology (such as face recognition technology, mobile object recognition technology, or building identification technology, or natural landscape recognition technology) to set an image. Focusing area, and according to the focus center, and after calculating the motion vector, moving the focus center to the center position of the screen display area, so that the user can automatically display the theme in the image after zooming the image. In the screen display area. In this way, the user can reduce the number of times the image is dragged, and the subject in the image can be easily browsed or viewed.
以下將參照相關圖式,說明依本發明較佳實施例之一種影像縮放裝置及影像縮放方法,其中相同的元件將以相同的參照符號加以說明。An image zooming apparatus and an image zooming method according to a preferred embodiment of the present invention will be described with reference to the accompanying drawings, in which the same elements will be described with the same reference numerals.
請參照圖2所示,本發明較佳實施例之影像縮放方法包含步驟S01至步驟S05。其中影像縮放方法係於一螢幕顯示區中調整一影像。Referring to FIG. 2, the image scaling method according to the preferred embodiment of the present invention includes steps S01 to S05. The image zooming method adjusts an image in a screen display area.
步驟S01係於螢幕顯示區中對影像設定至少一聚焦區域。其中聚焦區域可代表影像中之主題,其可為一個或複數個。在本實施例中,聚焦區域係經由一物件辨識技術而獲得並設定,當然聚焦區域亦可為用戶感興趣而自行選擇的任意區域,於此並不加以限制。而物件辨識技術例如為人臉辨識技術、或動物辨識技術、或建築物辨識技術、或自然景觀辨識技術等。然而若影像中有不同的主題時,例如同時具有人及建築物,則辨識技術可由使用者自訂優先等級。Step S01 is to set at least one focus area on the image in the screen display area. The focus area may represent a subject in the image, which may be one or plural. In this embodiment, the focus area is obtained and set by an object recognition technology. Of course, the focus area may also be any area selected by the user and is not limited thereto. The object identification technology is, for example, face recognition technology, or animal identification technology, or building identification technology, or natural landscape recognition technology. However, if there are different themes in the image, such as having both people and buildings, the identification technique can be customized by the user.
步驟S02係依據聚焦區域得到一聚焦中心。在本實施例中,當影像僅具有一個聚焦區域時,則聚焦中心將預設為該聚焦區域的中心位置。若影像具有複數個聚焦區域時,則聚焦中心是基於該等聚焦區域而依據一計算程式,所得到之在影像上之一個點,例如為該等聚焦區域的外接矩形的中心、或係為該等聚焦區域的重心。其中重心計算的權重為有效聚焦區域的面積,而有效聚焦區域是指顯示在螢幕顯示區內的聚焦區域。Step S02 obtains a focus center according to the focus area. In the present embodiment, when the image has only one focus area, the focus center will be preset as the center position of the focus area. If the image has a plurality of focus regions, the focus center is based on the focus regions and a point on the image is obtained according to a calculation program, for example, the center of the circumscribed rectangle of the focus regions, or The center of gravity of the focus area. The weight calculated by the center of gravity is the area of the effective focus area, and the effective focus area refers to the focus area displayed in the display area of the screen.
步驟S03係設定影像之一縮放比率。在本實施例中,縮放比率可為預設值,或係由使用者自行設定。Step S03 sets a zoom ratio of one of the images. In this embodiment, the zoom ratio may be a preset value or may be set by the user.
步驟S04係依據螢幕顯示區之一顯示中心、聚焦中心及縮放比率而得到一移動向量。在本實施例中,移動向量係代表影像的聚焦中心在螢幕顯示區中移動的方向及移動距離之一參數值。須注意者,顯示中心除了代表是螢幕的正中央之外,在另一實施例中,顯示中心亦可改為使用者所設定位於螢幕顯示區中之任一位置。另外,值得一提的是,顯示中心代表的含意係可為顯示中心所顯示出的影像位置,換言之,影像縮放前之顯示中心所顯示的影像位置為縮放後之其他影像位置。再者,移動向量具有一預設縮放-位移參數(zooming-panning-rate),其說明如文後。Step S04 obtains a motion vector according to one of the display center, the focus center, and the zoom ratio of the display area of the screen. In this embodiment, the motion vector represents a parameter value of a direction in which the focus center of the image moves in the screen display area and a moving distance. It should be noted that, in addition to the fact that the display center is the center of the screen, in another embodiment, the display center may be changed to any position set by the user in the screen display area. In addition, it is worth mentioning that the meaning represented by the display center can be the image position displayed by the display center. In other words, the image position displayed by the display center before the image zoom is the other image position after zooming. Furthermore, the motion vector has a preset zoom-panning-rate, which is described later.
步驟S05係依據移動向量移動影像於螢幕顯示區中之位置,並依據縮放比率而設定影像於螢幕顯示區中之影像大小。在本實施例中,影像係依據移動向量往螢幕顯示區之一設定點方向移動,其中,設定點例如係使用者自訂之位置,或螢幕顯示區之中心位置。Step S05 moves the position of the image in the screen display area according to the motion vector, and sets the image size of the image in the screen display area according to the zoom ratio. In this embodiment, the image is moved according to the movement vector to a set point direction of the screen display area, wherein the set point is, for example, a user-customized position or a center position of the screen display area.
以下,將以兩個實例以進一步說明本發明較佳實施例之影像縮放方法,在此係以放大影像為例說明。首先,請參照圖3、圖4A、圖4B和圖4C以說明第一個實例。其中圖3係為影像縮放方法之一執行流程圖。In the following, two examples will be used to further illustrate the image zooming method of the preferred embodiment of the present invention, and an enlarged image will be taken as an example. First, please refer to FIG. 3, FIG. 4A, FIG. 4B, and FIG. 4C to explain the first example. FIG. 3 is a flowchart of execution of one of the image scaling methods.
如圖4A所示,首先步驟S11係於顯示器1之螢幕顯示區11中開啟影像,在此係將整個影像顯示在螢幕顯示區11中,此時的影像大小例如係為25%。As shown in FIG. 4A, first, step S11 is to open the image in the screen display area 11 of the display 1, and the entire image is displayed in the screen display area 11, and the image size at this time is, for example, 25%.
步驟S12係於螢幕顯示區11中設定一聚焦區域FR01 。步驟S13係依據聚焦區域FR01 計算聚焦中心FC01 ,在本實施例中,由於是單一聚焦區域,故聚焦中心FC01 係為聚焦區域FR01 的中心位置。Step S12 sets a focus area FR 01 in the screen display area 11. Step S13 calculates the focus center FC 01 based on the focus area FR 01. In the present embodiment, since it is a single focus area, the focus center FC 01 is the center position of the focus area FR 01 .
步驟S14係預設定移動向量,預設置移動向量的方向為從FC01 指向SC01 ,移動向量長度為delta/50,其中delta為FC01 到SC01 的距離。縮放比率設置模組設置縮放倍率,根據縮放倍率以及預設置的移動向量,決定實際移動向量。Step S14 pre-sets the motion vector. The direction of the preset motion vector is from FC 01 to SC 01 , and the motion vector length is delta/50, where delta is the distance from FC 01 to SC 01 . The zoom ratio setting module sets the zoom ratio, and determines the actual motion vector based on the zoom ratio and the preset motion vector.
在本實施例中,移動向量之縮放-位移參數,如下式:In this embodiment, the scaling-displacement parameter of the motion vector is as follows:
(delta/50)×(縮放比率差),其中,delta為顯示中心SC01 至聚焦中心FC01 的距離,而縮放比率差為影像縮放前與縮放後之縮放比之差值。在本實施例中,例如影像是由25%放大至50%,此時縮放-位移參數為(delta/50)×(50-25)=delta/2。(delta/50) × (zoom ratio difference), where delta is the distance from the display center SC 01 to the focus center FC 01 , and the zoom ratio difference is the difference between the zoom ratio before and after the image is scaled. In the present embodiment, for example, the image is enlarged from 25% to 50%, and the zoom-displacement parameter is (delta/50)×(50-25)=delta/2.
步驟S15係執行縮放移動,其係依據移動向量移動影像於螢幕顯示區11中之位置,並依據縮放比率設定影像於螢幕顯示區11中之影像大小。如圖4B所示,由於縮放-位移參數為delta/2,因此,此時的顯示中心SC02 係位在原顯示中心SC01 與聚焦中心FC02 連線之中點,且由於是由25%放大至50%,故螢幕顯示區11中設定聚焦區域FR01 相對放大變為兩倍之聚焦區域FR02 ,此時原本的聚焦中心FC01 也相對變成FC02 。Step S15 performs a zooming movement, which moves the position of the image in the screen display area 11 according to the motion vector, and sets the image size of the image in the screen display area 11 according to the zoom ratio. As shown in FIG. 4B, since the zoom-displacement parameter is delta/2, the display center SC 02 at this time is at the midpoint of the line connecting the original display center SC 01 and the focus center FC 02 , and since it is enlarged by 25%. Up to 50%, the focus area FR 01 in the screen display area 11 is set to be twice as large as the focus area FR 02 , and the original focus center FC 01 is also relatively changed to FC 02 .
之後步驟S16係判斷是否結束縮放,當結果為”是”則程式結束,當結果為”否”,則進行步驟S17。Then, in step S16, it is judged whether or not the zooming is ended. When the result is "YES", the program ends. When the result is "NO", the process proceeds to step S17.
步驟S17係更新聚焦區域,其係重新設定聚焦區域FR02 。本實施例係以單一聚焦區域為例,因此聚焦區域以及聚焦中心在影像中的位置始終不變。但由於影像在螢幕顯示區中的縮放比率有變化,因此縮放後聚焦中心在螢幕顯示區中的位置會發生變化。Step S17 updates the focus area, which resets the focus area FR 02 . In this embodiment, a single focus area is taken as an example, and thus the position of the focus area and the focus center in the image is always unchanged. However, since the zoom ratio of the image in the screen display area changes, the position of the focus center in the screen display area changes after zooming.
接著步驟S18係判斷聚焦區域是否被修改,當結果為”是”則執行步驟S13,計算聚焦中心FC02 ,當結果為”否”則執行步驟14。Next, in step S18, it is determined whether the focus area is modified. When the result is YES, step S13 is performed to calculate the focus center FC 02 , and when the result is "NO", step 14 is performed.
步驟14係重新設定移動向量。移動向量的方向是從FC02 指向SC02 ,移動向量的長度為delta/50,delta為當前顯示中心和聚焦中心的距離,也就是SC02 和FC02 的距離。Step 14 resets the motion vector. The direction of the motion vector is from FC 02 to SC 02 , the length of the motion vector is delta/50, and delta is the distance between the current display center and the focus center, that is, the distance between SC 02 and FC 02 .
在此,例如影像將繼續放大至100%,則此時縮放-位移參數為(delta/50)×(100-50)=delta,因此在執行縮放移動之後,聚焦區域之聚焦中心FC03 會與顯示中心SC03 重疊,如圖4C所示。Here, for example, the image will continue to be enlarged to 100%, then the zoom-displacement parameter is (delta/50)×(100-50)=delta, so after performing the zooming movement, the focus center FC 03 of the focus area will be The display center SC 03 overlaps as shown in FIG. 4C.
以下請參照圖5A至圖5D,以說明第二實例,本實施例係以複數個聚焦區域為例說明。Referring to FIG. 5A to FIG. 5D below, a second example will be described. This embodiment is described by taking a plurality of focus areas as an example.
如圖5A所示,首先係於螢幕顯示區11中開啟影像,在此係將整個影像顯示在螢幕顯示區11中,此時的影像大小例如係為25%。As shown in FIG. 5A, the image is first turned on in the screen display area 11, and the entire image is displayed in the screen display area 11, and the image size at this time is, for example, 25%.
接著係設定聚焦區域FR11 ,FR12 ,FR13 ,FR14 ,FR15 ,並依據聚焦區域FR11 ,FR12 ,FR13 ,FR14 ,FR15 計算聚焦中心FC11 。本實施例中,以人臉辨識技術舉例說明,聚焦區域為影像中的人臉,該人臉辨識技術已散見在許多公開文獻中,例如依據Adaboost運算、Haar小波(wavelet)特徵(feature)及相關辨識技術設計的OpenCV人臉檢測軟體,該檢測軟體內設有已針對大量人臉影像樣本進行訓練,所得到的對人臉正面、眼睛、鼻子及嘴巴有效的Haar小波特徵及人臉分類器(即用以判斷屬於人臉或不屬於人臉的分類器),可對數位元影像中的人臉、眼睛、鼻子及嘴巴進行檢測及快速辨識出。Next, the focus areas FR 11 , FR 12 , FR 13 , FR 14 , FR 15 are set , and the focus center FC 11 is calculated in accordance with the focus areas FR 11 , FR 12 , FR 13 , FR 14 , FR 15 . In this embodiment, the face recognition technology is used as an example to illustrate that the focus area is a human face in the image. The face recognition technology has been scattered in many public documents, for example, according to Adaboost operation, Haar wavelet feature (feature) and OpenCV face detection software designed by related identification technology. The detection software has Haar wavelet features and face classifiers that are effective for face face, eyes, nose and mouth, which have been trained for a large number of face image samples. (ie, a classifier for judging a face or not belonging to a human face), the face, eyes, nose, and mouth in the digital image can be detected and quickly recognized.
重新預設置移動向量。移動向量方向為從FC11 指向SC11 。可以根據實際應用調整移動向量的長度,這裏預設置移動向量的長度為(delta/50),其中delta為FC11 到SC11 的距離。Re-set the motion vector. The direction of the motion vector is from FC 11 to SC 11 . The length of the motion vector can be adjusted according to the actual application, where the length of the motion vector is preset to be (delta/50), where delta is the distance from FC 11 to SC 11 .
縮放模組設定放大倍率(例如放大至50%),則本次縮放需要的實際移動向量之縮放-位移參數為(delta/50)×(50-25)=delta/2,因此在移動及縮放影像之後,如圖5B所示,螢幕顯示區11之顯示中心SC12 係位於原顯示中心SC11 與聚焦中心FC11 連線的中點。The zoom module sets the magnification (for example, to 50%), then the scale-displacement parameter of the actual motion vector required for this zoom is (delta/50)×(50-25)=delta/2, so move and zoom After the image, as shown in FIG. 5B, the display center SC 12 of the screen display area 11 is located at the midpoint of the line connecting the original display center SC 11 and the focus center FC 11 .
由於在完成移動及縮放之後的影像已變更,重新更新聚焦區域FR21 ,FR22 ,FR23 ,FR24 ,其中FR21 ,FR22 有部分區域落在螢幕之外,因此只有在螢幕內的部分區域為有效。原FR15 整個落在螢幕之外因此整個FR15 為無效,不再有FR25 。依據新的聚焦區域FR21 ,FR22 ,FR23 ,FR24 重新計算新的聚焦中心FC12 。Since the image after the movement and zooming has been changed, the focus areas FR 21 , FR 22 , FR 23 , FR 24 are re-updated, and some areas of FR 21 and FR 22 fall outside the screen, so only the part inside the screen The area is valid. The original FR 15 falls entirely outside the screen so the entire FR 15 is invalid and there is no longer FR 25 . The new focus center FC 12 is recalculated according to the new focus areas FR 21 , FR 22 , FR 23 , FR 24 .
接著,重新設置移動向量。移動向量的方向是從FC12 指向SC12 。移動向量的長度為delta/50,delta為FC12 和SC12 的距離。Next, reset the motion vector. The direction of the motion vector is from FC 12 to SC 12 . The length of the motion vector is delta/50, and delta is the distance between FC 12 and SC 12 .
接著,再繼續設定放大倍率(例如放大至66%)並決定移動向量。其中移動向量之縮放-位移參數為(delta/50)×(66-50)=delta/3(在此係以取整數為例)。因此在移動及縮放影像之後,如圖5C所示,螢幕顯示區11之顯示中心SC13 係位於原顯示中心SC12 與聚焦中心FC12 連線的三分之一處。重新更新聚焦區域並依據新的聚焦區域FR33 ,FR34 ,計算新的聚焦中心FC13 。Then, continue to set the magnification (for example, to 66%) and decide to move the vector. The scaling-displacement parameter of the motion vector is (delta/50)×(66-50)=delta/3 (in this case, an integer is taken as an example). Therefore, after moving and zooming the image, as shown in FIG. 5C, the display center SC 13 of the screen display area 11 is located at one third of the line connecting the original display center SC 12 and the focus center FC 12 . The focus area is renewed and a new focus center FC 13 is calculated based on the new focus areas FR 33 , FR 34 .
重新設置移動向量。移動向量的方向是從FC13 指向SC13 。移動向量的長度為delta/34,delta為FC13 和SC13 的距離。Reset the motion vector. The direction of the motion vector is from FC 13 to SC 13 . The length of the motion vector is delta/34, and delta is the distance between FC 13 and SC 13 .
再繼續設定放大倍率(例如放大至100%)時,計算實際的移動向量為(delta/34)×(100-66)=delta。如圖5D所示,當影像放大至100%時,將顯示中心SC14 與聚焦中心FC14 重疊。When the magnification is continuously set (for example, to 100%), the actual motion vector is calculated as (delta/34) × (100 - 66) = delta. 5D, when the image is magnified to 100%, the display center SC 14 and the focus center FC 14 overlap.
請參照圖6所示,本發明較佳實施例之影像縮放裝置2置係與顯示於一螢幕顯示區之一影像配合應用。影像縮放裝置2包含一聚焦區域設定模組21、一聚焦中心計算模組22、一放大比率設定模組23、一移動向量計算模組24以及一執行模組25。聚焦區域設定模組21係於影像中對影像設定至少一聚焦區域。聚焦中心計算模組22係依據聚焦區域得到一聚焦中心。放大比率設定模組23係設定影像之縮放比率。移動向量計算模組24係依據螢幕顯示區之中心位置、聚焦中心及縮放比率而得到及一移動向量。執行模組25係依據移動向量移動影像於螢幕顯示區中之位置,並依據縮放比率設定影像於螢幕顯示區中之影像大小。其中相關敘述已於上述實施例中說明,故於此不在加以贅述。Referring to FIG. 6, the image zooming device 2 of the preferred embodiment of the present invention is coupled to an image displayed in a screen display area. The image zooming device 2 includes a focus area setting module 21, a focus center calculation module 22, an enlargement ratio setting module 23, a motion vector calculation module 24, and an execution module 25. The focus area setting module 21 sets at least one focus area for the image in the image. The focus center calculation module 22 obtains a focus center based on the focus area. The enlargement ratio setting module 23 sets the zoom ratio of the image. The motion vector calculation module 24 obtains a motion vector according to the center position, the focus center, and the zoom ratio of the display area of the screen. The execution module 25 moves the image in the screen display area according to the motion vector, and sets the image size of the image in the screen display area according to the zoom ratio. The related description has been described in the above embodiments, and thus will not be described herein.
在計算聚焦中心以及位移向量時,遵循以下規則:When calculating the focus center and the displacement vector, the following rules are followed:
a,當只有一個聚焦區域時,不論該聚焦區域是否有部分在螢幕之外,聚焦中心始終是該聚焦區域的中心。a, when there is only one focus area, regardless of whether or not the focus area is outside the screen, the focus center is always the center of the focus area.
b,每個聚焦區域都有一個中心,螢幕應該容納盡可能多的聚焦區域的中心。b, each focus area has a center, and the screen should accommodate as many of the center of the focus area as possible.
c,任何時刻至少要有一個聚焦區域的中心落在螢幕中。c. At least one center of the focus area should fall on the screen at any time.
綜上所述,依本發明之影像縮放裝置及影像縮放方法係利用物件辨識技術(例如人臉辨識技術、或移動物辨識技術、或建築物辨識技術、或自然景觀辨識技術)以設定螢幕顯示區中的聚焦區域,並據以得到聚焦中心,且在計算出移動向量之後將聚焦中心往螢幕顯示區的中心位置移動,以令使用者在對影像縮放後,能夠自動將影像中的主題盡量呈現在螢幕顯示區中。如此一來,使用者即可減少拖拉影像的次數,而可輕易地瀏覽或檢視影像中的主題。In summary, the image zooming device and the image zooming method according to the present invention use object recognition technology (such as face recognition technology, mobile object recognition technology, or building identification technology, or natural landscape recognition technology) to set the screen display. The focus area in the area, and the focus center is obtained, and after the motion vector is calculated, the focus center is moved to the center position of the screen display area, so that the user can automatically zoom the subject in the image after zooming the image. Presented in the screen display area. In this way, the user can reduce the number of times the image is dragged, and the subject in the image can be easily browsed or viewed.
以上所述僅為舉例性,而非為限制性者。任何未脫離本發明之精神與範疇,而對其進行之等效修改或變更,均應包含於後附之申請專利範圍中。The above is intended to be illustrative only and not limiting. Any equivalent modifications or alterations to the spirit and scope of the invention are intended to be included in the scope of the appended claims.
1...顯示器1. . . monitor
11...螢幕顯示區11. . . Screen display area
2...影像縮放裝置2. . . Image zooming device
21...聚焦區域設定模組twenty one. . . Focus area setting module
22...聚焦中心計算模組twenty two. . . Focus center computing module
23...放大比率設定模組twenty three. . . Magnification ratio setting module
24...移動向量計算模組twenty four. . . Mobile vector computing module
25...執行模組25. . . Execution module
FR01 、FR02 、FR11 ~FR15 、FR21 ~FR24 、FR33 ~FR34 ...聚焦區域FR 01 , FR 02 , FR 11 ~ FR 15 , FR 21 ~ FR 24 , FR 33 ~ FR 34 . . . Focus area
FC01 、FC02 、FC03 、FC11 、FC12 、FC13 、FC14 ...聚焦中心FC 01 , FC 02 , FC 03 , FC 11 , FC 12 , FC 13 , FC 14 . . . Focus center
SC01 、SC02 、SC03 、SC11 、SC12 、SC13 、SC14 ...顯示中心SC 01 , SC 02 , SC 03 , SC 11 , SC 12 , SC 13 , SC 14 . . . Display center
S01~S05、S11~S18...影像縮放方法之步驟S01~S05, S11~S18. . . Steps for image scaling
圖1A及圖1B為習知影像縮放動作之一示意圖;1A and 1B are schematic diagrams showing a conventional image zooming action;
圖2為本發明較佳實施例之影像縮放方法之一流程圖;2 is a flow chart of an image zooming method according to a preferred embodiment of the present invention;
圖3為本發明較佳實施例進一步說明影像縮放方法之一流程圖;3 is a flow chart showing a method for image zooming according to a preferred embodiment of the present invention;
圖4A至圖4C為本發明較佳實施例之單一聚焦區域之影像縮放動作之示意圖;4A-4C are schematic diagrams showing an image zooming action of a single focus area according to a preferred embodiment of the present invention;
圖5A至圖5D為本發明較佳實施例之複數聚焦區域之影像縮放動作之示意圖;以及5A-5D are schematic diagrams showing image zooming operations of a plurality of focus regions according to a preferred embodiment of the present invention;
圖6為本發明較佳實施例之影像縮放裝置之一示意圖。FIG. 6 is a schematic diagram of an image zooming device according to a preferred embodiment of the present invention.
S01~S05...影像縮放方法之步驟S01~S05. . . Steps for image scaling
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW98100084A TWI407429B (en) | 2009-01-05 | 2009-01-05 | Image zooming device and image zooming method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW98100084A TWI407429B (en) | 2009-01-05 | 2009-01-05 | Image zooming device and image zooming method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201027511A TW201027511A (en) | 2010-07-16 |
| TWI407429B true TWI407429B (en) | 2013-09-01 |
Family
ID=44853238
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW98100084A TWI407429B (en) | 2009-01-05 | 2009-01-05 | Image zooming device and image zooming method |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI407429B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101079964A (en) * | 2006-04-24 | 2007-11-28 | 富士胶片株式会社 | Image reproducing device, image reproducing method, image reproducing program and image capturing device |
| TW200829014A (en) * | 2006-10-31 | 2008-07-01 | Sony Corp | Image storage device, imaging device, image storage method, and program |
| CN101212571A (en) * | 2006-12-27 | 2008-07-02 | 富士胶片株式会社 | Image capturing apparatus and focusing method |
| CN101329860A (en) * | 2007-06-22 | 2008-12-24 | 鸿富锦精密工业(深圳)有限公司 | Image scaling system and scaling method |
-
2009
- 2009-01-05 TW TW98100084A patent/TWI407429B/en active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101079964A (en) * | 2006-04-24 | 2007-11-28 | 富士胶片株式会社 | Image reproducing device, image reproducing method, image reproducing program and image capturing device |
| TW200829014A (en) * | 2006-10-31 | 2008-07-01 | Sony Corp | Image storage device, imaging device, image storage method, and program |
| CN101212571A (en) * | 2006-12-27 | 2008-07-02 | 富士胶片株式会社 | Image capturing apparatus and focusing method |
| CN101329860A (en) * | 2007-06-22 | 2008-12-24 | 鸿富锦精密工业(深圳)有限公司 | Image scaling system and scaling method |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201027511A (en) | 2010-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8456490B2 (en) | Image zooming method for shifting non-dynamic image and setting size of non-dynamic image executed by computing device | |
| JP6982047B2 (en) | User interface for camera effects | |
| JP7705981B2 (en) | User Interface Camera Effects | |
| JP7467553B2 (en) | User interface for capturing and managing visual media | |
| US11706521B2 (en) | User interfaces for capturing and managing visual media | |
| CN111901475B (en) | User interface for capturing and managing visual media | |
| US11770601B2 (en) | User interfaces for capturing and managing visual media | |
| CN104756475B (en) | Camera zoom designator in mobile device | |
| CN104704805B (en) | Information processing unit, information processing method and non-transitory computer-readable medium | |
| EP2685366A2 (en) | Tablet device, and operation receiving method | |
| KR101660576B1 (en) | Facilitating image capture and image review by visually impaired users | |
| US10241660B2 (en) | Display control apparatus, method for controlling the same, and storage medium | |
| CN105814522A (en) | Device and method for displaying user interface of virtual input device based on motion recognition | |
| WO2017032035A1 (en) | Method and device for adjusting, and terminal | |
| TWI407429B (en) | Image zooming device and image zooming method | |
| JP6927540B1 (en) | Information processing equipment, information processing system, information processing method and program | |
| TWI823301B (en) | Method for zooming visual content, host, and computer readable medium | |
| JP2020178282A5 (en) | ||
| KR20160014414A (en) | Portable electronic device having camera and controlling method of the same | |
| JP2016024671A (en) | Display control device and display control program, and electronic apparatus | |
| CN107463943A (en) | Face value scoring method, training method and device with people's face value difference value grader |