CN115379180B - Projection picture adjusting method, device, equipment and storage medium - Google Patents

Projection picture adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN115379180B
CN115379180B CN202110538403.1A CN202110538403A CN115379180B CN 115379180 B CN115379180 B CN 115379180B CN 202110538403 A CN202110538403 A CN 202110538403A CN 115379180 B CN115379180 B CN 115379180B
Authority
CN
China
Prior art keywords
layer
target
pixel
determining
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
CN202110538403.1A
Other languages
Chinese (zh)
Other versions
CN115379180A (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.)
Chengdu Jimi Technology Co Ltd
Original Assignee
Chengdu Jimi Technology 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 Chengdu Jimi Technology Co Ltd filed Critical Chengdu Jimi Technology Co Ltd
Priority to CN202110538403.1A priority Critical patent/CN115379180B/en
Publication of CN115379180A publication Critical patent/CN115379180A/en
Application granted granted Critical
Publication of CN115379180B publication Critical patent/CN115379180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • H04N9/3182Colour adjustment, e.g. white balance, shading or gamut
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • H04N9/3185Geometric adjustment, e.g. keystone or convergence

Abstract

The application provides a projection picture adjusting method, a device, equipment and a storage medium, and belongs to the technical field of image antialiasing processing. The method comprises the following steps: acquiring an image to be projected; determining inclination information of an image to be projected; determining a target picture boundary region and target layer pixel points of the target picture boundary region according to inclination information of an image to be projected; and adjusting the color of the target layer pixel point of the target picture boundary area to the target color. The application can realize the anti-aliasing effect of the edge pixels by adjusting the boundary of the projection picture, thereby improving the speed and the effect of the anti-aliasing process.

Description

Projection picture adjusting method, device, equipment and storage medium
Technical Field
The present application relates to the field of antialiasing processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting a projection screen.
Background
In the field of projection technology, when a processor of a projection device performs image processing, a picture is usually stretched into a trapezoid shape for processing, and since the picture is usually composed of pixels, the stretched picture has a saw-tooth shape, which affects the projection effect after projection.
In the prior art, antialiasing processing can be performed on a layer of a picture by adopting a mode of sampling pixel points in multiple, however, the adoption of the mode of sampling pixel points in multiple can cause larger performance loss of a processor of the projection equipment, relatively higher load and relatively slower antialiasing processing speed.
Disclosure of Invention
The application aims to provide a projection picture adjusting method, a device, equipment and a storage medium, which can realize the anti-aliasing effect of edge pixels by adjusting the boundary of a projection picture and improve the speed and the anti-aliasing effect of the anti-aliasing process.
Embodiments of the present application are implemented as follows:
in one aspect of the embodiments of the present application, a method for adjusting a projection screen is provided, including:
acquiring an image to be projected;
determining inclination information of an image to be projected;
determining a target picture boundary region and target layer pixel points of the target picture boundary region according to inclination information of an image to be projected;
and adjusting the color of the target layer pixel point of the target picture boundary area to the target color.
Optionally, determining tilt information of the image to be projected includes:
acquiring position information of at least two first boundary pixel points in a boundary pixel layer, wherein the boundary pixel layer is the pixel layer of the outermost layer of the image to be projected;
and determining inclination information of the picture boundary pixel layers of the image to be projected according to the position information of at least two first boundary pixel points, wherein the inclination information is used for representing the inclination degree of each picture boundary pixel layer.
Optionally, the location information of the first boundary pixel point includes: and the coordinates of the first boundary pixel point in a target coordinate system where the image to be projected is located.
Optionally, determining the inclination information of the frame boundary pixel layer of the image to be projected according to the position information of at least two first boundary pixel points includes:
respectively calculating a first difference value of the abscissa or a second difference value of the ordinate of at least two first boundary pixel points;
and determining inclination information of a picture boundary region of the image to be projected according to the operation relation between the resolution and the first difference value or the operation relation between the resolution and the second difference value.
Optionally, determining the target picture boundary region and the target layer pixel point of the target picture boundary region according to the inclination information of the image to be projected includes:
if the inclination information of the boundary pixel layer meets the preset condition, determining the target layer pixel point of the boundary region of the target picture according to the inclination information of the boundary pixel layer.
Optionally, determining the target layer pixel point of the target picture boundary region according to the inclination information of the boundary pixel layer includes:
and if the inclination information of the boundary pixel layer meets the first condition, taking the first layer pixel point of the target picture area as the target layer pixel point.
Optionally, determining the target layer pixel point of the target picture boundary region according to the inclination information of the boundary pixel layer includes:
and if the inclination information of the boundary pixel layer meets the second condition, taking the first layer pixel point and the second layer pixel point of the target picture area as target layer pixel points.
Optionally, before adjusting the color of the target layer pixel point of the target picture boundary region to the target color, the method further includes:
and determining the target color according to the color information of at least one layer of pixel points adjacent to the target layer of pixel points.
Optionally, determining the target color according to color information of at least one layer of pixels adjacent to the target layer of pixels includes:
respectively acquiring color information of two layers of pixel points adjacent to the target layer of pixel points;
determining an average value of colors of two layers of pixel points adjacent to the target layer of pixel points;
the average value of the colors is taken as the target color.
Optionally, the color information includes: the red channel value, the green channel value and the blue channel value of the pixel point, determining an average value of colors of two layers of pixel points adjacent to the target layer pixel point, includes:
and determining the average value of the colors according to the red channel value, the green channel value and the blue channel value of the two layers of pixels adjacent to the target layer of pixels.
In another aspect of the embodiments of the present application, there is provided a projection screen adjusting apparatus, including: the device comprises an acquisition module, an inclination determination module, a region determination module and an adjustment module;
the acquisition module is used for acquiring an image to be projected;
the inclination determining module is used for determining inclination information of the image to be projected;
the area determining module is used for determining a target picture boundary area to be adjusted and target layer pixel points of the target picture boundary area according to the inclination information of the image to be projected;
and the adjusting module is used for adjusting the color of the target layer pixel point of the target picture boundary area to the target color.
Optionally, the inclination determining module is specifically configured to obtain position information of at least two first boundary pixel points in a boundary pixel layer, where the boundary pixel layer is a pixel layer of an outermost layer of the image to be projected; and determining inclination information of the picture boundary pixel layers of the image to be projected according to the position information of at least two first boundary pixel points, wherein the inclination information is used for representing the inclination degree of each picture boundary pixel layer.
Optionally, in the apparatus, the location information of the first boundary pixel point includes: and the coordinates of the first boundary pixel point in a target coordinate system where the image to be projected is located.
Optionally, the inclination determining module is specifically configured to calculate a first difference value of an abscissa or a second difference value of an ordinate of at least two first boundary pixels respectively; and determining inclination information of a picture boundary region of the image to be projected according to the operation relation between the resolution and the first difference value or the operation relation between the resolution and the second difference value.
Optionally, the area determining module is specifically configured to determine, according to the inclination information of the boundary pixel layer, a target layer pixel point of the boundary area of the target picture if the inclination information of the boundary pixel layer meets a preset condition.
Optionally, the area determining module is specifically configured to take a first layer pixel point of the target picture area as a target layer pixel point if the inclination information of the boundary pixel layer meets a first condition.
Optionally, the area determining module is specifically configured to take the first layer pixel point and the second layer pixel point of the target picture area as the target layer pixel point if the inclination information of the boundary pixel layer meets the second condition.
Optionally, the area determining module is further configured to determine the target color according to color information of at least one layer of pixels adjacent to the target layer of pixels.
Optionally, the area determining module is specifically configured to obtain color information of two layers of pixel points adjacent to the target layer of pixel points respectively; determining an average value of colors of two layers of pixel points adjacent to the target layer of pixel points; the average value of the colors is taken as the target color.
Optionally, the color information includes: red channel value, green channel value and blue channel value of the pixel point; the region determining module is specifically configured to determine an average value of colors according to a red channel value, a green channel value, and a blue channel value of two layers of pixels adjacent to the target layer of pixels.
In another aspect of an embodiment of the present application, there is provided a computer apparatus including: the projection screen adjusting device comprises a memory and a processor, wherein the memory stores a computer program which can be run on the processor, and the processor realizes the steps of the projection screen adjusting method when executing the computer program.
In another aspect of the embodiments of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described projection screen adjustment method.
The beneficial effects of the embodiment of the application include:
in the method, the device, the equipment and the storage medium for adjusting the projection picture provided by the embodiment of the application, the image to be projected can be obtained; determining inclination information of an image to be projected; determining a target picture boundary region and target layer pixel points of the target picture boundary region according to inclination information of an image to be projected; and adjusting the color of the target layer pixel point of the target picture boundary area to the target color. The anti-aliasing effect of the edge pixels can be achieved by adjusting the colors of the target layer pixel points in the boundary area of the target picture, so that the anti-aliasing speed and effect are improved, and the displayed projection picture is more comfortable and attractive.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart illustrating a method for adjusting a projection screen according to an embodiment of the present application;
fig. 2 is a second flowchart of a method for adjusting a projection screen according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a method for adjusting a projection screen according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for adjusting a projection screen according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating an adjustment method of a projection screen according to an embodiment of the present application;
FIG. 6 is a comparison chart of adjustment results of the adjustment method of the projection screen according to the embodiment of the present application;
fig. 7 is a schematic structural diagram of a projection screen adjusting apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present application, it should be noted that the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
The following specifically explains a specific implementation procedure of the projection screen adjustment method provided in the embodiment of the present application.
Fig. 1 is a flowchart of a projection screen adjustment method according to an embodiment of the application, please refer to fig. 1, which includes:
s110: and acquiring an image to be projected.
Alternatively, the execution subject of the method may be a projector, or a like projection device, and in particular, a computer device, and the image to be projected may be an image sent to the projection device by other computer devices, and due to the limitation of the projection device, the image may be compressed into a trapezoid shape in the projection device for storage and processing, where the image to be projected is an image to be projected onto a projection curtain by the projection device.
The image to be projected processed in the projection device is a trapezoid, and the projected image projected onto the projection screen by the projection device is a rectangle. In the process of projection by the projection device, the image to be projected in the trapezoid shape can be converted into a projection image in a rectangular shape through a preset projection mode.
S120: tilt information of an image to be projected is determined.
Alternatively, the projection device may acquire inclination information of the image to be projected according to the image to be projected, that is, inclination degree of the projected image, that is, deformation degree compressed into a trapezoid shape.
Alternatively, the projection device may in particular determine the tilt information from the image to be projected.
S130: and determining a target picture boundary region and target layer pixel points of the target picture boundary region according to the inclination information of the image to be projected.
Optionally, after determining the tilt information of the image to be projected, the target picture boundary region and the target layer pixel point of the target picture boundary region may be determined according to a specific tilt degree. The boundary area of the target picture can be a boundary area of any picture in the image to be projected, the boundary area can comprise a plurality of pixel layers, and one or more layers of the boundary area can be selected as target pixel layers of the boundary area of the target picture.
Alternatively, the specifically selected target pixel layer may be specifically determined according to the degree of inclination of the image to be projected, which is not limited herein.
S140: and adjusting the color of the target layer pixel point of the target picture boundary area to the target color.
Optionally, after determining the target image boundary area and the target layer pixel point in the target image area, the color of the target layer pixel point may be changed and adjusted to a target color, where the target color may be a color set by the user according to an actual requirement or a preset rule, and is not limited specifically herein.
In the projection picture adjusting method provided by the embodiment of the application, the image to be projected can be obtained; determining inclination information of an image to be projected; determining a target picture boundary region and target layer pixel points of the target picture boundary region according to inclination information of an image to be projected; and adjusting the color of the target layer pixel point of the target picture boundary area to the target color. The anti-aliasing effect of the edge pixels can be achieved by adjusting the colors of the target layer pixel points in the boundary area of the target picture, so that the anti-aliasing speed and effect are improved, and the displayed projection picture is more comfortable and attractive.
Another embodiment of the method for adjusting a projection screen according to the embodiment of the present application will be explained in detail below.
Fig. 2 is a second flowchart of a projection screen adjustment method according to an embodiment of the present application, please refer to fig. 2, for determining tilt information of an image to be projected, including:
s210: and acquiring the position information of at least two first boundary pixel points in the boundary pixel layer.
The boundary pixel layer is the pixel layer of the outermost layer of the image to be projected.
Optionally, the pixel layer of the outermost layer may specifically refer to a layer of pixel layers closest to the boundary in the boundary pixel layers, and location information of at least two pixel points in the layer of pixel layers may specifically be acquired. The position information may specifically be a specific position coordinate of the pixel point in a coordinate system where the image to be projected is located.
Alternatively, the first boundary pixel point may be any one pixel point in the boundary pixel layer.
S220: and determining inclination information of a picture boundary pixel layer of the image to be projected according to the position information of at least two first boundary pixel points.
Wherein the inclination information is used for representing the inclination degree of each picture boundary pixel layer.
Alternatively, after two or more first boundary pixels are acquired, calculation may be performed according to the position information of the first boundary pixels, to obtain inclination information of a frame boundary pixel layer of the image to be projected.
Optionally, the location information of the first boundary pixel point includes: and the coordinates of the first boundary pixel point in a target coordinate system where the image to be projected is located.
Alternatively, an object coordinate system may be provided in the projection device, which may be used for determining the position of the image to be projected, and after determining the boundary pixel layer of the image to be projected, the coordinates of the plurality of first boundary pixel points in the object coordinate system may be determined in the pixel layer, and the coordinates may be specifically represented by the form of coordinate points.
The coordinates of each pixel point may be represented in the form of coordinate points in the target coordinate system, and in particular, in the form of pairs of numbers may be used, for example: a (12, 13), the coordinate point of the pixel point a in the target coordinate system is (12, 13), wherein 12 may be an abscissa in the coordinate system, 13 may be an ordinate in the coordinate system, and the specific dividing ratio of the abscissa and the ordinate may be set according to the requirement in the actual use process, which is not limited herein.
A further embodiment of the projection screen adjustment method provided in the embodiment of the present application will be specifically explained below.
Fig. 3 is a flowchart illustrating a third embodiment of a projection screen adjustment method according to the present application, referring to fig. 3, determining inclination information of a screen boundary pixel layer of an image to be projected according to position information of at least two first boundary pixel points, including:
s310: a first difference in the abscissa or a second difference in the ordinate of at least two first boundary pixels is calculated, respectively.
Optionally, after determining the position information of at least two first boundary pixels, a difference calculation may be performed, which specifically includes the following steps:
if the first boundary pixels are two, the coordinates of the first boundary pixels are A1 (x 1, y 1) and A2 (x 2, y 2), respectively, then a first difference or a second difference may be calculated, where the first difference may be specifically |x1-x2|, and the second difference may be specifically |y1-y2|.
S320: and determining inclination information of a picture boundary region of the image to be projected according to the operation relation between the resolution and the first difference value or the operation relation between the resolution and the second difference value.
Alternatively, the resolution may include a longitudinal resolution and a lateral resolution, and may specifically be the resolution of the screen to be projected.
Alternatively, after the first difference or the second difference is determined, the tilt information may be determined according to an operational relationship between the first difference and the resolution or between the second difference and the resolution.
For example, the inclination information may be represented by means of a longitudinal inclination scale:
K1=∣y1-y2∣/h;
wherein K1 is a vertical tilt ratio (or may also be referred to as a vertical coefficient), and h is a vertical resolution of the frame to be projected.
Alternatively, the inclination information may be represented by a lateral inclination ratio:
K2=∣x1-x2∣/W;
wherein K2 is the transverse tilt ratio (or may also be referred to as a horizontal coefficient), and W is the transverse resolution of the frame to be projected.
Alternatively, the resolution of one picture to be projected may be expressed as w×h, that is, the vertical resolution multiplied by the horizontal resolution.
One of the modes can be selected to represent the inclination information according to actual requirements, and the inclination information is not limited herein.
Optionally, determining the target picture boundary region and the target layer pixel point of the target picture boundary region according to the inclination information of the image to be projected includes:
if the inclination information of the boundary pixel layer meets the preset condition, determining the target layer pixel point of the boundary region of the target picture according to the inclination information of the boundary pixel layer.
Alternatively, the preset condition may be specifically a range characterized by the inclination information, for example, specifically a specific range of the vertical coefficient calculated as described above, or a specific range of the horizontal coefficient. If the vertical coefficient or the horizontal coefficient is within the range, it may be determined that the inclination information of the boundary pixel layer meets the preset condition, and accordingly, the target layer pixel point of the corresponding target picture boundary region may be determined according to the vertical coefficient or the horizontal coefficient.
Optionally, determining the target layer pixel point of the target picture boundary region according to the inclination information of the boundary pixel layer includes:
and if the inclination information of the boundary pixel layer meets the first condition, taking the first layer pixel point of the target picture area as the target layer pixel point.
Alternatively, taking the vertical coefficient as an example of the inclination information, if K1 is greater than or equal to 0.25, it may be determined that the inclination information satisfies the first condition, and accordingly, the first layer pixel point in the target picture area may be taken as the target layer pixel point.
Alternatively, the specific range of K1 may be set according to the actual requirement, which is not limited herein, and the determination may be made according to the range of the horizontal coefficient K2 in the actual calculation process.
Optionally, determining the target layer pixel point of the target picture boundary region according to the inclination information of the boundary pixel layer includes:
and if the inclination information of the boundary pixel layer meets the second condition, taking the first layer pixel point and the second layer pixel point of the target picture area as target layer pixel points.
Alternatively, taking the vertical coefficient as an example of the inclination information, if 0 < K1 < 0.25, it may be determined that the inclination information satisfies the second condition, and accordingly, the first layer pixel point and the second layer pixel point in the target picture area may be regarded as target layer pixel points. The specific range of K1 may be set according to the actual requirement, and is not limited herein, and in the actual calculation process, the determination may also be performed according to the range of the horizontal coefficient K2.
Optionally, before adjusting the color of the target layer pixel point of the target picture boundary region to the target color, the method further includes:
and determining the target color according to the color information of at least one layer of pixel points adjacent to the target layer of pixel points.
Optionally, the target color may be determined specifically according to color information of at least one layer of pixels adjacent to the target layer of pixels. If the pixel point is one layer, determining according to the color of the pixel point of the target layer and the color information of the pixel point of the pixel layer, which is adjacent to the edge outside of the pixel point of the target layer; if the number of the pixel layers is two or more, the determination can be performed according to the color information of the pixel points of the target layer, the pixel layers adjacent to the two sides and the pixel points of more adjacent pixel layers.
A further embodiment of the method for adjusting a projection screen according to the embodiment of the present application will be explained in detail below.
Fig. 4 is a flowchart of a projection screen adjustment method according to an embodiment of the present application, referring to fig. 4, determining a target color according to color information of at least one layer of pixels adjacent to the target layer of pixels, including:
s410: and respectively acquiring color information of two layers of pixels adjacent to the target layer of pixels.
Optionally, the following explanation specifically takes two adjacent pixel points as an example, where if the pixel point of the target layer is one layer, the pixel points of the two adjacent pixel layers of the pixel point of the target layer are adjacent pixel points; if the pixel points of the target layer are multiple layers, the pixel points of the pixel layers adjacent to the outer side of the outermost layer and the pixel points of the pixel layers adjacent to the inner side of the innermost layer are adjacent pixel points.
Optionally, the colors of the adjacent pixels may be identified, so as to obtain corresponding color information.
S420: and determining the average value of the colors of two layers of pixels adjacent to the target layer of pixels.
S430: the average value of the colors is taken as the target color.
Alternatively, the average value of the colors of the two layers of pixels may be specifically calculated, and in the calculation process, the color of the target layer pixel C may be calculated based on two adjacent pixels of each pixel, for example, the average value of the colors of C1 and C2 may be calculated according to the colors of two adjacent pixels C1 and C2 of the target layer pixel C, as the target color of the target layer pixel C.
Accordingly, for the target layer pixel points, the specific target color of each pixel point can be calculated according to the colors of two adjacent pixel points of the pixel point, which is not limited herein.
Optionally, the color information includes: the red channel value, the green channel value and the blue channel value of the pixel point, determining an average value of colors of two layers of pixel points adjacent to the target layer pixel point, includes:
and determining the average value of the colors according to the red channel value, the green channel value and the blue channel value of the two layers of pixels adjacent to the target layer of pixels.
Alternatively, the color of each pixel may be expressed in the form of an RGB (red green blue) channel, for example: the color of the Q point may be represented by Q (R1, G1, B1), the color of the P point may be represented by P (R2, G2, B2), and if two P, Q points are two points adjacent to the target pixel point, the color of the target pixel point may be specifically represented as ((r1+r2)/2, (g1+g2)/2, (b1+b2)/2).
Alternatively, after determining the average value of the color, the color may be regarded as the target color.
Optionally, if there are two layers of the pixel points of the target layer, the colors of two adjacent pixel points of the two layers may be adjusted to be consistent colors, which are all the target colors, which is not limited herein.
Alternatively, in addition to determining the target color by calculating the average value, the target layer pixel point may be adjusted to a corresponding preset color in response to the color input operation of the user, where the preset color may be a color selected and set during the input of the user, and the specific color may be set according to the actual requirement of the user, which is not limited herein.
For example: when the user inputs, the preset color can be set to gray (specifically, the color values of three color channels can be respectively input), so that the pixel point of the target layer can be adjusted to the preset color.
Optionally, in addition to the method provided in the foregoing embodiment, when calculating a specific color of a pixel point of a target layer, two adjacent pixel points of the pixel point in the target layer and a pixel point of an adjacent layer outside the pixel point of the target layer may be obtained to perform average calculation, so as to determine a corresponding color. The specific color determination method may be set according to actual requirements, and is not limited herein.
An adjustment schematic case of the projection screen adjustment method provided in the embodiment of the present application is specifically explained below.
Fig. 5 is an adjustment schematic diagram of a projection screen adjustment method according to an embodiment of the present application, referring to fig. 5, fig. 5 is an example of a target layer pixel point, including: a target layer pixel 510, a target layer outside adjacent pixel 520, and a target layer inside adjacent pixel 530.
The specific color of the target layer pixel 510 can be determined according to the target layer outside neighboring pixel 520 and the target layer inside neighboring pixel 530.
In fig. 5, the adjacent pixel point 520 outside the target layer is white, the adjacent pixel point 530 inside the target layer is black, the pixel point 510 of the target layer is the average value of the two colors, and the specific color is replaced by a diagonal line in the image.
Fig. 6 is a comparison chart of adjustment results of the method for adjusting a projection screen according to an embodiment of the present application, please refer to fig. 6, in which an image on the left side of fig. 6 is an initial image that is not subjected to antialiasing by the method for adjusting a projection screen, and an image on the right side is a processed image that is subjected to antialiasing by the method for adjusting a projection screen, so that it can be determined that an antialiasing effect of edge pixels can be achieved after the adjustment of the projection screen, and the antialiasing effect is improved, so that a displayed projection screen is more comfortable and attractive.
The following describes a device, equipment, storage medium, etc. for implementing the method for adjusting a projection screen provided by the present application, and specific implementation processes and technical effects thereof are referred to above, which are not described in detail below.
Fig. 7 is a schematic structural diagram of a projection screen adjusting apparatus according to an embodiment of the present application, please refer to fig. 7, the apparatus includes: an acquisition module 710, a tilt determination module 720, a region determination module 730, and an adjustment module 740;
an acquisition module 710, configured to acquire an image to be projected;
a tilt determining module 720, configured to determine tilt information of an image to be projected;
the region determining module 730 is configured to determine a target frame boundary region to be adjusted and a target layer pixel point of the target frame boundary region according to inclination information of the image to be projected;
the adjusting module 740 is configured to adjust the color of the target layer pixel point in the target frame boundary region to the target color.
Optionally, the inclination determining module 720 is specifically configured to obtain position information of at least two first boundary pixel points in a boundary pixel layer, where the boundary pixel layer is a pixel layer of an outermost layer of the image to be projected; and determining inclination information of the picture boundary pixel layers of the image to be projected according to the position information of at least two first boundary pixel points, wherein the inclination information is used for representing the inclination degree of each picture boundary pixel layer.
Optionally, in the apparatus, the location information of the first boundary pixel point includes: and the coordinates of the first boundary pixel point in a target coordinate system where the image to be projected is located.
Optionally, the inclination determining module 720 is specifically configured to calculate a first difference value of the abscissa or a second difference value of the ordinate of at least two first boundary pixels respectively; and determining inclination information of a picture boundary region of the image to be projected according to the operation relation between the resolution and the first difference value or the operation relation between the resolution and the second difference value.
Optionally, the area determining module 730 is specifically configured to determine, according to the inclination information of the boundary pixel layer, a target layer pixel point of the boundary area of the target picture if the inclination information of the boundary pixel layer meets a preset condition.
Optionally, the area determining module 730 is specifically configured to take the first layer pixel point of the target picture area as the target layer pixel point if the inclination information of the boundary pixel layer meets the first condition.
Optionally, the area determining module 730 is specifically configured to take the first layer pixel point and the second layer pixel point of the target picture area as the target layer pixel point if the inclination information of the boundary pixel layer meets the second condition.
Optionally, the area determining module 730 is further configured to determine the target color according to color information of at least one layer of pixels adjacent to the target layer of pixels.
Optionally, the area determining module 730 is specifically configured to obtain color information of two layers of pixels adjacent to the target layer of pixels respectively; determining an average value of colors of two layers of pixel points adjacent to the target layer of pixel points; the average value of the colors is taken as the target color.
Optionally, the color information includes: red channel value, green channel value and blue channel value of the pixel point; the area determining module 730 is specifically configured to determine an average value of colors according to the red channel value, the green channel value, and the blue channel value of two layers of pixels adjacent to the target layer of pixels.
The foregoing apparatus is used for executing the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more microprocessors (digital singnal processor, abbreviated as DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), or the like. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application, referring to fig. 8, the computer device includes: memory 810 and processor 820, wherein memory 810 stores a computer program executable on processor 820, and when processor 820 executes the computer program, the steps of the projection screen adjustment method are realized.
In another aspect of the embodiments of the present application, there is further provided a computer readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of the above projection screen adjustment method.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform part of the steps of the methods of the embodiments of the application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The foregoing is merely illustrative of embodiments of the present application, and the present application is not limited thereto, and any changes or substitutions can be easily made by those skilled in the art within the technical scope of the present application, and the present application is intended to be covered by the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A projection screen adjustment method, comprising:
acquiring an image to be projected;
determining inclination information of the image to be projected;
determining a target picture boundary region and target layer pixel points of the target picture boundary region according to the inclination information of the image to be projected;
adjusting the color of the target layer pixel point of the target picture boundary region to a target color;
the determining the inclination information of the image to be projected includes:
acquiring position information of at least two first boundary pixel points in a boundary pixel layer, wherein the boundary pixel layer is the pixel layer of the outermost layer of the image to be projected;
determining inclination information of a picture boundary pixel layer of the image to be projected according to the position information of the at least two first boundary pixel points, wherein the inclination information is used for representing the inclination degree of each picture boundary pixel layer;
the determining a target picture boundary region and a target layer pixel point of the target picture boundary region according to the inclination information of the image to be projected comprises:
if the inclination information of the boundary pixel layer meets the preset condition, determining the target layer pixel point of the target picture boundary region according to the inclination information of the boundary pixel layer, wherein the preset condition refers to the range represented by the inclination information.
2. The method of claim 1, wherein the location information of the first boundary pixel point comprises: and the first boundary pixel point is arranged in the coordinate of the target coordinate system where the image to be projected is located.
3. The method of claim 2, wherein determining the tilt information of the frame boundary pixel layer of the image to be projected based on the position information of the at least two first boundary pixel points comprises:
respectively calculating a first difference value of the abscissa or a second difference value of the ordinate of the at least two first boundary pixel points;
and determining inclination information of a picture boundary region of the image to be projected according to the operation relation between the resolution and the first difference value or the operation relation between the resolution and the second difference value.
4. The method of claim 1, wherein determining the target layer pixel point of the target picture boundary region based on the boundary pixel layer tilt information comprises:
if the inclination information of the boundary pixel layer meets a first condition, taking a first layer pixel point of the boundary region of the target picture as the target layer pixel point;
and if the value of the inclination information is larger than or equal to a preset threshold value, the inclination information meets a first condition.
5. The method of claim 1, wherein determining the target layer pixel point of the target picture boundary region based on the boundary pixel layer tilt information comprises:
if the inclination information of the boundary pixel layer meets a second condition, taking a first layer pixel point and a second layer pixel point of the boundary region of the target picture as the target layer pixel point;
and if the value of the inclination information is within a preset threshold value interval, the inclination information meets a second condition.
6. A method according to any one of claims 1-3, wherein before adjusting the color of the target layer pixels of the target picture boundary region to the target color, further comprising:
and determining the target color according to the color information of at least one layer of pixel points adjacent to the target layer of pixel points.
7. The method of claim 6, wherein determining the target color based on color information of at least one layer of pixels adjacent to the target layer of pixels comprises:
respectively acquiring color information of two layers of pixel points adjacent to the target layer of pixel points;
determining the average value of the colors of two layers of pixel points adjacent to the target layer of pixel points;
and taking the average value of the colors as the target color.
8. The method of claim 7, wherein the color information comprises: the determining an average value of colors of two layers of pixel points adjacent to the target layer pixel point includes:
and determining the average value of the colors according to the red channel value, the green channel value and the blue channel value of the two layers of pixel points adjacent to the target layer of pixel points.
9. A projection screen adjusting apparatus, comprising: the device comprises an acquisition module, an inclination determination module, a region determination module and an adjustment module;
the acquisition module is used for acquiring an image to be projected;
the inclination determining module is used for determining inclination information of the image to be projected;
the region determining module is used for determining a target picture boundary region to be adjusted and target layer pixel points of the target picture boundary region according to the inclination information of the image to be projected;
the adjusting module is used for adjusting the color of the target layer pixel point of the target picture boundary area to a target color;
the inclination determining module is specifically configured to:
acquiring position information of at least two first boundary pixel points in a boundary pixel layer, wherein the boundary pixel layer is the pixel layer of the outermost layer of the image to be projected;
determining inclination information of a picture boundary pixel layer of the image to be projected according to the position information of the at least two first boundary pixel points, wherein the inclination information is used for representing the inclination degree of each picture boundary pixel layer;
the area determining module is specifically configured to:
if the inclination information of the boundary pixel layer meets the preset condition, determining the target layer pixel point of the target picture boundary region according to the inclination information of the boundary pixel layer, wherein the preset condition is the range represented by the inclination information.
10. A computer device, comprising: memory, a processor, in which a computer program is stored which is executable on the processor, when executing the computer program, implementing the steps of the method of any of the preceding claims 1 to 8.
11. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method according to any of claims 1 to 8.
CN202110538403.1A 2021-05-17 2021-05-17 Projection picture adjusting method, device, equipment and storage medium Active CN115379180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110538403.1A CN115379180B (en) 2021-05-17 2021-05-17 Projection picture adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110538403.1A CN115379180B (en) 2021-05-17 2021-05-17 Projection picture adjusting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115379180A CN115379180A (en) 2022-11-22
CN115379180B true CN115379180B (en) 2023-09-12

Family

ID=84059464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110538403.1A Active CN115379180B (en) 2021-05-17 2021-05-17 Projection picture adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115379180B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011066496A (en) * 2009-09-15 2011-03-31 Casio Computer Co Ltd Color difference component correction device and projector with the same
CN102098521A (en) * 2010-12-17 2011-06-15 苏州创捷传媒展览有限公司 Splicing and fusing method applied to display large-sized images
CN102682424A (en) * 2012-01-07 2012-09-19 河南科技大学 Image amplification processing method based on edge direction difference
CN103037189A (en) * 2012-12-05 2013-04-10 江苏清投视讯科技有限公司 Method to achieve integrate output of large-size screen video images through much projection
CN106797456A (en) * 2016-12-30 2017-05-31 深圳前海达闼云端智能科技有限公司 Projected picture correcting method, means for correcting and robot
CN108012131A (en) * 2017-11-30 2018-05-08 四川长虹电器股份有限公司 Projector image edge blending system and method
CN110290365A (en) * 2019-07-12 2019-09-27 广东技术师范大学天河学院 A kind of more projecting edge emerging systems and edge amalgamation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6752052B2 (en) * 2016-05-20 2020-09-09 キヤノン株式会社 Video processing equipment and video processing methods, programs

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011066496A (en) * 2009-09-15 2011-03-31 Casio Computer Co Ltd Color difference component correction device and projector with the same
CN102098521A (en) * 2010-12-17 2011-06-15 苏州创捷传媒展览有限公司 Splicing and fusing method applied to display large-sized images
CN102682424A (en) * 2012-01-07 2012-09-19 河南科技大学 Image amplification processing method based on edge direction difference
CN103037189A (en) * 2012-12-05 2013-04-10 江苏清投视讯科技有限公司 Method to achieve integrate output of large-size screen video images through much projection
CN106797456A (en) * 2016-12-30 2017-05-31 深圳前海达闼云端智能科技有限公司 Projected picture correcting method, means for correcting and robot
CN108012131A (en) * 2017-11-30 2018-05-08 四川长虹电器股份有限公司 Projector image edge blending system and method
CN110290365A (en) * 2019-07-12 2019-09-27 广东技术师范大学天河学院 A kind of more projecting edge emerging systems and edge amalgamation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种后处理式的改进抗锯齿算法;邵鹏 等;计算机科学(第S2期);第228-231页 *

Also Published As

Publication number Publication date
CN115379180A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
KR100791375B1 (en) Apparatus and method for color correction
US9582853B1 (en) Method and system of demosaicing bayer-type image data for image processing
JP4253655B2 (en) Color interpolation method for digital camera
JP5918915B2 (en) Method and device for creating an improved color image using a sensor having a color filter
US9679388B2 (en) Region segmentation apparatus and method
US11030715B2 (en) Image processing method and apparatus
US8040558B2 (en) Apparatus and method for shift invariant differential (SID) image data interpolation in fully populated shift invariant matrix
US20040070677A1 (en) Reducing computation time in removing color aliasing artifacts from color digital images
CN113129391B (en) Multi-exposure fusion method based on multi-exposure image feature distribution weight
JP2012022652A (en) Image processing apparatus, image processing method and program
US10163035B2 (en) Edge detecting apparatus and edge detecting method
CN113706393A (en) Video enhancement method, device, equipment and storage medium
CN111163301B (en) Color adjustment method, device and computer readable storage medium
JP2010181951A (en) Image processor and image processing program
CN115379180B (en) Projection picture adjusting method, device, equipment and storage medium
WO2016158490A1 (en) Projection system, projector device, imaging device, and program
JP7114431B2 (en) Image processing method, image processing device and program
JP6417204B2 (en) Image processing apparatus and image processing method
US20210012459A1 (en) Image processing method and apparatus
JP6583008B2 (en) Image correction apparatus, image correction method, and computer program for image correction
CN111192227B (en) Fusion processing method for overlapped pictures
CN107517367B (en) Baeyer area image interpolation method, device, picture processing chip and storage device
CN107103318B (en) Image point positioning method and image point positioning device
US20200351456A1 (en) Image processing device, image processing method, and program
JPWO2006117844A1 (en) Image processing apparatus, image processing method, and information terminal apparatus

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