Background technology
On image shows, usually need image data is shown on the picture with a certain special ratios, the application of this class often by in be built in many softwares or the hardware, for example in video editing software or the digital camera image to display is amplified or dwindles.
In the prior art, the application of this class is a position reference with the image position (as pixel) that image data is positioned at viewing area central authorities normally, original image data according to behind the displaying ratio resize ratio, is produced an image with position reference in viewing area central authorities again.Because when displaying ratio changes, new image must exceed or less than original indication range, so the user must allow pan want that the image part of seeing can show in the viewing area.So mean and to expend many computing costs, as shown in Figure 1, at first in step 110, obtain a displaying ratio and a position reference, the acquisition mode of displaying ratio can have a variety of, one take out as in one group of displaying ratio decided at the higher level but not officially announced, selecting, with one in certainty ratio geometric ratio increase displaying ratio or directly import by the user.And position reference generally is can to obtain the position of the upper left corner (as first location of pixels of viewing area) in video data with viewing area central authorities.Then shown in step 120, with whole image datas according to the displaying ratio resize ratio to produce a new image.Next shown in step 130, image is shown in the viewing area according to position reference.At last, as described in step 140, constantly the translation image shows that up to the viewing area desired image partly.
Image produces after with whole image data resize ratios in above-mentioned method, if image data is very huge, will have following shortcoming.At first general image all is to leave an image frame buffer (frame buffer) in output as last, it is very big to mean that with the method for prior art the image frame buffer also needs, and only some can be used to be shown in the viewing area in the image frame buffer, and other is partly all by idle.In addition, image when each translation, need in the image frame buffer, obtain again again a part of image show with the viewing area in, need many computing costs.Moreover, before the image translation, can't expect shown image after the translation, therefore need translation constantly till suitably.Each translation all needs extra electric power and time, if be applied in (as digital camera) on the portable apparatus that takes much count of cost and electric power, it is very uneconomical to become in the use of hardware cost and battery electric power.
Obviously, in handling said method, the method for disconnected translation picture is very uneconomic to adjust behind the displaying ratio or else, therefore needs more economical method or system offers portable apparatus.
Embodiment
Some embodiments of the present invention can be described in detail as follows.Yet except describing in detail, the present invention can also be widely implements at other embodiment, and scope of the present invention do not limited, and its scope with claims is as the criterion.
Moreover for clearer description being provided and being more readily understood the present invention, each several part is not drawn according to its relative size in the icon, and some size is compared with other scale dependent and exaggerated; Incoherent detail section is not drawn fully yet, succinct in the hope of icon.
In the prior art, in the time of carrying out the adjustment of image, use the first resize ratio method of translation picture again, so need to cooperate bigger image frame buffer and computing cost.Therefore, main being characterised in that of the present invention indicates the actual position reference that will show in the picture earlier, calculate the picture that makes new advances with this position reference according to displaying ratio (predeterminable or by user adjust) again, be shown in again in the viewing area (for example: LCD or oled panel).Therefore, in the adjustment process of image, do not need translation picture constantly, so can save a large amount of computing costs.Because picture does not need by continuous translation yet, therefore can not need that all resize ratio is required for translation with whole image datas, only need the needed part image data of new picture resize ratio is produced new image, therefore can save unnecessary image frame buffer, in addition, the picture element of the new image that produced can also be produced successively and directly export the viewing area to, and not need the image frame buffer.
Therefore, a specific embodiment of the present invention is a kind ofly to adjust the method that digitized video shows with single coordinate, shown in Fig. 2 A, is the schematic flow sheet of present embodiment.At first, by step 210 image is shown in the viewing area, after this image can obtain dicom message by digital capture device, show according to the image data form, and this image data can be stored in the different Storage Media (for example: disk, storage card, memory or the like) with different form (for example: pixel, archives), and the present invention does not limit for the form and the storing mode of image data.In addition, kind shown image in viewing area can be only to show the part of pick-up image or whole data, the present invention for this pick-up image data in the viewing area the scope that can be showed do not limit.And the square 2100 among Fig. 2 B is the schematic diagram of corresponding steps 210.
Then shown in step 220, obtain a position reference of image data, this position reference is to obtain with respect to a coordinate of viewing area according to image data, that is is used as position reference with the relative position of this coordinate of being shown in the viewing area in the image data.For example can be with a pointer (cursor for example; Cursor) move on to this coordinate after, obtain position reference, or obtain the position reference coordinate by user's input coordinate, this coordinate basis be in image data with respect to the relative position of this coordinate, that is to find out in image data be that what person is used to be presented at this coordinate.And this relative position can be a relative coordinate or a location of pixels, and the present invention does not limit for the acquisition mode of position reference and the manifestation mode of relative position.In addition, in step 220, also can obtain the coordinate of the center of a viewing area simultaneously, so that the reference coordinate point during as show image again.And the square 2200 among Fig. 2 B is the schematic diagram of corresponding steps 220.
Next, according in the step 220, the cursor position the corresponding position reference that goes out, and, obtain a displaying ratio according to shown in the step 230.The acquisition mode of this displaying ratio can have a variety of, for example come geometric ratio to increase displaying ratio with a predefined ratio or in one group of predefined displaying ratio the ratio of selecting come geometric ratio to increase displaying ratio or directly import by the user, the present invention does not limit the acquisition mode of displaying ratio.
At last, shown in step 240, image data is directly produced show image again or again image is shown in the viewing area with reference to the coordinate of this center according to displaying ratio and position reference.The demonstration of image is an anchor point with pointer position benchmark, and anchor point can be any ad-hoc location in the viewing area, for example, this ad-hoc location can be that four corners of central authorities, viewing area of viewing area are (as the upper left corner, the upper right corner, the lower left corner and the lower right corner) one of or other position, the present invention is not limited this ad-hoc location.Then, again image is resulted from the viewing area according to a displaying ratio, the image that produces again can be former image is amplified according to a predefined displaying ratio or to dwindle in addition, or former image data directly be multiply by displaying ratio to be amplified or dwindle.In addition, the size of image can only be mated (promptly only producing image with the local image data) with the viewing area, can exceed viewing area (promptly producing image) with whole image data, can be that coordinate with reference to this center is shown in the viewing area with image again, the present invention not be limited the size of image yet.The former can save the cost of image frame buffer, or does not even need the image frame buffer directly to show in the viewing area, and the latter can save the time of user's translation image, but comparatively expends computing cost (as electric power) and need a large amount of image frame buffers.And the square 2300 among Fig. 2 B is the schematic diagram after corresponding steps 240 is handled.In view of the above, present embodiment not only has the function of prior art translation, more can allow the user easier and more time saving and energy saving choosing of image.
Another specific embodiment of the present invention is to adjust the method that digitized video shows with several coordinates, and Fig. 3 A is the schematic flow sheet of present embodiment.Present embodiment and last embodiment difference part are that this example replaces step 220 and step 230 among Fig. 2 A respectively with step 320 and step 330.In step 320, obtain one first coordinate 3110 (shown in Fig. 3 B) and one second coordinate 3120 (shown in Fig. 3 B), and obtaining of this first coordinate and second coordinate can be to be imported by the user, or a pointer that will be shown on the viewing area by the user moves on on the position of first coordinate and second coordinate successively, with scope or the zone that obtains a coordinate.
Obtaining of the first above-mentioned coordinate and second coordinate can be considered a scope of demarcating the viewing area, perhaps can be considered to demarcate viewing area one scope to obtain first coordinate and second coordinate.For example, in the mode (shown among Fig. 3 B 3210) of demarcating a rectangle in the viewing area, can demarcate in first coordinate, 3110 places by first steering needle, next, in moving hand, showing one in the viewing area is the rectangle frame line 3210 of the two-end-point at diagonal angle with first coordinate and pointer position, in order to show the scope that indicates.The rectangle frame line 3210 of the two-end-point that it is the diagonal angle that perhaps direct steering needle priority produces with this two coordinate after first coordinate 3110 and 3120 demarcation of second coordinate is in order to the scope of demonstration sign.Similarly, the scope of being demarcated is not limited to rectangle, more can be circle (producing as diameter with first coordinate and second coordinate), oval (recently producing as oval-shaped major axis or the minor axis length and width according to the viewing area with first coordinate and second coordinate).
Then, the range size that is defined according to this first coordinate 3110 and this second coordinate 3120 in step 330 is calculated displaying ratio and position reference, wherein position reference can for first coordinate 3110 and second coordinate 3120 both one of or the central point 3130 (as shown in Fig. 3 B) of the scope that both defined obtain.And displaying ratio can be to obtain according to the vertical width of the viewing area ratio with respect to vertical range between first coordinate and second coordinate, or obtains according to the horizontal width of this viewing area ratio with respect to horizontal range between this first coordinate and this second coordinate.
At last, described as step 240, image data is directly produced show image again according to displaying ratio and position reference, because of details is all identical with last embodiment, do not repeat them here.
According to above-mentioned method, a specific embodiment more of the present invention provides a kind of system that digitized video shows that adjusts, as shown in Figure 4, comprise a shadow memory unit 31, an interface unit 32, an image process unit 33, a display unit 34 and a buffer cell 35.Shadow memory unit 31 is in order to write down an image data 312, this image data 312 is described according to above-mentioned steps 210, produce image by image process unit 33 according to image data 312, and image is transferred to display unit 34 show, wherein the image that is produced can be deposited in a buffer cell 35, therefore buffer cell 35 can comprise an image buffering area (buffer) and stores image, shows for display unit 34.
In addition, image process unit 33 more is included in and adds a pointer 352 in the image, these pointer 352 positions can be corresponding go out a coordinate position, the data of this coordinate can be stored in the buffer cell 35, simultaneously, can change the position that this coordinate comes steering needle 352 by interface unit 32, wherein this coordinate can be defined the position that pointer 352 is shown in viewing area 342, or be shown in the position (as a certain location of pixels in the image data 312, this location of pixels is displayed on the position at pointer 352 places) at pointer 352 places in the viewing area 342 in the image data 312.
In addition, interface unit 32 more can be used to produce a position reference 354 and a displaying ratio 356 according to above-mentioned steps 220 and step 230, this position reference 354 is the ad-hoc location in the image data 312, its acquisition mode can be obtained or obtain according to pointer coordinate 352 when pointer 352 moved on to ad-hoc location or other utilizes coordinate to obtain the mode of ad-hoc location in the image data 312 by user's input coordinate, wherein position reference 354 can be stored in the buffer cell 35 with displaying ratio 356, therefore buffer cell 35 can comprise several buffers, in order to store above-mentioned pointer coordinate 352, position reference 354 and displaying ratio 356.
Moreover interface unit 32 more can be obtained one first coordinate 3110 and one second coordinate 3120 according to above-mentioned steps 320 and step 330, and two coordinates are obtained position reference 354 and displaying ratio 356 according to this.Therefore, more comprising in interface unit 32 provides an option, in order to select the acquisition mode of displaying ratio 356, as obtaining or obtain according to first coordinate and second coordinate by user's input or by selecting one in one group of default displaying ratio 356.In view of the above, image process unit 33 more can be described according to above-mentioned steps 240, and image data 312 is produced the image that is shown in viewing area 342 again according to displaying ratio 356 and position reference 354.Other details of present embodiment is addressed in aforesaid embodiment, does not repeat them here.
The present invention can be applicable to have the system of location and display capabilities, can display pointer be not necessary condition of the present invention, for example be applied in system with Touch Screen, above-mentioned position reference or coordinate can be obtained during by touch-control in screen, in such system, pointer can be shown on the screen, also can not be shown on the screen.The present invention more can be applicable on the portable apparatus such as digital camera or mobile phone in addition.
The above is preferred embodiment of the present invention only, is not in order to limit protection scope of the present invention; Simultaneously above description should be understood and be implemented for the special personage who knows the present technique field, so other does not break away from the equivalence of being finished under the disclosed spirit and change or modification, all should be included in the scope of claims.