CN110290332A - A kind of method and apparatus of superimposed image - Google Patents
A kind of method and apparatus of superimposed image Download PDFInfo
- Publication number
- CN110290332A CN110290332A CN201810223446.9A CN201810223446A CN110290332A CN 110290332 A CN110290332 A CN 110290332A CN 201810223446 A CN201810223446 A CN 201810223446A CN 110290332 A CN110290332 A CN 110290332A
- Authority
- CN
- China
- Prior art keywords
- screen
- crop window
- original
- window
- size
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2628—Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/265—Mixing
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Processing (AREA)
Abstract
The present invention provides a kind of method and apparatus of image superposition, pass through the sub-screen viewing area being arranged using a virtual screen and in virtual screen, and the mutual alignment relation of original crop window and minimal expansion crop window before and after the scaled and virtual screen that is added to, minimal expansion crop window is calculated to be added to the initial position after virtual screen and size the superposition window so that extension crop window is added to after virtual screen and the intersection of sub-screen viewing area be original crop window be added to target sub-screen be superimposed window.The present invention is able to solve in large screen splicing control system the problem of existing image minimum dimension limitation during image superposition.
Description
Technical field
The present invention relates to technical field of image processing, in particular to a kind of method and apparatus of superimposed image.
Background technique
Large screen splicing is to spell to meet user to more large screen and watching needs to screens such as plasma, liquid crystal, rear-projections
A kind of technology connect.The major function of large screen splicing control system is can to switch to whole screen to show, multi-channel separate screen and across screen display
Show, access while can arbitrarily moving, scale and roam, can support various video equipment.
It is the networking schematic diagram of prior art large screen splicing control system referring to Fig. 1, Fig. 1, in the networking, including front end
Equipment (including web camera, network ball machine, coding nodes etc.), rear end equipment (including big screen controller, decoder, splicing
Device) and large-size screen monitors group.Wherein, headend equipment is connected by network with rear end equipment, is responsible for converting the image into video data stream
Pass through network transmission to rear end equipment;Rear end equipment, the video data restoration for being responsible for sending headend equipment will be schemed at original image
As progress image cropping, scaling, superposition are output to large-size screen monitors group and are shown.Fig. 2 is one that image is shown in 3*3 large-size screen monitors group
Specific example.
Existing large screen splicing technology, video chip would generally limit the minimum image size of permission.With a video
For codec chip, the minimum widith and minimum constructive height for handling input picture are 64 pixels, i.e. its minimum image size
For 64*64, if that the height or width that need the image cut are then limited by minimum image size, nothing less than 64 pixels
Method correctly cuts out the image of required size, the sub-screen for large-size screen monitors group that also required cutting image can not be added to after scaled
On.
Summary of the invention
In view of this, being able to solve large-size screen monitors spelling the purpose of the present invention is to provide a kind of method and apparatus of superimposed image
In connected control system during image superposition the problem of existing image minimum dimension limitation.
In order to achieve the above object, the present invention provides the following technical scheme that
A kind of method of superimposed image, applied to the rear end equipment being connected in large screen splicing control system, this method packet
It includes:
When the size of original crop window in original image is less than the image minimum dimension that the rear end equipment allows, hold
The following operation of row:
A virtual screen is generated according to the resolution ratio of target sub-screen and described image minimum dimension, and is arranged in virtual screen
Sub-screen identical with target sub-screen size viewing area;
Determine a size not less than described image minimum dimension and comprising original crop window most in original image
Small extension crop window;Wherein, original crop window at least covers one of the quadrangle of the minimal expansion crop window;
Origin coordinates, the origin coordinates of the minimal expansion crop window based on original crop window, the rear end are set
Standby zoom factor calculating minimal expansion crop window when will be superimposed image in original crop window to large-size screen monitors group is scaled
Origin coordinates and size after the virtual screen that is added to afterwards;
The minimal expansion crop window is cut out from original image, it is scaled according to the minimal expansion crop window
Origin coordinates and size after the virtual screen that is added to afterwards will cut the obtained minimal expansion crop window according to described
Be added to the virtual screen after zoom factor scaling;
By the minimum crop window it is scaled after be added to the superposition window of the virtual screen and the sub-screen is shown
The intersection area in area is determined as needing to be added to the superposition window of target sub-screen.
A kind of device of superimposed image, applied to the rear end equipment being connected in large screen splicing control system, the device packet
Include: judging unit, expanding element, computing unit, cuts unit, determination unit at dummy cell;
The judging unit, judges whether the size of the original crop window in original image is less than the rear end equipment and permits
Perhaps image minimum dimension;
The dummy cell, determined for judging unit the original crop window in original image size be less than it is described after
When the image minimum dimension that end equipment allows, it is virtual that one is generated according to the resolution ratio of target sub-screen and described image minimum dimension
Screen, and sub-screen identical with target sub-screen size viewing area is set in virtual screen;
The expanding element, determined for judging unit the original crop window in original image size be less than it is described after
When the image minimum dimension that end equipment allows, determined in original image a size not less than described image minimum dimension and
Minimal expansion crop window comprising original crop window;Wherein, original crop window at least covers the minimal expansion and cuts
One of quadrangle of window;
The computing unit, for origin coordinates, the minimal expansion crop window based on original crop window
Zoom factor when being superimposed image in original crop window to large-size screen monitors group is calculated described minimum expand by beginning coordinate, the rear end equipment
Origin coordinates and size after the virtual screen that is added to after exhibition crop window is scaled;
The cutting unit, for cutting out the minimal expansion crop window from original image, according to the minimum
Origin coordinates and size after the virtual screen that is added to after extension crop window is scaled will cut the obtained minimum expansion
Exhibition crop window is according to the virtual screen that is added to after zoom factor scaling;
The determination unit, for the minimum crop window to be added to the superposition window of the virtual screen after scaled
Window is superimposed with what the intersection area of the sub-screen viewing area was determined as needing to be added to target sub-screen.
As can be seen from the above technical solution, in the present invention, the sub-screen being arranged using a virtual screen and in virtual screen is aobvious
Show that the mutual alignment of area and original crop window and minimal expansion crop window before and after the scaled and virtual screen that is added to is closed
System calculates minimal expansion crop window and is added to the initial position after virtual screen and size, so that extension crop window superposition
The intersection of superposition window after to virtual screen and sub-screen viewing area is that original crop window is added to the folded of target sub-screen
Adding window mouth.It applies the technical scheme of the present invention and the cutting and superposition of the image of width and minimum 1 pixel of height may be implemented,
Therefore cutting and the superposition needs of the image of any size be can satisfy, it is thus possible to solve image in large screen splicing control system
The problem of image minimum dimension present in additive process limits.
Detailed description of the invention
Fig. 1 is the networking schematic diagram of prior art large screen splicing control system;
Fig. 2 is the exemplary diagram that image is shown in prior art 3*3 large-size screen monitors group;
Fig. 3 is prior art image superposition schematic diagram;
Fig. 4 is prior art image superposition flow diagram;
Fig. 5 is the method flow diagram of one superimposed image of the embodiment of the present invention;
Fig. 6 is superimposed image process schematic of the embodiment of the present invention;
Fig. 7 is the method flow diagram of two superimposed image of the embodiment of the present invention;
Fig. 8 is the structural schematic diagram of the device of superimposed image of the embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawing and according to embodiment,
Technical solution of the present invention is described in detail.
It is prior art image superposition schematic diagram referring to Fig. 3, Fig. 3, as shown in figure 3, large-size screen monitors group includes four sub-screens:
Hdmi1,Hdmi2,Hdmi3,Hdmi4;Framework win1 and win2 are projection of the video/image after scaling in large-size screen monitors group,
It is superimposed window;Framework Rect is to be superimposed the window region Chong Die with sub-screen, i.e. superposition framework;Framework Pic is actual view
Frequently/picture.From figure 3, it can be seen that framework Rect is actually the son that is added to after a crop window on framework Pic is scaled
The result of screen Hdmi2.
In existing realization, usually in three steps, the first step is to cut to image superposition, and second step is scaling, third step
It is superposition, specific superposition process is shown in Figure 4: firstly, from the image to show on sub-screen is cut out in original image
Original crop window A;Secondly, zooming in and out original crop window A, become being superimposed window A+;Finally, superposition window A+ is folded
It is added on sub-screen, to complete image superposition process.
However, the realization of above-mentioned superposition process has a basic premise: the size of original crop window is certainly not less than equipment
The minimum image size that body allows, here, the size of crop window should include width and height, and minimum image size also should
Including width and height, but under normal circumstances, the width of minimum image size is identical with height.The size of original crop window
The minimum image size allowed not less than equipment itself refers to: the width of original crop window is not less than the width of minimum image size
Degree, and the height of original crop window is not less than the height of minimum image size.
When the size of original crop window is greater than the minimum image size that equipment itself allows, equipment can not be from original image
The image of required size is cut out, therefore can not execute and realize subsequent image superposition process.
To solve the above-mentioned problems, the invention proposes a kind of method of new superimposed image, cardinal principles an are as follows: side
Face is greater than target sub-screen (sub-screen that target sub-screen, that is, original crop window is finally added to) by one size of setting
Sub-screen identical with a target sub-screen size display area is arranged in the virtual screen of size, intermediate in virtual screen;
On the other hand, original crop window is extended, obtains one and had not only contained original crop window but also be able to satisfy system/set
The minimal expansion crop window limited for the minimum image size of itself;Finally cut using original crop window and minimal expansion
Window is in the relative positional relationship before and after superposition and after original crop window is added to target sub-screen (sub-screen viewing area)
Position and calculate minimal expansion crop window and be added to the initial position after virtual screen and size so that minimal expansion is cut out
The intersection for cutting superposition window and sub-screen viewing area that window is added to after virtual screen is that original crop window is added to target
The superposition window of sub-screen.
Image superimposing method provided by the invention is illustrated below in conjunction with Fig. 5 and Fig. 6.
It is the method flow diagram of one superimposed image of the embodiment of the present invention referring to Fig. 5, Fig. 5, as shown in figure 5, this method application
Rear end equipment in large screen splicing control system, the size of the original crop window suitable for original image be less than it is described after
The case where image minimum dimension that end equipment allows, specifically includes the following steps:
Step 501 generates a virtual screen according to the resolution ratio and described image minimum dimension of target sub-screen, and virtual
Sub-screen identical with target sub-screen size viewing area is set on screen.
In this step, the virtual screen and setting generated according to the resolution ratio of target sub-screen and described image minimum dimension exists
Sub-screen viewing area in virtual screen refers to shown in the intussusception box of the rightmost side Fig. 6:
Origin coordinates with coordinate (0,0) as virtual screen, width a+2p are highly b+2p, wherein the size packet
Width and height are included, w is the width of virtual screen, and h is the height of virtual screen, and a is the horizontal direction pixel number of target sub-screen, b
For the vertical direction pixel number of target sub-screen;P=N × P, N are the desired maximum amplification of user, for example system needs handle
The image maximum of 1 1080P is amplified on 1080 screens of 10*10, then amplification factor is exactly 10;P is minimum image size
The width of width, the minimum image size is identical with height.
And sub-screen viewing area is located at the middle of virtual screen, and with the upper edge of virtual screen, lower edge, left margin, the right edge
Distance be p, therefore, origin coordinates of the sub-screen viewing area in virtual screen be (p, p), width and height be respectively a and
b。
Obviously, in this step 501,
The specific of a virtual screen is generated according to the resolution ratio (a × b) and described image minimum dimension (w, h) of target sub-screen
Method are as follows: set (0,0) for the origin coordinates of virtual screen, and be calculated using the following equation the size of virtual screen: w=a+2p;h
=b+2p.
The method of sub-screen identical with target sub-screen size viewing area is set in virtual screen specifically: by virtual screen
On with coordinate (p, p) be origin coordinates, and width and height be respectively a and b rectangular region covering range be set as institute
State sub-screen viewing area.
Step 502 determines that a size is not less than described image minimum dimension and includes original cutting in original image
The minimal expansion crop window of window;Wherein, original crop window at least cover the minimal expansion crop window quadrangle it
One.
In the present invention, in order to extend original crop window, need the size according to original crop window, in width and/or
Be extended in height, in order to enable to extension crop window be to meet under the image cropping ability need of rear end equipment most
Small extension crop window, the width of minimal expansion crop window should take the maximum value in most a ' and P, should highly take b ' and P
In maximum value.
Therefore, in this step, determine that a size is not less than described image minimum dimension and includes original in original image
The method of the minimal expansion crop window of beginning crop window specifically:
Using the width a` and height b` of following formula setting minimal expansion crop window:
A`=MAX (a ', P);Wherein, a ' is the width of original crop window;MAX () is to be maximized function, such as a`
=MAX (a ', P) is indicated, the maximum value in a ' and P is assigned to a`.
B`=MAX (b ', P);Wherein, b ' is the height of original crop window;MAX () is to be maximized function, such as b`
=MAX (b ', P) is indicated, the maximum value in b ' and P is assigned to b`.
In the present invention, the origin coordinates of original crop window (the window A in such as Fig. 6) is known, it is assumed that for (p ',
Q '), then according to the method for above-mentioned determining minimal expansion crop window (the window B in such as Fig. 6), it is known that original crop window and most
Positional relationship between small extension crop window, therefore rising for minimal expansion crop window can be determined using following two formula
Beginning coordinate (p`, q`):
P`=(p '-(P-a`)) < 0? p ': (p '-P-a`));
Q`=(q '-(P-b`)) < 0? q ': (q '-(P-b`)).
Used in above-mentioned two formula ternary operator (conditional operator), i.e.<expression formula 1>?<expression formula 2>:<
Expression formula 3 >, wherein "? " operator is meant that: first being sought the value of expression formula 1, if it is true, executable expressions 2, and is returned
The result of expression formula 2;The value of IF expression 1 is false, then executable expressions 3, and the result of return expression 3.For example, upper
State formula p`=(p '-(P-a`)) < 0? p ': (p '-P-a`)) in, first judgment expression 1:(p '-(P-a`)) < 0 whether correct,
If correct, the value of expression formula 2:p ' is assigned to p`, otherwise, the value of expression formula 3:(p '-P-a`)) is assigned to p
`。
So far, the origin coordinates, width of minimal expansion crop window and height are it has been determined that moreover, according to above-mentioned determination
The method of minimal expansion crop window, it is ensured that original crop window at least covers and (occupy) the four of minimal expansion crop window
One of a interior angle (abbreviation quadrangle), such as in Fig. 6, minimum is obtained after the original crop window A (starting) of original image is extended
Crop window B is extended, A covers two interior angles on the right side of B.
It should be noted that in practical applications, step 501 and step 502 sequence in no particular order can both be held simultaneously
Row can also be executed according to step 501, the sequence of step 502;It can also be executed according to step 502, the sequence of step 501.
Step 503, the origin coordinates based on original crop window, the origin coordinates of the minimal expansion crop window, institute
It states rear end equipment zoom factor when being superimposed image in original crop window to large-size screen monitors group is calculated into the minimal expansion and cut window
Origin coordinates and size after the virtual screen that is added to after mouth is scaled.
In the present invention, original crop window need it is scaled after be added to which location information of target sub-screen be also
Know, and because the sub-screen viewing area in virtual screen is actually to represent target sub-screen, in the present invention, in order to obtain
The superposition window of original crop window, the position for the sub-screen viewing area that needs to keep to be added to after original crop window is scaled and
Size need it is consistent with the positions and dimensions of target sub-screen that are added to, therefore after can also determining that original crop window is scaled
Be added to origin coordinates, width and height behind sub-screen viewing area, and in turn, original crop window is added to sub-screen viewing area
Origin coordinates, width and height be also known or can be by being calculated with the positional relationship of sub-screen viewing area
's.
With original crop window A in Fig. 6, the origin coordinates of A (p ', q '), width a ' and height b ' it is known that A through contracting
Origin coordinates (p ", q "), width a " and the height b " of sub-screen viewing area of being added to after putting equally is known.
And due at least one of quadrangle of A covering B, the be added to superposition window A+ of virtual screen of A is necessarily located at B and is added to
One of the quadrangle of the superposition window B+ of virtual screen, and the width of A+ and height are respectively a " and b ", it is known that the starting of B+ and A+ is sat
The difference for being marked on width (X direction) and height (y direction) is respectively (a`*i-a ") and (b`*j-b ").
The anti-origin coordinates for pushing away available B+ is ((p "-(a` × i-a ")), (q "-(b` × j-b "))), width and height
Degree is respectively (a "+a` × i-a ' × i) and (b "+b` × j-b ' × j).
Above-mentioned i and j is respectively the rear end equipment by width when being superimposed image in original crop window to large-size screen monitors group
Zoom factor and height zoom factor.
By the concrete methods of realizing it is found that this step is discussed above are as follows:
Be calculated using the following equation the minimal expansion crop window it is scaled after be added to the starting after the virtual screen
Coordinate (p``, q``):
P``=p "-(a` × i-a ");
Q``=q "-(b` × j-b ");
Be calculated using the following equation the minimal expansion crop window it is scaled after be added to the width a after the virtual screen
`` and height b``:
A``=a "+a` × i-a ' × i;
B``=b "+b` × j-b ' × j;
Wherein, p " and q " is respectively the origin coordinates (p ", q ") after being added to virtual screen after original crop window is scaled
In abscissa and ordinate;I and j is respectively the rear end equipment will be when being superimposed image in original crop window to large-size screen monitors group
Width zoom factor and height zoom factor;A " and b " is respectively width and the height after original crop window is scaled, and a "=
A ' × i, b "=b ' × j.
Step 504 cuts out the minimal expansion crop window from original image, cuts window according to the minimal expansion
Origin coordinates and size after the virtual screen that is added to after mouth is scaled, the minimal expansion crop window that cutting is obtained
According to the virtual screen that is added to after zoom factor scaling.
Step 505, be added to the minimum crop window superposition window and the son of the virtual screen after scaled
The intersection area of screen display area is determined as needing to be added to the superposition window of target sub-screen.
It is by being extended to original crop window, by extended window by above method process it is found that in the present invention
With the intersection of the sub-screen viewing area in virtual screen as the target sub-screen that needs to be added to after the virtual screen that is added to after scaled
Superposition window, such as in Fig. 6, original superposition window A is first extended to minimal expansion crop window B, is folded after then scaling B
It is added to virtual screen and obtains superposition window B+, so that being superimposed window B+ with the intersection of the sub-screen viewing area in virtual screen is to be superimposed
A+ can directly be added in target sub-screen by window A+ after obtaining superposition window A+, to complete size less than minimum image
The superposition process of the image of size.
Using method provided by the invention, the present invention may be implemented width and highly be the cutting of the image of 1 pixel
And superposition, therefore can satisfy the superposition demand of the image of any size, it is thus possible to it solves to scheme in large screen splicing control system
The problem of limitation of the image minimum dimension as present in additive process.
It is the image minimum for being less than the rear end equipment to the size of the original crop window in original image and allowing above
The specific implementation flow of image superposition is illustrated in the case where size.For the ruler to the original crop window in original image
It is very little less than the rear end equipment allow image minimum dimension the case where, the present invention in, both can use the prior art method
It realizes image superposition, image superposition can also be realized using the process similar with above-mentioned Fig. 5, be carried out specifically below in conjunction with Fig. 7
It is bright.
It is the method flow diagram of two superimposed image of the embodiment of the present invention referring to Fig. 7, Fig. 7, as shown in fig. 7, this method application
Rear end equipment in large screen splicing control system, the size of the original crop window suitable for original image is not less than described
The case where image minimum dimension that rear end equipment allows, specifically includes the following steps:
Step 701 generates a virtual screen according to the resolution ratio and described image minimum dimension of target sub-screen, and virtual
Sub-screen identical with target sub-screen size viewing area is set on screen.
Original crop window is determined as minimal expansion crop window by step 702, and the origin coordinates and size of the two are homogeneous
Together.
Step 703, the origin coordinates based on original crop window, the origin coordinates of the minimal expansion crop window, institute
It states rear end equipment zoom factor when being superimposed image in original crop window to large-size screen monitors group is calculated into the minimal expansion and cut window
Origin coordinates and size after the virtual screen that is added to after mouth is scaled.
Step 704 cuts out the minimal expansion crop window from original image, cuts window according to the minimal expansion
Origin coordinates and size after the virtual screen that is added to after mouth is scaled, the minimal expansion crop window that cutting is obtained
According to the virtual screen that is added to after zoom factor scaling.
Step 705, be added to the minimum crop window superposition window and the son of the virtual screen after scaled
The intersection area of screen display area is determined as needing to be added to the superposition window of target sub-screen.
Above-mentioned steps 701, the realization of 703-705 are consistent with the implementation method of step 501,503-505 in Fig. 5 respectively,
It repeats no more.
The method of image superposition of the embodiment of the present invention is described in detail above, the present invention also provides a kind of images
The device of superposition, is illustrated below in conjunction with Fig. 8.
It is the structural schematic diagram of the device of superimposed image of the embodiment of the present invention referring to Fig. 8, Fig. 8, which is applied to connection
To the rear end equipment in large screen splicing control system, as shown in figure 8, specifically including: judging unit 801, expands dummy cell 802
It opens up unit 803, computing unit 804, cut unit 805, determination unit 806;Wherein,
Judging unit 801, judges whether the size of the original crop window in original image is less than the rear end equipment and permits
Perhaps image minimum dimension;
Dummy cell 802 determines the size of the original crop window in original image less than described for judging unit 801
When the image minimum dimension that rear end equipment allows, it is empty that one is generated according to the resolution ratio of target sub-screen and described image minimum dimension
Quasi- screen, and sub-screen identical with target sub-screen size viewing area is set in virtual screen;
Expanding element 803 determines the size of the original crop window in original image less than described for judging unit 801
Rear end equipment allow image minimum dimension when, determined in original image a size not less than described image minimum dimension,
It and include the minimal expansion crop window of original crop window;Wherein, original crop window at least covers the minimal expansion and cuts out
Cut one of the quadrangle of window;
Computing unit 804, the starting for origin coordinates, the minimal expansion crop window based on original crop window
Zoom factor when being superimposed image in original crop window to large-size screen monitors group is calculated the minimal expansion by coordinate, the rear end equipment
Origin coordinates and size after the virtual screen that is added to after crop window is scaled;
Unit 805 is cut, for cutting out the minimal expansion crop window from original image, according to the minimum expansion
Origin coordinates and size after the virtual screen that is added to after exhibition crop window is scaled, the minimal expansion that cutting is obtained
Crop window is according to the virtual screen that is added to after zoom factor scaling;
Determination unit 806, for the minimum crop window to be added to the superposition window of the virtual screen after scaled
Window is superimposed with what the intersection area of the sub-screen viewing area was determined as needing to be added to target sub-screen.
In Fig. 8 shown device,
The dummy cell 802 determines that the size of the original crop window in original image is less than for judging unit 801
When the image minimum dimension that the rear end equipment allows, generated according to the resolution ratio of target sub-screen and described image minimum dimension
One virtual screen, and sub-screen identical with target sub-screen size viewing area is set in virtual screen;
The expanding element 803 determines that the size of the original crop window in original image is less than for judging unit 801
When the image minimum dimension that the rear end equipment allows, original crop window is determined as minimal expansion crop window;
The computing unit 804, for the origin coordinates based on original crop window, the minimal expansion crop window
Zoom factor when being superimposed image in original crop window to large-size screen monitors group is calculated the minimum by origin coordinates, the rear end equipment
Origin coordinates and size after the virtual screen that is added to after extension crop window is scaled;
The cutting unit 805, for cutting out the minimal expansion crop window from original image, according to it is described most
Origin coordinates and size after the virtual screen that is added to after small extension crop window is scaled, the minimum that cutting is obtained
Extension crop window is according to the virtual screen that is added to after zoom factor scaling;
The determination unit 806, for the minimum crop window to be added to the superposition of the virtual screen after scaled
What window and the intersection area of the sub-screen viewing area were determined as needing to be added to target sub-screen is superimposed window.
In Fig. 8 shown device,
The dummy cell 802 generates a virtual screen according to the resolution ratio of target sub-screen and described image minimum dimension
When, it is used for:
(0,0) is set by the origin coordinates of virtual screen, and is calculated using the following equation virtual screen dimensions:
W=a+2p;
H=b+2p;
Wherein, the size includes width and height, and w is the width of virtual screen, and h is the height of virtual screen, and a is target
The horizontal direction pixel number of screen, b are the vertical direction pixel number of target sub-screen;P=N × P, N are desired maximum amplification
Multiple, P are the width of minimum image size, and the width of the minimum image size is identical with height;
The dummy cell 802 is used when sub-screen viewing area identical with target sub-screen size is arranged in virtual screen
In: by virtual screen with coordinate (p, p) be origin coordinates, and width and height be respectively a and b rectangular region covering model
It encloses and is set as the sub-screen viewing area.
In Fig. 8 shown device,
The expanding element 803 determines a size not less than described image minimum dimension in original image and includes
When the minimal expansion crop window of original crop window, it is used for:
Using the width a` and height b` of following formula setting minimal expansion crop window:
A`=MAX (a ', P);Wherein, a ' is the width of original crop window;
B`=MAX (b ', P);Wherein, b ' is the height of original crop window;
Assuming that the origin coordinates of original crop window is (p ', q '), then window is cut using following formula setting minimal expansion
The origin coordinates (p`, q`) of mouth:
P`=(p '-(P-a`)) < 0? p ': (p '-P-a`));
Q`=(q '-(P-b`)) < 0? q ': (q '-(P-b`)).
In Fig. 8 shown device,
The computing unit 804, the starting of origin coordinates, the minimal expansion crop window based on original crop window
Zoom factor when being superimposed image in original crop window to large-size screen monitors group is calculated the minimal expansion by coordinate, the rear end equipment
When origin coordinates and size after the virtual screen that is added to after crop window is scaled, it is used for:
Be calculated using the following equation the minimal expansion crop window it is scaled after be added to the starting after the virtual screen
Coordinate (p``, q``):
P``=p "-(a` × i-a ");
Q``=q "-(b` × j-b ");
Be calculated using the following equation the minimal expansion crop window it is scaled after be added to the width a after the virtual screen
`` and height b``:
A``=a "+a` × i-a ' × i;
B``=b "+b` × j-b ' × j;
Wherein, p " and q " is respectively the origin coordinates (p ", q ") after being added to virtual screen after original crop window is scaled
In abscissa and ordinate;I and j is respectively the rear end equipment will be when being superimposed image in original crop window to large-size screen monitors group
Width zoom factor and height zoom factor;A " and b " is respectively width and the height after original crop window is scaled, and a "=
A ' × i, b "=b ' × j.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (10)
1. a kind of method of superimposed image, applied to the rear end equipment being connected in large screen splicing control system, which is characterized in that
This method comprises:
The size of original crop window in original image be less than the rear end equipment allow image minimum dimension when, execute with
Lower operation:
A virtual screen is generated according to the resolution ratio of target sub-screen and described image minimum dimension, and setting and mesh in virtual screen
Mark the identical sub-screen viewing area of sub-screen size;
Minimum expansion of the size not less than described image minimum dimension and comprising original crop window is determined in original image
Open up crop window;Wherein, original crop window at least covers one of the quadrangle of the minimal expansion crop window;
The origin coordinates of origin coordinates, the minimal expansion crop window based on original crop window, the rear end equipment will
Zoom factor when being superimposed image in original crop window to large-size screen monitors group calculate the minimal expansion crop window it is scaled after it is folded
Origin coordinates and size after being added to the virtual screen;
The minimal expansion crop window is cut out from original image, it is scaled rear folded according to the minimal expansion crop window
Origin coordinates and size after being added to the virtual screen will cut the obtained minimal expansion crop window according to the scaling
Be added to the virtual screen after coefficient scaling;
By the minimum crop window be added to after scaled the virtual screen superposition window and the sub-screen viewing area
Intersection area is determined as needing to be added to the superposition window of target sub-screen.
2. the method according to claim 1, wherein
When the size of original crop window in original image is not less than the image minimum dimension that the rear end equipment allows, execute
It operates below:
A virtual screen is generated according to the resolution ratio of target sub-screen and described image minimum dimension, and setting and mesh in virtual screen
Mark the identical sub-screen viewing area of sub-screen size;
Original crop window is determined as minimal expansion crop window;
The origin coordinates of origin coordinates, the minimal expansion crop window based on original crop window, the rear end equipment will
Zoom factor when being superimposed image in original crop window to large-size screen monitors group calculate the minimal expansion crop window it is scaled after it is folded
Origin coordinates and size after being added to the virtual screen;
The minimal expansion crop window is cut out from original image, it is scaled rear folded according to the minimal expansion crop window
Origin coordinates and size after being added to the virtual screen will cut the obtained minimal expansion crop window according to the scaling
Be added to the virtual screen after coefficient scaling;
By the minimum crop window be added to after scaled the virtual screen superposition window and the sub-screen viewing area
Intersection area is determined as needing to be added to the superposition window of target sub-screen.
3. method according to claim 1 or 2, which is characterized in that
The method for generating a virtual screen according to the resolution ratio of target sub-screen and described image minimum dimension are as follows: by rising for virtual screen
Beginning coordinate is set as (0,0), and is calculated using the following equation virtual screen dimensions:
W=a+2p;
H=b+2p;
Wherein, the size includes width and height, and w is the width of virtual screen, and h is the height of virtual screen, and a is target sub-screen
Horizontal direction pixel number, b be target sub-screen vertical direction pixel number;P=N × P, N are the desired maximum amplification of user
Multiple, P are the width of minimum image size, and the width of the minimum image size is identical with height;
In virtual screen be arranged sub-screen identical with target sub-screen size viewing area method are as follows: by virtual screen with coordinate
(p, p) is origin coordinates, and the range of the rectangular region covering of width and height respectively a and b is set as the sub-screen
Viewing area.
4. according to the method described in claim 3, it is characterized in that;
Minimum expansion of the size not less than described image minimum dimension and comprising original crop window is determined in original image
The method for opening up crop window are as follows:
Using the width a` and height b` of following formula setting minimal expansion crop window:
A`=MAX (a ', P);Wherein, a ' is the width of original crop window;
B`=MAX (b ', P);Wherein, b ' is the height of original crop window;
Assuming that the origin coordinates of original crop window is (p ', q '), then using following formula setting minimal expansion crop window
Origin coordinates (p`, q`):
P`=(p '-(P-a`)) < 0? p ': (p '-P-a`));
Q`=(q '-(P-b`)) < 0? q ': (q '-(P-b`)).
5. according to the method described in claim 4, it is characterized in that,
The origin coordinates of origin coordinates, the minimal expansion crop window based on original crop window, the rear end equipment will
Zoom factor when being superimposed image in original crop window to large-size screen monitors group calculate the minimal expansion crop window it is scaled after it is folded
The method of origin coordinates and size after being added to the virtual screen are as follows:
Be calculated using the following equation the minimal expansion crop window it is scaled after be added to the origin coordinates after the virtual screen
(p``, q``):
P``=p "-(a` × i-a ");
Q``=q "-(b` × j-b ");
Be calculated using the following equation the minimal expansion crop window it is scaled after be added to the width a`` after the virtual screen and
Height b``:
A``=a "+a` × i-a ' × i;
B``=b "+b` × j-b ' × j;
Wherein, p " and q " is respectively in the origin coordinates (p ", q ") after being added to virtual screen after original crop window is scaled
Abscissa and ordinate;I and j is respectively the rear end equipment by width when being superimposed image in original crop window to large-size screen monitors group
Zoom factor and height zoom factor;A " and b " is respectively width and the height after original crop window is scaled, and a "=a ' ×
I, b "=b ' × j.
6. a kind of device of superimposed image, applied to the rear end equipment being connected in large screen splicing control system, which is characterized in that
The device includes: judging unit, dummy cell, expanding element, computing unit, cuts unit, determination unit;
The judging unit, judges whether the size of the original crop window in original image is less than what the rear end equipment allowed
Image minimum dimension;
The dummy cell determines that the size of the original crop window in original image is less than the rear end and sets for judging unit
When the standby image minimum dimension allowed, a virtual screen is generated according to the resolution ratio of target sub-screen and described image minimum dimension,
And sub-screen identical with target sub-screen size viewing area is set in virtual screen;
The expanding element determines that the size of the original crop window in original image is less than the rear end and sets for judging unit
When the standby image minimum dimension allowed, a size is determined in original image not less than described image minimum dimension and includes
The minimal expansion crop window of original crop window;Wherein, original crop window at least covers the minimal expansion crop window
One of quadrangle;
The computing unit, the starting for origin coordinates, the minimal expansion crop window based on original crop window are sat
Zoom factor when being superimposed image in original crop window to large-size screen monitors group is calculated the minimal expansion sanction by mark, the rear end equipment
Cut window it is scaled after be added to the origin coordinates after the virtual screen and size;
The cutting unit, for cutting out the minimal expansion crop window from original image, according to the minimal expansion
Origin coordinates and size after the virtual screen that is added to after crop window is scaled will cut the obtained minimal expansion and cut out
Window is cut according to the virtual screen that is added to after zoom factor scaling;
The determination unit, for by the minimum crop window be added to after scaled the virtual screen superposition window and institute
The intersection area for stating sub-screen viewing area is determined as needing to be added to the superposition window of target sub-screen.
7. device according to claim 6, which is characterized in that
The dummy cell determines that the size of the original crop window in original image is less than the rear end and sets for judging unit
When the standby image minimum dimension allowed, a virtual screen is generated according to the resolution ratio of target sub-screen and described image minimum dimension,
And sub-screen identical with target sub-screen size viewing area is set in virtual screen;
The expanding element determines that the size of the original crop window in original image is less than the rear end and sets for judging unit
When the standby image minimum dimension allowed, original crop window is determined as minimal expansion crop window;
The computing unit, the starting for origin coordinates, the minimal expansion crop window based on original crop window are sat
Zoom factor when being superimposed image in original crop window to large-size screen monitors group is calculated the minimal expansion sanction by mark, the rear end equipment
Cut window it is scaled after be added to the origin coordinates after the virtual screen and size;
The cutting unit, for cutting out the minimal expansion crop window from original image, according to the minimal expansion
Origin coordinates and size after the virtual screen that is added to after crop window is scaled will cut the obtained minimal expansion and cut out
Window is cut according to the virtual screen that is added to after zoom factor scaling;
The determination unit, for by the minimum crop window be added to after scaled the virtual screen superposition window and institute
The intersection area for stating sub-screen viewing area is determined as needing to be added to the superposition window of target sub-screen.
8. device according to claim 6 or 7, which is characterized in that
The dummy cell is used for when generating a virtual screen according to the resolution ratio of target sub-screen and described image minimum dimension:
(0,0) is set by the origin coordinates of virtual screen, and is calculated using the following equation virtual screen dimensions:
W=a+2p;
H=b+2p;
Wherein, the size includes width and height, and w is the width of virtual screen, and h is the height of virtual screen, and a is target sub-screen
Horizontal direction pixel number, b be target sub-screen vertical direction pixel number;P=N × P, N are the desired maximum amplification of user
Multiple, P are the width of minimum image size, and the width of the minimum image size is identical with height;
The dummy cell is used for: will be empty when sub-screen viewing area identical with target sub-screen size is arranged in virtual screen
With coordinate (p, p) for origin coordinates on quasi- screen, and width and height are respectively the range setting of the rectangular region covering of a and b
For the sub-screen viewing area.
9. device according to claim 8, it is characterised in that;
The expanding element determines that a size is not less than described image minimum dimension and includes original sanction in original image
When cutting the minimal expansion crop window of window, it is used for:
Using the width a` and height b` of following formula setting minimal expansion crop window:
A`=MAX (a ', P);Wherein, a ' is the width of original crop window;
B`=MAX (b ', P);Wherein, b ' is the height of original crop window;
Assuming that the origin coordinates of original crop window is (p ', q '), then using following formula setting minimal expansion crop window
Origin coordinates (p`, q`):
P`=(p '-(P-a`)) < 0? p ': (p '-P-a`));
Q`=(q '-(P-b`)) < 0? q ': (q '-(P-b`)).
10. device according to claim 9, which is characterized in that
The computing unit, origin coordinates, the origin coordinates of the minimal expansion crop window, institute based on original crop window
It states rear end equipment zoom factor when being superimposed image in original crop window to large-size screen monitors group is calculated into the minimal expansion and cut window
When origin coordinates and size after the virtual screen that is added to after mouthful scaled, it is used for:
Be calculated using the following equation the minimal expansion crop window it is scaled after be added to the origin coordinates after the virtual screen
(p``, q``):
P``=p "-(a` × i-a ");
Q``=q "-(b` × j-b ");
Be calculated using the following equation the minimal expansion crop window it is scaled after be added to the width a`` after the virtual screen and
Height b``:
A``=a "+a` × i-a ' × i;
B``=b "+b` × j-b ' × j;
Wherein, p " and q " is respectively in the origin coordinates (p ", q ") after being added to virtual screen after original crop window is scaled
Abscissa and ordinate;I and j is respectively the rear end equipment by width when being superimposed image in original crop window to large-size screen monitors group
Zoom factor and height zoom factor;A " and b " is respectively width and the height after original crop window is scaled, and a "=a ' ×
I, b "=b ' × j.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810223446.9A CN110290332A (en) | 2018-03-19 | 2018-03-19 | A kind of method and apparatus of superimposed image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810223446.9A CN110290332A (en) | 2018-03-19 | 2018-03-19 | A kind of method and apparatus of superimposed image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110290332A true CN110290332A (en) | 2019-09-27 |
Family
ID=68000799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810223446.9A Pending CN110290332A (en) | 2018-03-19 | 2018-03-19 | A kind of method and apparatus of superimposed image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110290332A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112118475A (en) * | 2020-08-13 | 2020-12-22 | 视联动力信息技术股份有限公司 | Cross-screen window display method and device, terminal equipment and storage medium |
CN114302211A (en) * | 2021-12-29 | 2022-04-08 | 北京百度网讯科技有限公司 | Video playing method and device and electronic equipment |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020180734A1 (en) * | 1999-12-06 | 2002-12-05 | Fujitsu Limited | Image display method and image display device |
CN102708841A (en) * | 2012-04-16 | 2012-10-03 | 广东威创视讯科技股份有限公司 | Signal window-opening method and device |
CN102737614A (en) * | 2011-04-13 | 2012-10-17 | 宁波奇科威智能科技有限公司 | Method for realizing multi-layer image display on joint screen and joint screen |
CN103425403A (en) * | 2012-05-14 | 2013-12-04 | 华为技术有限公司 | Method, device and system for traversing display contents between screens |
CN103679637A (en) * | 2013-12-23 | 2014-03-26 | 广东威创视讯科技股份有限公司 | Display unit coordinate setting method and device based on mosaic display wall signal window |
CN104104887A (en) * | 2013-04-04 | 2014-10-15 | 索尼公司 | A method and apparatus for applying a border to an image |
CN104754305A (en) * | 2015-03-26 | 2015-07-01 | 北京德普视讯科技有限公司 | Tiled display control system based on cloud computing technology, image display method adopting system and application of system |
CN105338291A (en) * | 2014-07-29 | 2016-02-17 | 杭州海康威视数字技术股份有限公司 | Method and device for processing virtual tiled screen |
JP2016051110A (en) * | 2014-09-01 | 2016-04-11 | シャープ株式会社 | Display device and display control program |
CN105721791A (en) * | 2016-02-02 | 2016-06-29 | 深圳市创维群欣安防科技股份有限公司 | Rotating display method and system of spliced display screen |
CN106354454A (en) * | 2016-08-11 | 2017-01-25 | 广东威创视讯科技股份有限公司 | Spicing wall image display method and system |
CN106791482A (en) * | 2016-12-13 | 2017-05-31 | 广东威创视讯科技股份有限公司 | A kind of video-splicing method that platform is thought based on sea |
CN107403409A (en) * | 2017-07-21 | 2017-11-28 | 苏州科达科技股份有限公司 | Image processing method, device and image split-joint method and device before image mosaic |
-
2018
- 2018-03-19 CN CN201810223446.9A patent/CN110290332A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020180734A1 (en) * | 1999-12-06 | 2002-12-05 | Fujitsu Limited | Image display method and image display device |
CN102737614A (en) * | 2011-04-13 | 2012-10-17 | 宁波奇科威智能科技有限公司 | Method for realizing multi-layer image display on joint screen and joint screen |
CN102708841A (en) * | 2012-04-16 | 2012-10-03 | 广东威创视讯科技股份有限公司 | Signal window-opening method and device |
CN103425403A (en) * | 2012-05-14 | 2013-12-04 | 华为技术有限公司 | Method, device and system for traversing display contents between screens |
CN104104887A (en) * | 2013-04-04 | 2014-10-15 | 索尼公司 | A method and apparatus for applying a border to an image |
CN103679637A (en) * | 2013-12-23 | 2014-03-26 | 广东威创视讯科技股份有限公司 | Display unit coordinate setting method and device based on mosaic display wall signal window |
CN105338291A (en) * | 2014-07-29 | 2016-02-17 | 杭州海康威视数字技术股份有限公司 | Method and device for processing virtual tiled screen |
JP2016051110A (en) * | 2014-09-01 | 2016-04-11 | シャープ株式会社 | Display device and display control program |
CN104754305A (en) * | 2015-03-26 | 2015-07-01 | 北京德普视讯科技有限公司 | Tiled display control system based on cloud computing technology, image display method adopting system and application of system |
CN105721791A (en) * | 2016-02-02 | 2016-06-29 | 深圳市创维群欣安防科技股份有限公司 | Rotating display method and system of spliced display screen |
CN106354454A (en) * | 2016-08-11 | 2017-01-25 | 广东威创视讯科技股份有限公司 | Spicing wall image display method and system |
CN106791482A (en) * | 2016-12-13 | 2017-05-31 | 广东威创视讯科技股份有限公司 | A kind of video-splicing method that platform is thought based on sea |
CN107403409A (en) * | 2017-07-21 | 2017-11-28 | 苏州科达科技股份有限公司 | Image processing method, device and image split-joint method and device before image mosaic |
Non-Patent Citations (1)
Title |
---|
吕熊: ""基于DisplayPort的大型液晶电视墙系统研究与实现"", 《电子技术及信息科学》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112118475A (en) * | 2020-08-13 | 2020-12-22 | 视联动力信息技术股份有限公司 | Cross-screen window display method and device, terminal equipment and storage medium |
CN114302211A (en) * | 2021-12-29 | 2022-04-08 | 北京百度网讯科技有限公司 | Video playing method and device and electronic equipment |
CN114302211B (en) * | 2021-12-29 | 2023-08-01 | 北京百度网讯科技有限公司 | Video playing method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6970283B2 (en) | Image stitching method and device, storage medium | |
US8866871B2 (en) | Image processing method and image processing device | |
JP5649429B2 (en) | Video processing device, camera device, and video processing method | |
CN102427504B (en) | Image processing method, device and system based on background splicing wall | |
KR20130112574A (en) | Apparatus and method for improving quality of enlarged image | |
KR20040098743A (en) | Method for photographing in a camera | |
CN104618648A (en) | Panoramic video splicing system and splicing method | |
KR20080104546A (en) | Real-size preview system and control method in terminal that have digitial camera function | |
JP2015039085A (en) | Image processor and image processing method | |
CN110290332A (en) | A kind of method and apparatus of superimposed image | |
CN111124326A (en) | Picture display method, terminal and computer readable storage medium | |
WO2022111330A1 (en) | Image stitching method and apparatus for multi-camera device, storage medium, and terminal | |
US8494219B2 (en) | Image extraction device and image extraction method | |
JP5836671B2 (en) | Imaging apparatus and image display system | |
JP2012133408A (en) | Image processing device and program | |
CN103986895A (en) | Projection system control method and projection device | |
CN111050148A (en) | Three-folding-screen-site-based projection method and system and three-folding-screen site | |
WO2021012246A1 (en) | Multi-video signal previewing method and multi-video signal previewing system | |
CN111045286A (en) | Projection method and system based on double-folding screen field and double-folding screen field | |
JP5645448B2 (en) | Image processing apparatus, image processing method, and program | |
CN104777700B (en) | Height immerses projection multi-projector Optimization deployment method | |
CN105120157A (en) | Image processing method and apparatus | |
CN111050147A (en) | Projection method and system based on five-fold screen field and five-fold screen field | |
KR20190087942A (en) | Object Tracking Device and Method | |
EP2237564A1 (en) | Display method for determining attribute of image to be projected, according to user's manipulation on image projection screen, and display apparatus using the same |
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 | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20211217 |
|
AD01 | Patent right deemed abandoned |