Supercharge Your Innovation With Domain-Expert AI Agents!

Image stretching method and device, electronic equipment and storage medium

An image stretching and image technology, applied in the field of image processing, can solve problems such as abnormal display effect and complex image process, and achieve the effect of improving display effect and simplifying the process of storing image resources

Pending Publication Date: 2021-08-13
BIGO TECH PTE LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide an image stretching method, device, electronic equipment, and storage medium to solve the problem in the prior art that in order to achieve image stretching, the image needs to be encoded and uploaded to the server, resulting in a complicated process, and the terminal model is suitable for The problem of abnormal display effect due to configuration

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image stretching method and device, electronic equipment and storage medium
  • Image stretching method and device, electronic equipment and storage medium
  • Image stretching method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] figure 2 It is a flow chart of the steps of an image stretching method provided by Embodiment 1 of the present invention. This embodiment of the present invention is applicable to the situation of stretching an image. The method can be executed by the image stretching device of the embodiment of the present invention. The image The stretching device can be implemented by hardware or software, and integrated in the electronic device provided by the embodiment of the present invention, specifically, such as figure 2 As shown, the image stretching method in the embodiment of the present invention may include the following steps:

[0036] S201. Determine a segmentation point in the image to be stretched.

[0037] In the embodiment of the present invention, the image to be stretched is a static image, and the four rounded corners of the static image have specific decorative features, and the borders and middle parts other than the four rounded corners have single pixels. ...

Embodiment 2

[0047] Figure 3A It is a flow chart of the steps of an image stretching method provided by Embodiment 2 of the present invention. The embodiment of the present invention is optimized on the basis of the foregoing Embodiment 1. Specifically, as Figure 3A As shown, the image stretching method in the embodiment of the present invention may include the following steps:

[0048] S301. Determine the center point of the image to be stretched as the segmentation point.

[0049] In the embodiment of the present invention, the image to be stretched is a static image, and the four rounded corners of the static image have specific decorative features, and the borders and middle parts other than the four rounded corners have single pixels.

[0050] like Figure 3B As shown, any point can be selected from the image to be stretched as the segmentation point m0. For example, since the decorative features of the four rounded corners of the image need to be maintained after stretching the i...

Embodiment 3

[0071] Figure 4A It is a flow chart of the steps of an image stretching method provided by Embodiment 3 of the present invention. The embodiment of the present invention is optimized on the basis of the foregoing Embodiment 1. Specifically, as Figure 4A As shown, the image stretching method in the embodiment of the present invention may include the following steps:

[0072] S401. Determine the center point of the image to be stretched as the segmentation point.

[0073] S402. Generate a first dividing line through the dividing point, the first dividing line is perpendicular to and intersects the first boundary and the second boundary of the image to be stretched, and the first boundary and the second boundary are Two parallel boundaries in the image to be stretched;

[0074] S403. Generate a second dividing line perpendicular to the first dividing line through the dividing point so as to divide the image to be stretched into sub-images located in four quadrants, and the seco...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses an image stretching method and device, electronic equipment and a storage medium. The image stretching method comprises the steps of determining segmentation points in a to-be-stretched image; generating a first segmentation line and a second segmentation line which are perpendicular to each other by taking the segmentation point as an original point, so as to segment the to-be-stretched image into sub-images located in four quadrant regions; determining a target image area, filling four vertex angle areas of the target image area with the four sub-images according to quadrant areas where the sub-images are located, and copying common boundaries and segmentation points of two adjacent sub-images to fill the target image area to obtain a stretched target image. According to the image stretching method provided by the embodiment of the invention, the to-be-stretched image can be directly stored on the server without using a nine-point image, the process of storing image resources by the server is simplified, the image stretching method is realized by copying the boundary, is not limited by the model and is suitable for any model, and the stretched target image keeps the boundary details of the to-be-stretched image, so that the image stretching efficiency is improved. The display effect is improved.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of image processing, and in particular, to an image stretching method, device, electronic equipment, and storage medium. Background technique [0002] In Android development, Dot9Picture, which supports adaptive dynamic stretching, is very popular. Dot9Picture is used in a wide range of scenarios, such as chat bubbles, new function guides, etc. Static images are usually Dot9Pictures. [0003] At present, when using Dot9Diagram on the Android terminal side, you need to put Dot9Diagram under the resource directory of the project on the terminal side, and call it directly through the code, which is simple and convenient. However, in actual application development, in order to make the product more flexible to adjust and change the image resources, the image resources need to be placed on the server, but the dot-nine image is directly sent from the server, and it cannot be adaptively stretc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T3/00
CPCG06T3/04
Inventor 刘导安
Owner BIGO TECH PTE LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More