CN112634124B - Image warping method, image warping device, electronic apparatus, and storage medium - Google Patents

Image warping method, image warping device, electronic apparatus, and storage medium Download PDF

Info

Publication number
CN112634124B
CN112634124B CN202011455468.1A CN202011455468A CN112634124B CN 112634124 B CN112634124 B CN 112634124B CN 202011455468 A CN202011455468 A CN 202011455468A CN 112634124 B CN112634124 B CN 112634124B
Authority
CN
China
Prior art keywords
image
pixels
boundary
scaling
target boundary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011455468.1A
Other languages
Chinese (zh)
Other versions
CN112634124A (en
Inventor
权甲
赵健
陈海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenlan Industrial Intelligent Innovation Research Institute Ningbo Co ltd
Original Assignee
Shenlan Industrial Intelligent Innovation Research Institute Ningbo Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenlan Industrial Intelligent Innovation Research Institute Ningbo Co ltd filed Critical Shenlan Industrial Intelligent Innovation Research Institute Ningbo Co ltd
Priority to CN202011455468.1A priority Critical patent/CN112634124B/en
Publication of CN112634124A publication Critical patent/CN112634124A/en
Application granted granted Critical
Publication of CN112634124B publication Critical patent/CN112634124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/18Image warping, e.g. rearranging pixels individually

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The embodiment of the application relates to the technical field of image processing, and provides an image deformation method, an image deformation device, electronic equipment and a storage medium, wherein the image deformation method comprises the following steps: receiving a first input instruction of a user; responding to the first input instruction, and outputting a target boundary, wherein the target boundary is a boundary of a two-dimensional closed graph; determining an inscribed rectangle or an circumscribed rectangle of the target boundary; scaling the original image by taking the inscribed rectangle or the circumscribed rectangle as a limit, and outputting a primary deformed image; and scaling the primary deformed image by taking the target boundary as a limit, and outputting a target deformed image of the original image. The image deformation method can be used for target boundaries of various shapes, the whole image deformation method is executed by taking the target boundary which directly represents the final result as a starting point, the ideal deformation effect can be ensured, the operation of the whole image deformation method is simple, excessive manual operation of operators is not needed, and the method is convenient and quick.

Description

Image warping method, image warping device, electronic apparatus, and storage medium
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to an image warping method, an image warping device, an electronic apparatus, and a storage medium.
Background
Image morphing is a common means of re-authoring an original image. In the prior art, the original image is deformed generally as follows: and triggering a deformation mode through the target control, dragging a plurality of designated control points on the image by using a mouse, and adaptively deforming the original image according to the positions of the control points.
At least two problems exist with this image morphing approach: the operation is complex, and the using threshold is high; (2) The user can only finish image deformation through dragging a plurality of control points, the flexibility is low, the plurality of control points are required to be finely adjusted for detail adjustment, and the expected effect is difficult to achieve.
Disclosure of Invention
The application provides an image deformation method for realizing rapid deformation to a target shape.
The application provides an image deformation method, which comprises the following steps: receiving a first input instruction of a user; responding to the first input instruction, and outputting a target boundary, wherein the target boundary is a boundary of a two-dimensional closed graph; determining an inscribed rectangle or an circumscribed rectangle of the target boundary; scaling the original image by taking the inscribed rectangle or the circumscribed rectangle as a limit, and outputting a primary deformed image; and scaling the primary deformed image by taking the target boundary as a limit, and outputting a target deformed image of the original image.
According to the image deformation method provided by the application, the scaling the primary deformed image by taking the target boundary as a limit, and outputting the target deformed image of the original image, includes:
determining two first intersection points which are farthest from each other in intersection points of a straight line where a row of pixels of the primary deformation image are located along a first direction and the target boundary;
scaling the pixels of the corresponding row of the primary deformed image by taking the two first intersection points as boundaries, and outputting a deformed image in a first direction;
determining two second intersection points, which are farthest from the target boundary, of a straight line where a row of pixels of the first direction deformation image are located along a second direction;
scaling the pixels of the corresponding row of the first direction deformation image by taking the two second intersection points as boundaries, and outputting a target deformation image; wherein the method comprises the steps of
The second direction is perpendicular to the first direction.
According to the image morphing method provided in the application, scaling the pixels of the corresponding row of the primary morphing image with the two first intersection points as boundaries includes: scaling the pixels of the corresponding row of the primary deformed image in equal proportion by taking the midpoint of the two first intersection points as a first boundary center;
Scaling a corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, including: scaling the corresponding row of pixels of the first direction deformation image in equal proportion by taking the midpoint of the two second intersection points as a second boundary center;
or,
the scaling the corresponding row of pixels of the primary deformed image with the two first intersection points as boundaries includes: determining the scaling of each pixel in the corresponding row of pixels of the primary deformed image based on the distance from the pixel to the first boundary center by taking the midpoint of the two first intersection points as the first boundary center;
scaling a corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, including: and determining the scaling of each pixel in the corresponding row of pixels of the first direction deformation image based on the distance from each pixel to the second boundary center by taking the midpoint of the two second intersection points as the second boundary center.
According to the image morphing method provided in the application, scaling the pixels of the corresponding row of the primary morphing image with the two first intersection points as boundaries includes: scaling the pixels of the corresponding row of the primary deformed image in equal proportion by taking the midpoint of the pixels of the row of the primary deformed image as the center of a first pixel;
Scaling a corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, including: scaling a corresponding row of pixels of the first direction deformed image with a second pixel center of a row of pixels of the first direction deformed image as a center;
or,
the scaling the corresponding row of pixels of the primary deformed image with the two first intersection points as boundaries includes: determining a scaling of each pixel in a corresponding row of pixels of the primary deformed image based on a distance from the pixel to a first pixel center by taking a midpoint of the row of pixels of the primary deformed image as a first pixel center;
scaling a corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, including: and taking the midpoint of a row of pixels of the first direction deformation image as a second pixel center, and determining the scaling of each pixel in the corresponding row of pixels of the first direction deformation image based on the distance from the pixel to the second pixel center.
According to the image deformation method provided by the application, the determining the inscribed rectangle or the circumscribed rectangle of the target boundary includes:
Judging the concave-convex attribute of the target boundary;
determining the target boundary as convex, outputting an inscribed rectangle of the target boundary, and displaying the inscribed rectangle on the target boundary;
or determining the target boundary as concave, outputting a circumscribed rectangle of the target boundary, and displaying the circumscribed rectangle on the target boundary.
According to the image deformation method provided by the application, the judging of the concave-convex attribute of the target boundary comprises the following steps:
scanning each row and each column of the target boundary with two straight lines perpendicular to each other;
determining that the target boundary is convex under the condition that the number of intersections between the target boundary and each straight line is not more than 2;
or determining that the target boundary is concave when the number of intersection points of the target boundary and at least one straight line is greater than 2.
The application also provides an image deformation apparatus, comprising:
the receiving module is used for receiving a first input instruction of a user;
the first processing module is used for responding to the first input instruction and outputting a target boundary, wherein the target boundary is a boundary of a two-dimensional closed graph;
the second processing module is used for determining an inscribed rectangle or an circumscribed rectangle of the target boundary;
The third processing module is used for scaling the original image by taking the inscribed rectangle or the circumscribed rectangle as a limit and outputting a primary deformed image;
and the fourth processing module is used for scaling the primary deformed image by taking the target boundary as a limit and outputting a target deformed image of the original image.
According to the image deformation apparatus provided in the present application, the fourth processing module includes:
the first determining module is used for determining two first intersection points which are farthest from the intersection points of the straight line where a row of pixels of the primary deformation image are located along the first direction and the target boundary;
the first processing submodule is used for scaling the pixels of the corresponding row of the primary deformed image by taking the two first intersection points as boundaries and outputting a deformed image in a first direction;
the second determining module is used for determining two second intersection points, which are farthest away from the target boundary, of a straight line where a row of pixels of the first direction deformation image are located along a second direction;
the second processing submodule is used for scaling the pixels of the corresponding row of the first direction deformation image by taking the two second intersection points as boundaries and outputting a target deformation image; wherein the method comprises the steps of
The second direction is perpendicular to the first direction.
According to the image deformation device provided by the application, the first processing submodule is further used for scaling the pixels of the corresponding row of the primary deformed image in equal proportion by taking the middle point of the two first intersection points as a first boundary center;
the second processing sub-module is further configured to scale the corresponding row of pixels of the first direction deformed image in equal proportion with a midpoint of the two second intersection points as a second boundary center;
or,
the first processing sub-module is further configured to determine a scaling of each pixel in the corresponding row of pixels of the primary deformed image based on a distance from the pixel to the first boundary center by using a midpoint of the two first intersection points as a first boundary center;
the second processing sub-module is further configured to determine a scaling of each pixel in the corresponding row of pixels of the first direction deformed image based on a distance from the pixel to the second boundary center with a midpoint of the two second intersection points as a second boundary center.
According to the image deformation device provided by the application, the first processing submodule is further used for scaling the pixels of the corresponding row of the primary deformed image in equal proportion by taking the middle point of the pixels of the row of the primary deformed image as the center of the first pixel;
The second processing sub-module is further configured to scale the corresponding row of pixels of the first direction deformed image in equal proportion with a second pixel center of the row of pixels of the first direction deformed image as a center;
or,
the first processing sub-module is further configured to determine a scaling of each pixel in a corresponding row of pixels of the primary deformed image based on a distance from the pixel to a center of the first pixel, with a midpoint of the row of pixels of the primary deformed image as a center of the first pixel;
the second processing sub-module is further configured to determine a scaling of each pixel in a corresponding row of pixels of the first direction deformed image based on a distance from the pixel to a center of the second pixel, with a midpoint of the row of pixels of the first direction deformed image as a center of the second pixel.
According to the image deformation device provided by the application, the second processing module comprises:
the first judging module is used for judging the concave-convex attribute of the target boundary;
the first display module is used for determining that the target boundary is convex, outputting an inscribed rectangle of the target boundary and displaying the inscribed rectangle on the target boundary;
or the second display module is used for determining that the target boundary is concave, outputting an circumscribed rectangle of the target boundary and displaying the circumscribed rectangle on the target boundary.
According to the image deformation device provided by the application, the first judging module comprises:
a scanning module for scanning each row and each column of the target boundary with two straight lines perpendicular to each other;
the first determining submodule is used for determining that the target boundary is convex under the condition that the number of intersections between the target boundary and each straight line is not more than 2;
or, a second determining submodule, configured to determine that the target boundary is concave when the number of intersections between the target boundary and at least one straight line is greater than 2.
The application also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any one of the image morphing methods described above when executing the computer program.
The present application also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the image morphing method as described in any of the above.
According to the image deformation method, the image deformation device, the electronic equipment and the storage medium, the original image is zoomed to the inscribed rectangle or the circumscribed rectangle of the target boundary, and then zoomed to the deformation method of the target boundary, so that the method can be used for target boundaries of various shapes, the whole image deformation method is executed by taking the target boundary directly representing the final result as a starting point, the ideal deformation effect can be ensured, the operation of the whole image deformation method is simple, excessive manual operation of operators is not needed, and the method is convenient and quick.
Drawings
For a clearer description of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an image deformation method provided in the present application;
FIG. 2 is a flow chart of an embodiment of step 130 in the image warping method provided in the present application;
FIG. 3 is a flow chart of an embodiment of step 131 in the image warping method provided in the present application;
FIG. 4 is a schematic diagram of step 131b in the image warping method provided in the present application;
FIG. 5 is a schematic diagram of step 131c in the image warping method provided herein;
FIG. 6 is a flow chart of an embodiment of step 150 in the image warping method provided in the present application;
FIG. 7 is a schematic view of an original image to be deformed in the image deformation method provided in the present application;
FIG. 8 is a schematic diagram of a target boundary in the image morphing method provided herein;
FIG. 9 is a schematic diagram of inscribed rectangles for determining object boundaries in the image morphing method provided herein;
FIG. 10 is a schematic diagram of a primary deformed image in the image deformation method provided in the present application;
FIG. 11 is a schematic view of a first direction deformed image in the image deformation method provided in the present application;
FIG. 12 is a schematic view of a target deformation image in the image deformation method provided in the present application;
FIG. 13 is a schematic diagram of acquiring a target boundary in the image deformation method provided in the present application;
FIG. 14 is a schematic view of an original image to be deformed in the image deformation method provided in the present application;
FIG. 15 is a schematic view of a target deformation image in the image deformation method provided in the present application;
FIG. 16 is a schematic view of the structure of the image deformation apparatus provided in the present application;
fig. 17 is a schematic structural view of a second processing module of the image deformation apparatus provided in the present application;
fig. 18 is a schematic structural diagram of a first judging module of the image deforming apparatus provided in the present application;
fig. 19 is a schematic structural view of a fourth processing module of the image deformation apparatus provided in the present application;
fig. 20 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The image morphing method of the present application is described below with reference to fig. 1 to 15.
The image morphing method may be applied to a terminal, and may be specifically performed by, but not limited to, hardware or software in the terminal.
In some embodiments, the terminal includes, but is not limited to, a desktop computer, a notebook, or in some embodiments, a portable device such as a mobile phone or tablet having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad).
In the following various embodiments, a terminal including a display is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a touch panel, a physical keyboard, a mouse, and/or a joystick.
As shown in fig. 1, the image deformation method provided in the embodiment of the present application includes: step 110-step 150.
Step 110, receiving a first input instruction of a user;
in this step, a first input instruction is used to output a target boundary.
Wherein the first input instruction may be represented as at least one of:
first, the first input instruction may be represented by a user inputting through an external input device (such as a mouse, a keyboard, an electronic pen, and keys).
In this embodiment, the terminal is connected to an external input device such as a mouse or a keyboard, and receives a first input instruction from a user, which may be represented by receiving an input from the user clicking, pressing or dragging the mouse, or receiving an input from the user clicking the keyboard.
In a specific embodiment, the first input instruction may be represented by an operation of clicking or dragging a target control by a mouse, where the target control is used to select a target two-dimensional closed figure.
In another specific embodiment, the first input instruction may include an operation of clicking or dragging the first target control by the user through a mouse, selecting a local or cloud target image, where the target image includes a target two-dimensional closed figure, and the first input instruction may further include an operation of clicking the second target control by the user through the mouse, so as to identify a target boundary from the target image.
Second, in the case that the terminal includes a touch-sensitive surface, the first input command may be represented as a touch input, including but not limited to a click input, a slide input, a press input, and the like.
In this embodiment, receiving the first input instruction of the user may be performed by receiving a touch operation of the user in the display area of the terminal display screen.
In order to reduce the user's misoperation rate, the action area of the first input instruction can be limited to a specific area, such as the upper middle area of the interface; or displaying the target control on the current interface, and touching the target control to realize the first input instruction.
Third, the first input instruction may be represented as a voice input.
In this embodiment, the terminal may trigger outputting the target boundary when receiving a voice such as "a circle with a radius of 5cm as the target boundary".
Of course, in other embodiments, the first input instruction may also take other forms, including but not limited to character input, etc., which may be specifically determined according to actual needs, which is not limited in this embodiment of the present application.
Step 120, responding to a first input instruction, and outputting a target boundary, wherein the target boundary is a boundary of a two-dimensional closed graph;
in this step, after receiving the first input instruction, the terminal may output the target boundary in response to the first input instruction, and the target boundary may be displayed on the interface.
The target boundary is the boundary of a two-dimensional closed figure. The object boundary may be a polygon, a circle, an ellipse, or other irregular closed figure.
For example, the object boundary shown in fig. 4 is a circle, the object boundary shown in fig. 5 is an irregular closed figure, the object boundary shown in fig. 8 is a circle, and the object boundary shown in fig. 13 is a quadrangle.
Step 130, determining an inscribed rectangle or an circumscribed rectangle of the target boundary;
in case the target boundary is known, an inscribed rectangle or circumscribed rectangle of the target boundary may be obtained, preferably with a length and width parallel to the lateral and longitudinal directions of the interface, respectively.
In some embodiments, this step may result in an inscribed rectangle of the target boundary, which may be displayed on an image of the target boundary.
As shown in fig. 9, the target boundary is a circle, and an inscribed rectangle is displayed in a line frame on the target boundary.
In other embodiments, this step may result in a circumscribed rectangle of the target boundary, and the inscribed rectangle may be displayed on an image of the target boundary.
Step 140, scaling the original image by taking the inscribed rectangle or the circumscribed rectangle as a limit, and outputting a primary deformed image;
as shown in fig. 10, when the inscribed rectangle is output in step 130, the step is for scaling the original image with the inscribed rectangle as a scaling limit, and outputting a once-deformed image.
In actual implementation, the steps specifically include: scaling the original image in the length direction based on the ratio of the size of the inscribed rectangle in the length direction to the size of the original image in the length direction; the original image is scaled in the width direction based on the ratio of the dimension of the inscribed rectangle in the width direction to the dimension of the original image in the width direction.
In the case where the circumscribed rectangle is output in step 130, the step is used to scale the original image with the circumscribed rectangle as a scaling limit, and output a once deformed image.
In actual implementation, the steps specifically include: scaling the original image in the length direction based on the ratio of the dimension of the circumscribed rectangle in the length direction to the dimension of the original image in the length direction; the original image is scaled in the width direction based on the ratio of the dimension of the circumscribed rectangle in the width direction to the dimension of the original image in the width direction.
And 150, scaling the primary deformed image by taking the target boundary as a limit, and outputting a target deformed image of the original image.
In this step, the scaling boundary is the target boundary obtained in step 110, the scaled object is the primary deformed image obtained in step 140, and scaling is performed to output the target deformed image of the original image.
As shown in fig. 7, the original image is rectangular, and after scaling, the target deformed image shown in fig. 12 is obtained according to the target boundary of the circle.
According to the image deformation method, the original image is zoomed to the inscribed rectangle or the circumscribed rectangle of the target boundary, and then zoomed to the deformation method of the target boundary, so that the method can be used for target boundaries of various shapes, the whole image deformation method is executed by taking the target boundary which directly represents the final result as a starting point, an ideal deformation effect can be ensured, the operation of the whole image deformation method is simple, excessive manual operation of an operator is not needed, and the method is convenient and quick.
In some embodiments, as shown in fig. 2, step 130, determining an inscribed rectangle or circumscribed rectangle of the target boundary, includes step 131 and step 132a, or step 131 and step 132b.
Step 131, judging the concave-convex attribute of the target boundary;
the two-dimensional closed figure has both concave and convex types, such as circular and triangular being convex, and the irregular figure shown in fig. 5 is concave.
132a, determining that the target boundary is convex, outputting an inscribed rectangle of the target boundary, and displaying the inscribed rectangle on the target boundary;
as shown in fig. 9, in the case where the target boundary is convex, an inscribed rectangle of the target boundary is output, and the inscribed rectangle is displayed on the target boundary.
Step 132b, determining that the target boundary is concave, outputting a circumscribed rectangle of the target boundary, and displaying the circumscribed rectangle on the target boundary.
In the case where the target boundary is concave, an inscribed rectangle of the target boundary is output, and the inscribed rectangle is displayed on the target boundary.
Under the condition that the target boundary is polygonal, determining that the target boundary is a convex polygon, outputting an inscribed rectangle of the target boundary, and displaying the inscribed rectangle on the target boundary; and under the condition that the target boundary is polygonal, determining that the target boundary is concave polygon, outputting the circumscribed rectangle of the target boundary, and displaying the circumscribed rectangle on the target boundary.
The length and width of the inscribed rectangle are parallel to the length and width of the interface, and the length and width of the circumscribed rectangle are parallel to the length and width of the interface.
In this way, when scaling is performed, it can be ensured that each line or column of pixels of the original image has two well-defined boundary points.
In actual execution, as shown in fig. 3, the determining the concave-convex attribute of the target boundary in the step 131 includes: steps 131a and 131b, or steps 131a and 131c.
Step 131a, scanning each row and each column of the target boundary with two straight lines perpendicular to each other;
step 131b, determining that the target boundary is convex under the condition that the number of intersections between the target boundary and each straight line is not more than 2;
as shown in fig. 4, the intersection of any straight line with the target boundary is at most 2, scanned line by line with a straight line parallel to the lateral direction of the interface; scanning line by using a straight line parallel to the longitudinal direction of the interface, wherein the intersection point of any straight line and the target boundary is at most 2; the target boundary is convex.
Step 131c, determining that the target boundary is concave when the number of intersections between the target boundary and at least one straight line is greater than 2.
As shown in fig. 5, scanned line by line with a straight line parallel to the lateral direction of the interface, there are more than 2 intersections of the straight line with the target boundary as shown; the target boundary is concave.
In some embodiments, step 150, scaling the primary deformed image with the target boundary as a boundary, outputs a target deformed image of the original image, includes: step 151-step 154.
Step 151, determining two first intersection points which are farthest from each other in intersection points of a straight line where a row of pixels of the primary deformation image are located along the first direction and the target boundary;
step 152, scaling the pixels of the corresponding row of the primary deformed image by taking the two first intersection points as boundaries, and outputting a deformed image in the first direction;
step 153, determining two second intersection points of the line where the line of the pixels of the first direction deformation image along the second direction is located and the object boundary, which are farthest from each other;
step 154, scaling the pixels of the corresponding row of the first direction deformation image by taking the two second intersection points as boundaries, and outputting a target deformation image; wherein the second direction is perpendicular to the first direction.
The first direction and the second direction are respectively parallel to the length and width of the inscribed rectangle or the circumscribed rectangle.
The image deformation method according to the embodiment of the present application will be described in detail below with reference to fig. 7 to 12 by taking the first direction as a longitudinal direction and the second direction as a transverse direction as an example.
As shown in fig. 7, is the original image to be deformed.
As shown in fig. 8, in order to output a target boundary image in response to a first input instruction of a user, the target boundary image includes a target boundary, which is circular.
As shown in fig. 9, an inscribed rectangle of the target boundary is determined and displayed at a corresponding position of the target boundary image.
As shown in fig. 10, the original image is scaled with the inscribed rectangle as a boundary, and a once deformed image is output, in other words, the original image is scaled and filled in the inscribed rectangle.
As shown in fig. 11, two first intersection points which are farthest from each other among intersection points of a straight line where any column of pixels of the primary deformation image along the longitudinal direction are located and the target boundary are determined; scaling the corresponding column of pixels of the one-time deformed image with the two first intersection points as boundaries, and performing this operation for each column of pixels, the first-direction deformed image can be output. In other words, the image scaling algorithm is used to scale the image to the boundary of the target boundary for each column in the longitudinal direction of the primary deformed image.
As shown in fig. 12, two second intersection points, which are farthest from the target boundary, of the straight line where any row of pixels of the first direction deformation image are located along the transverse direction are determined; and scaling the pixels of the corresponding row of the first direction deformation image by taking the two second intersection points as boundaries, and outputting the target deformation image. In other words, the image scaling algorithm is used to scale to the boundary of the target boundary for each line in the lateral direction of the first direction deformed image, respectively.
Of course, the order of operation of the rows and columns may be reversed.
It should be noted that, for the object boundary of the concave attribute, there may be a plurality of intersections of the object boundary and a straight line where a line of pixels of the primary deformation image or the first direction deformation image is located along the lateral direction or the longitudinal direction, and two intersections that are farthest from each other need to be determined.
The scaling manners of the steps 151 to 154 are at least four as follows:
first, the midpoint of two intersection points of two target boundaries and a straight line is taken as a first boundary center, and scaling is performed in equal proportion.
Step 152, scaling the pixels of the corresponding row of the primary deformed image with the two first intersection points as boundaries, includes: and scaling the pixels of the corresponding row of the primary deformed image in equal proportion by taking the midpoint of the two first intersection points as the first boundary center.
In other words, each pixel or group of pixels is scaled in a direction away from or towards the centre of the first boundary on the line in which the row of pixels is located, according to the same scaling.
For example, if a certain row of pixels of a primary deformed image includes 100 pixels and 200 pixels are located between two first intersections, each pixel is duplicated once in a direction away from the first boundary center with the first boundary center as the center (the center point is not moved).
Step 154, scaling the corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, includes: scaling the pixels of the corresponding row of the deformed image in the first direction in equal proportion by taking the midpoint of the two second intersection points as the second boundary center;
in other words, each pixel or group of pixels is scaled in a direction away from or towards the centre of the second boundary on the line in which the row of pixels is located, according to the same scaling.
For example, a certain row of pixels of a deformed image includes 100 pixels, and 50 pixels are located between two first intersection points, and then the average value of every two pixels is filled in a direction approaching to the center of the first boundary by taking the center of the first boundary as the center (the center point is not moved).
And secondly, taking the midpoint of two intersection points of the two target boundaries and the straight line as a first boundary center, and scaling in unequal proportion.
Step 152, scaling the pixels of the corresponding row of the primary deformed image with the two first intersection points as boundaries, includes: the midpoint of the two first intersection points is taken as a first boundary center, and the scaling of the pixels is determined based on the distance from each pixel in the corresponding row of pixels of the primary deformation image to the first boundary center.
In other words, each pixel or group of pixels determines a scaling according to its distance from the center of the first boundary, the distance being either positively or negatively correlated with the scaling, and scales in a direction away from or towards the center of the first boundary on the line in which the row of pixels is located.
Step 154, scaling the corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, includes: the midpoint of the two second intersection points is taken as a second boundary center, and the scaling of the pixels is determined based on the distance between each pixel in the corresponding row of pixels of the deformed image in the first direction and the second boundary center.
In other words, each pixel or group of pixels determines a scaling according to its distance from the center of the second boundary, the distance being either positively or negatively correlated with the scaling, and scales in a direction away from or towards the center of the second boundary on the line in which the row of pixels is located.
Thirdly, taking the midpoint of a row of pixels of the image to be scaled as a first boundary center, scaling in equal proportion.
Step 152, scaling the pixels of the corresponding row of the primary deformed image with the two first intersection points as boundaries, includes: and scaling the pixels of the corresponding row of the primary deformed image in equal proportion by taking the midpoint of the pixels of the row of the primary deformed image as the center of the first pixel.
In other words, each pixel or group of pixels is scaled in a direction away from or towards the centre of the first boundary on the line in which the row of pixels is located, according to the same scaling.
For example, a certain row of pixels of a primary deformed image includes 100 pixels, and 200 pixels are located between two first intersection points, and then each pixel is duplicated once in a direction away from the center of the first pixel by taking the center of the first pixel as the center (the center point is not moved).
Step 154, scaling the corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, includes: the corresponding row of pixels of the first direction deformed image is scaled equally proportionally centered on the second pixel center of the row of pixels of the first direction deformed image.
In other words, each pixel or group of pixels is scaled in a direction away from or towards the centre of the second pixel on the line in which the row of pixels is located, according to the same scaling.
For example, a certain row of pixels of a primary deformed image includes 100 pixels, and 50 pixels are located between two first intersection points, and the average value of every two pixels is filled in a direction close to the center of the second pixel by taking the center of the second pixel as the center (the center point is not moved).
Fourth, taking the midpoint of a row of pixels of the image to be scaled as the first boundary center, scaling in unequal proportions.
Step 152, scaling the pixels of the corresponding row of the primary deformed image with the two first intersection points as boundaries, includes: the midpoint of a row of pixels of the primary deformed image is taken as a first pixel center, and the scaling of the pixels is determined based on the distance between each pixel in the corresponding row of pixels of the primary deformed image and the first pixel center.
In other words, each pixel or group of pixels determines a scaling according to its distance from the center of the first pixel, the distance being either positively or negatively correlated with the scaling, and scaling in a direction away from or towards the center of the first pixel on the line in which the row of pixels is located.
Step 154, scaling the corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, includes: the midpoint of a row of pixels of the first direction deformed image is taken as a second pixel center, and the scaling of the pixels is determined based on the distance between each pixel in the corresponding row of pixels of the first direction deformed image and the second pixel center.
In other words, each pixel or group of pixels determines a scaling according to its distance from the center of the second pixel, the distance being either positively or negatively correlated with the scaling, and scaling in a direction away from or towards the center of the second pixel on the line in which the row of pixels is located.
The four scaling modes can achieve different scaling effects, and a user can set the scaling modes in advance according to the needs.
Fig. 13 illustrates that the first input instruction includes an operation of selecting a target image of a local or cloud end, and an operation of clicking a second target control by a user through a mouse to identify a target boundary from the target image. The object boundary in fig. 13 is a rectangular boundary in the photograph.
Fig. 14 is an original image to be deformed.
Fig. 15 is a target deformed image obtained by deforming an original image and filling the deformed image into the rectangular boundary in fig. 13.
The image deformation apparatus provided in the present application will be described below, and the image deformation apparatus described below and the image deformation method described above may be referred to correspondingly to each other.
As shown in fig. 16, an image deformation apparatus provided in an embodiment of the present application includes: a receiving module 1610, a first processing module 1620, a second processing module 1630, a third processing module 1640, and a fourth processing module 1650.
A receiving module 1610, configured to receive a first input instruction of a user;
the first processing module 1620 is configured to output a target boundary in response to the first input instruction, where the target boundary is a boundary of the two-dimensional closed graph;
a second processing module 1630, configured to determine an inscribed rectangle or an circumscribed rectangle of the target boundary;
a third processing module 1640, configured to scale the original image with the inscribed rectangle or the circumscribed rectangle as a boundary, and output a once deformed image;
the fourth processing module 1650 is configured to scale the primary deformed image with the boundary of the object as a boundary, and output a target deformed image of the original image.
According to the image deformation device, the original image is zoomed to the inscribed rectangle or the circumscribed rectangle of the target boundary, and then zoomed to the deformation method of the target boundary, so that the method can be used for target boundaries of various shapes, the whole image deformation method is executed by taking the target boundary which directly represents the final result as a starting point, an ideal deformation effect can be ensured, the operation of the whole image deformation method is simple, excessive manual operation of an operator is not needed, and the image deformation device is convenient and quick.
In some embodiments, as shown in fig. 17, the second processing module 1630 may include: a first judgment module 1631 and a first display module 1632, or a first judgment module 1631 and a second display module 1633.
A first judging module 1631, configured to judge an attribute of the concave-convex of the target boundary;
a first display module 1632, configured to determine that the target boundary is convex, output an inscribed rectangle of the target boundary, and display the inscribed rectangle on the target boundary;
the second display module 1633 is configured to determine that the target boundary is concave, output a circumscribed rectangle of the target boundary, and display the circumscribed rectangle on the target boundary.
In some embodiments, as shown in fig. 18, the first determining module 1631 may include: a scanning module 1631a and a first determining sub-module 1631b, or a scanning module 1631a and a second determining sub-module 1631c.
A scanning module 1631a for scanning each row and each column of the target boundary with two straight lines perpendicular to each other;
a first determining submodule 1631b, configured to determine that the target boundary is convex when the number of intersections between the target boundary and each straight line is not greater than 2;
a second determining submodule 1631c is configured to determine that the target boundary is concave in a case where the number of intersections of the target boundary with at least one straight line is greater than 2.
In some embodiments, as shown in fig. 19, fourth processing module 1650 may comprise: a first determination module 1651, a first processing sub-module 1652, a second determination module 1653, and a second processing sub-module 1654.
The first determining module 1651 may be configured to determine two first intersection points that are farthest from the intersection points of the target boundary and a straight line where a row of pixels of the primary deformed image along the first direction are located;
the first processing submodule 1652 may be configured to scale a corresponding row of pixels of the primary deformed image with two first intersection points as boundaries, and output a deformed image in a first direction;
a second determining module 1653, configured to determine two second intersections of the line along which the row of pixels of the deformed image in the second direction are located and the boundary of the object that are furthest apart;
a second processing submodule 1654, configured to scale a corresponding row of pixels of the deformed image in the first direction with two second intersection points as boundaries, and output a target deformed image; wherein the method comprises the steps of
The second direction is perpendicular to the first direction.
In some embodiments, the first processing submodule 1652 may be further configured to scale the corresponding row of pixels of the primary deformed image equally proportionally with a midpoint of the two first intersection points as a first boundary center;
The second processing sub-module 1654 may be further configured to scale the corresponding row of pixels of the first direction-modified image equally with a midpoint of the two second intersection points as a second boundary center.
In some embodiments, the first processing submodule 1652 may be further configured to determine a scaling of the pixel based on a distance from each pixel in the corresponding row of pixels of the primary deformed image to the first boundary center with a midpoint of the two first intersection points as the first boundary center;
the second processing sub-module 1654 may be further configured to determine a scaling of the pixel based on a distance from each pixel in the corresponding row of pixels of the deformed image in the first direction to the second boundary center with a midpoint of the two second intersections as the second boundary center.
In some embodiments, the first processing submodule 1652 may be further configured to scale the corresponding row of pixels of the once-deformed image equally proportionally with a midpoint of the row of pixels of the once-deformed image as a first pixel center;
the second processing sub-module 1654 may also be configured to scale the corresponding row of pixels of the first direction-warped image equally proportionally centered on the second pixel center of the row of pixels of the first direction-warped image.
In some embodiments, the first processing submodule 1652 may be further configured to determine a scaling of the pixel based on a distance from each pixel in the corresponding row of pixels of the primary deformed image to the first pixel center with a midpoint of the row of pixels of the primary deformed image as the first pixel center;
The second processing sub-module 1654 may also be configured to determine a scaling of the pixels based on a distance of each pixel in the corresponding row of pixels of the first direction warped image from the second pixel center with a midpoint of the row of pixels of the first direction warped image as the second pixel center.
The image deformation device provided in the embodiment of the present application is used to execute the image deformation method, and the specific embodiment of the image deformation device is consistent with the method embodiment, and can achieve the same beneficial effects, which are not repeated here.
Fig. 20 illustrates a physical structure diagram of an electronic device, as shown in fig. 20, which may include: a processor 2010, a communication interface (Communications Interface) 2020, a memory 2030 and a communication bus 2040, wherein the processor 2010, the communication interface 2020, and the memory 2030 communicate with each other over the communication bus 2040. Processor 2010 may invoke logic instructions in memory 2030 to perform an image morphing method comprising: receiving a first input instruction of a user; responding to a first input instruction, outputting a target boundary, wherein the target boundary is a boundary of a two-dimensional closed graph; determining an inscribed rectangle or an circumscribed rectangle of the target boundary; scaling the original image by taking the inscribed rectangle or the circumscribed rectangle as a limit, and outputting a primary deformed image; and scaling the primary deformed image by taking the target boundary as a limit, and outputting a target deformed image of the original image.
Further, the logic instructions in the memory 2030 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The processor 2010 in the electronic device provided in the embodiment of the present application may call the logic instruction in the memory 2030 to implement the image deformation method, and the specific implementation and the method implementation of the method are consistent, and may achieve the same beneficial effects, which are not described herein again.
In another aspect, the present application further provides a computer program product, where the computer program product provided in the present application is described below, and the computer program product described below and the image deformation method described above may be referred to correspondingly.
The computer program product comprises a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the image warping method provided by the methods described above, the method comprising: receiving a first input instruction of a user; responding to a first input instruction, outputting a target boundary, wherein the target boundary is a boundary of a two-dimensional closed graph; determining an inscribed rectangle or an circumscribed rectangle of the target boundary; scaling the original image by taking the inscribed rectangle or the circumscribed rectangle as a limit, and outputting a primary deformed image; and scaling the primary deformed image by taking the target boundary as a limit, and outputting a target deformed image of the original image.
When the computer program product provided in the embodiments of the present application is executed, the above image deformation method is implemented, and the specific implementation manner and the method implementation manner of the computer program product are consistent, and the same beneficial effects can be achieved, which is not described herein.
In yet another aspect, the present application further provides a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium provided in the present application is described below, and the non-transitory computer readable storage medium described below and the image deformation method described above may be referred to correspondingly with each other.
The present application also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the above provided image morphing methods, the method comprising: receiving a first input instruction of a user; responding to a first input instruction, outputting a target boundary, wherein the target boundary is a boundary of a two-dimensional closed graph; determining an inscribed rectangle or an circumscribed rectangle of the target boundary; scaling the original image by taking the inscribed rectangle or the circumscribed rectangle as a limit, and outputting a primary deformed image; and scaling the primary deformed image by taking the target boundary as a limit, and outputting a target deformed image of the original image.
When the computer program stored on the non-transitory computer readable storage medium provided in the embodiment of the present application is executed, the above image deformation method is implemented, and the specific implementation and the method implementation are consistent, and the same beneficial effects can be achieved, which is not described herein.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (8)

1. An image morphing method, comprising:
receiving a first input instruction of a user;
responding to the first input instruction, and outputting a target boundary, wherein the target boundary is a boundary of a two-dimensional closed graph;
determining an inscribed rectangle or an circumscribed rectangle of the target boundary;
scaling the original image by taking the inscribed rectangle or the circumscribed rectangle as a limit, and outputting a primary deformed image;
scaling the primary deformed image by taking the target boundary as a limit, and outputting a target deformed image of the original image;
the determining the inscribed rectangle or the circumscribed rectangle of the target boundary comprises:
judging the concave-convex attribute of the target boundary;
Determining the target boundary as convex, outputting an inscribed rectangle of the target boundary, and displaying the inscribed rectangle on the target boundary;
or determining the target boundary as concave, outputting a circumscribed rectangle of the target boundary, and displaying the circumscribed rectangle on the target boundary;
the scaling the primary deformed image by taking the target boundary as a limit, and outputting a target deformed image of the original image, including:
determining two first intersection points which are farthest from each other in intersection points of a straight line where a row of pixels of the primary deformation image are located along a first direction and the target boundary;
scaling the pixels of the corresponding row of the primary deformed image by taking the two first intersection points as boundaries, and outputting a deformed image in a first direction;
determining two second intersection points, which are farthest from the target boundary, of a straight line where a row of pixels of the first direction deformation image are located along a second direction;
scaling the pixels of the corresponding row of the first direction deformation image by taking the two second intersection points as boundaries, and outputting a target deformation image; wherein the method comprises the steps of
The second direction is perpendicular to the first direction;
the judging of the concave-convex attribute of the target boundary comprises the following steps:
Scanning each row and each column of the target boundary with two straight lines perpendicular to each other;
determining that the target boundary is convex under the condition that the number of intersections between the target boundary and each straight line is not more than 2;
or determining that the target boundary is concave when the number of intersection points of the target boundary and at least one straight line is greater than 2.
2. The image morphing method according to claim 1, wherein,
the scaling the corresponding row of pixels of the primary deformed image with the two first intersection points as boundaries includes: scaling the pixels of the corresponding row of the primary deformed image in equal proportion by taking the midpoint of the two first intersection points as a first boundary center;
scaling a corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, including: scaling the corresponding row of pixels of the first direction deformation image in equal proportion by taking the midpoint of the two second intersection points as a second boundary center;
or,
the scaling the corresponding row of pixels of the primary deformed image with the two first intersection points as boundaries includes: determining the scaling of each pixel in the corresponding row of pixels of the primary deformed image based on the distance from the pixel to the first boundary center by taking the midpoint of the two first intersection points as the first boundary center;
Scaling a corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, including: and determining the scaling of each pixel in the corresponding row of pixels of the first direction deformation image based on the distance from each pixel to the second boundary center by taking the midpoint of the two second intersection points as the second boundary center.
3. The image morphing method according to claim 1, wherein,
the scaling the corresponding row of pixels of the primary deformed image with the two first intersection points as boundaries includes: scaling the pixels of the corresponding row of the primary deformed image in equal proportion by taking the midpoint of the pixels of the row of the primary deformed image as the center of a first pixel;
scaling a corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, including: scaling a corresponding row of pixels of the first direction deformed image with a second pixel center of a row of pixels of the first direction deformed image as a center;
or,
the scaling the corresponding row of pixels of the primary deformed image with the two first intersection points as boundaries includes: determining a scaling of each pixel in a corresponding row of pixels of the primary deformed image based on a distance from the pixel to a first pixel center by taking a midpoint of the row of pixels of the primary deformed image as a first pixel center;
Scaling a corresponding row of pixels of the first direction-deformed image with the two second intersection points as boundaries, including: and taking the midpoint of a row of pixels of the first direction deformation image as a second pixel center, and determining the scaling of each pixel in the corresponding row of pixels of the first direction deformation image based on the distance from the pixel to the second pixel center.
4. An image deformation apparatus, comprising:
the receiving module is used for receiving a first input instruction of a user;
the first processing module is used for responding to the first input instruction and outputting a target boundary, wherein the target boundary is a boundary of a two-dimensional closed graph;
the second processing module is used for determining an inscribed rectangle or an circumscribed rectangle of the target boundary;
the third processing module is used for scaling the original image by taking the inscribed rectangle or the circumscribed rectangle as a limit and outputting a primary deformed image;
a fourth processing module, configured to scale the primary deformed image with the target boundary as a boundary, and output a target deformed image of the original image;
the second processing module includes:
the first judging module is used for judging the concave-convex attribute of the target boundary;
The first display module is used for determining that the target boundary is convex, outputting an inscribed rectangle of the target boundary and displaying the inscribed rectangle on the target boundary;
or, the second display module is used for determining that the target boundary is concave, outputting an circumscribed rectangle of the target boundary and displaying the circumscribed rectangle on the target boundary;
the fourth processing module includes:
the first determining module is used for determining two first intersection points which are farthest from the intersection points of the straight line where a row of pixels of the primary deformation image are located along the first direction and the target boundary;
the first processing submodule is used for scaling the pixels of the corresponding row of the primary deformed image by taking the two first intersection points as boundaries and outputting a deformed image in a first direction;
the second determining module is used for determining two second intersection points, which are farthest away from the target boundary, of a straight line where a row of pixels of the first direction deformation image are located along a second direction;
the second processing submodule is used for scaling the pixels of the corresponding row of the first direction deformation image by taking the two second intersection points as boundaries and outputting a target deformation image; wherein the method comprises the steps of
The second direction is perpendicular to the first direction;
The first judging module includes:
a scanning module for scanning each row and each column of the target boundary with two straight lines perpendicular to each other;
the first determining submodule is used for determining that the target boundary is convex under the condition that the number of intersections between the target boundary and each straight line is not more than 2;
or, a second determining submodule, configured to determine that the target boundary is concave when the number of intersections between the target boundary and at least one straight line is greater than 2.
5. The image warping device according to claim 4, wherein,
the first processing sub-module is further configured to scale the pixels of the corresponding row of the primary deformed image in equal proportion with a midpoint of the two first intersection points as a first boundary center;
the second processing sub-module is further configured to scale the corresponding row of pixels of the first direction deformed image in equal proportion with a midpoint of the two second intersection points as a second boundary center;
or,
the first processing sub-module is further configured to determine a scaling of each pixel in the corresponding row of pixels of the primary deformed image based on a distance from the pixel to the first boundary center by using a midpoint of the two first intersection points as a first boundary center;
The second processing sub-module is further configured to determine a scaling of each pixel in the corresponding row of pixels of the first direction deformed image based on a distance from the pixel to the second boundary center with a midpoint of the two second intersection points as a second boundary center.
6. The image warping device according to claim 4, wherein,
the first processing sub-module is further configured to scale the pixels of the corresponding row of the primary deformed image in equal proportion with a midpoint of the pixels of the row of the primary deformed image as a first pixel center;
the second processing sub-module is further configured to scale the corresponding row of pixels of the first direction deformed image in equal proportion with a second pixel center of the row of pixels of the first direction deformed image as a center;
or,
the first processing sub-module is further configured to determine a scaling of each pixel in a corresponding row of pixels of the primary deformed image based on a distance from the pixel to a center of the first pixel, with a midpoint of the row of pixels of the primary deformed image as a center of the first pixel;
the second processing sub-module is further configured to determine a scaling of each pixel in a corresponding row of pixels of the first direction deformed image based on a distance from the pixel to a center of the second pixel, with a midpoint of the row of pixels of the first direction deformed image as a center of the second pixel.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the image morphing method according to any one of claims 1 to 3 when the program is executed by the processor.
8. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the image morphing method according to any one of claims 1 to 3.
CN202011455468.1A 2020-12-10 2020-12-10 Image warping method, image warping device, electronic apparatus, and storage medium Active CN112634124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011455468.1A CN112634124B (en) 2020-12-10 2020-12-10 Image warping method, image warping device, electronic apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011455468.1A CN112634124B (en) 2020-12-10 2020-12-10 Image warping method, image warping device, electronic apparatus, and storage medium

Publications (2)

Publication Number Publication Date
CN112634124A CN112634124A (en) 2021-04-09
CN112634124B true CN112634124B (en) 2024-04-12

Family

ID=75309926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011455468.1A Active CN112634124B (en) 2020-12-10 2020-12-10 Image warping method, image warping device, electronic apparatus, and storage medium

Country Status (1)

Country Link
CN (1) CN112634124B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004184738A (en) * 2002-12-04 2004-07-02 Sony Corp Image scaling device, image scaling method, program and recording medium
CN101490708A (en) * 2006-09-13 2009-07-22 索尼株式会社 Image processing device, image processing method, and program
CN105205826A (en) * 2015-10-15 2015-12-30 电子科技大学 SAR image target azimuth angle estimation method based on direction straight line screening
CN106408508A (en) * 2015-07-30 2017-02-15 腾讯科技(深圳)有限公司 Image deformation processing method and apparatus
CN108305218A (en) * 2017-12-29 2018-07-20 努比亚技术有限公司 Panoramic picture processing method, terminal and computer readable storage medium
CN109741394A (en) * 2018-12-10 2019-05-10 北京拓尔思信息技术股份有限公司 Image processing method, device, electronic equipment and storage medium
CN110443751A (en) * 2019-07-10 2019-11-12 广东智媒云图科技股份有限公司 Image distortion method, device, equipment and storage medium based on painting line
CN110599564A (en) * 2019-09-19 2019-12-20 浙江大搜车软件技术有限公司 Image display method and device, computer equipment and storage medium
CN110852932A (en) * 2018-08-21 2020-02-28 北京市商汤科技开发有限公司 Image processing method and apparatus, image device, and storage medium
CN111028686A (en) * 2019-12-13 2020-04-17 维沃移动通信有限公司 Image processing method, image processing apparatus, electronic device, and medium
CN111078090A (en) * 2019-11-29 2020-04-28 上海联影医疗科技有限公司 Display method, device, equipment and storage medium
CN111935397A (en) * 2020-07-07 2020-11-13 北京迈格威科技有限公司 Image processing method and device, electronic equipment and computer readable medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004184738A (en) * 2002-12-04 2004-07-02 Sony Corp Image scaling device, image scaling method, program and recording medium
CN101490708A (en) * 2006-09-13 2009-07-22 索尼株式会社 Image processing device, image processing method, and program
CN106408508A (en) * 2015-07-30 2017-02-15 腾讯科技(深圳)有限公司 Image deformation processing method and apparatus
CN105205826A (en) * 2015-10-15 2015-12-30 电子科技大学 SAR image target azimuth angle estimation method based on direction straight line screening
CN108305218A (en) * 2017-12-29 2018-07-20 努比亚技术有限公司 Panoramic picture processing method, terminal and computer readable storage medium
CN110852932A (en) * 2018-08-21 2020-02-28 北京市商汤科技开发有限公司 Image processing method and apparatus, image device, and storage medium
CN109741394A (en) * 2018-12-10 2019-05-10 北京拓尔思信息技术股份有限公司 Image processing method, device, electronic equipment and storage medium
CN110443751A (en) * 2019-07-10 2019-11-12 广东智媒云图科技股份有限公司 Image distortion method, device, equipment and storage medium based on painting line
CN110599564A (en) * 2019-09-19 2019-12-20 浙江大搜车软件技术有限公司 Image display method and device, computer equipment and storage medium
CN111078090A (en) * 2019-11-29 2020-04-28 上海联影医疗科技有限公司 Display method, device, equipment and storage medium
CN111028686A (en) * 2019-12-13 2020-04-17 维沃移动通信有限公司 Image processing method, image processing apparatus, electronic device, and medium
CN111935397A (en) * 2020-07-07 2020-11-13 北京迈格威科技有限公司 Image processing method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN112634124A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN109871841B (en) Image processing method, device, terminal and storage medium
EP3998576A2 (en) Image stitching method and apparatus, device, and medium
US9679353B2 (en) Plan display device that displays enlarged/reduced image of original image with indication and plan display program for displaying same
US20130215045A1 (en) Stroke display method of handwriting input and electronic device
CN110866862B (en) Data processing method and device based on buffer, storage medium and electronic equipment
CN112967381A (en) Three-dimensional reconstruction method, apparatus, and medium
CN110633042A (en) Handwriting erasing method, device and equipment for electronic whiteboard
CN112634124B (en) Image warping method, image warping device, electronic apparatus, and storage medium
JP6287861B2 (en) Information processing apparatus, information processing method, and program storage medium
JP4661909B2 (en) Information display device and program
WO2023170308A1 (en) Rescaling text blocks to improve readability
US20050162427A1 (en) Font processor, terminal device, font processing method, and font processing program
US20140212043A1 (en) Character display apparatus, character display method, and computer readable medium
CN114138141A (en) Display method and device and electronic equipment
CN113190147A (en) Electronic book display method and device
EP2124195A1 (en) Antialiasing device
US9811945B2 (en) On-demand transformation aware shape tessellation
US20200388082A1 (en) Editing bezier patch by selecting multiple anchor points
CN111580910A (en) Window processing method and device
KR100705188B1 (en) A character font display method
CN114063837B (en) Display method and device of input interface and electronic equipment
CN106934814B (en) Background information identification method and device based on image
CN113574500A (en) Interface presentation on a display
JP7344916B2 (en) Information processing device, information processing method and program
JP7137170B1 (en) Information processing device, information processing method and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant