An image processing method and image processing device
An image processing device and image processing technology, which are applied in the field of image processing, can solve problems such as slow computing speed, failure to reach users, and low efficiency, and achieve the effects of improving satisfaction, timely display, and clear pictures
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] Embodiment 1: In this embodiment, the user selects the selected area through the horizontal mode as an example for illustration:
[0032] Step 1. The user triggers the event by drawing a horizontal line segment AB in the display area. The screen physical coordinates of the two ends of the line segment are A(x A ,y A ), B(x B ,y B ), taking the line segment AB as the image data a of the selected area.
[0033] Step 2. In this embodiment, if it is in the horizontal mode, the result of zooming in on the selected area can be horizontally zooming in on the image range w corresponding to the line segment AB to the maximum width W of the display area.
[0034] The process of obtaining f' can be realized by the following formula:
[0035] f'=(f÷w)×W
[0036] Step 3, the zoom factor f of the image file corresponding to the zoom factor f' and the stored corresponding image files of all zoom ratios i Do the comparison and find out the layer coefficient f that is closest to t...
Embodiment 2
[0047] Embodiment 2: In this embodiment, the user selects the selected area through the vertical mode as an example for illustration:
[0048] Step 1. Draw a vertical line segment AB in the display area, and the screen physical coordinates of the two ends of the line segment are A(x A ,y A ), B(x B ,y B ), taking the line segment AB as the image data a of the selected area.
[0049] Step 2. In this embodiment, if it is a vertical mode, the enlarged result of the selected area may be to vertically enlarge the image range h corresponding to the line segment AB to the maximum height H of the display area.
[0050] The process of obtaining f' can be realized by the following formula:
[0051] f'=(f÷h)×H
[0052] Obtaining the image data of the size of the display area according to f' is similar to step 3 to step 5 in the embodiment, and will not be repeated here.
Embodiment 3
[0053] Embodiment 3. In this embodiment, the user selects the selected area through the area mode as an example for illustration:
[0054] Step 1. Draw a line segment AB arbitrarily in the display area, and the screen physical coordinates of the two ends of the line segment are A(x A ,y A ), B(x B ,y B ), a rectangular area with the two endpoints of this line segment as the diagonal points is used as the image data a of the selected area.
[0055] Step 2. In this embodiment, since the operation mode is the regional mode, in order not to make the corresponding area of the selected area on the corresponding zoom ratio image file exceed the scope of the display area after zooming in, only the height and width are selected when zooming in. The magnification ratio with the smaller magnification factor is used as the magnification basis for magnification. This can be achieved with the following formula:
[0056] f' w =(f÷w)×W
[0057] Among them, f' w is the zoom rate calc...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 