Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.
Embodiment one
With reference to the implementation method flow chart that figure 1, Fig. 1 is a kind of abnormity splicing that the embodiment of the present invention one provides, described method comprises the steps:
Step 101, the order that monitor is sent by communication protocol reception host computer;
Concrete, as shown in Figure 2, host computer sends a command to the monitor of display screen by communication protocol, informs the position belonging to every platform monitor.The form sending order as: 68 × 1 × 2 × 3 × 4, × 1 represents No. ID, and × 2 represent the pixel of horizontal directions difference or horizontal starting point, and × 3 represent the pixel of vertical direction difference or vertical starting point, × 4 quantity representing all monitors.
If the matrix major function in Fig. 2 is that a signal is divided into multiple signal, thus every platform monitor is made to receive identical signal.
Display screen in Fig. 2 is used for doing terminal demonstration, and the monitor in every platform display screen is contacted by serial ports, and namely every platform monitor is after receiving order, order can be issued to leave from office monitor again, ensure that every platform monitor can receive orders.
After every platform monitor receives orders, judge in described order No. ID whether number identical with self ID, if so, then continue to perform following steps, if not, then do not perform.
Step 102, described monitor, according in described order No. ID, judges whether with No. ID of described monitor consistent; If so, then obtain the horizontal starting point of described monitor and vertical starting point according to described order, or obtain the pixel that pixel and vertical direction that described monitor horizontal direction differs differ;
As shown in Figure 3, suppose that abnormity splicing is made up of n display screen, the physical resolution of every platform monitor is w*h, and total physical resolution of horizontal direction is W, and total physical resolution of vertical direction is H, and the resolution of input picture is w
in* h
in, the starting point (X of input picture
star, Y
start), suppose that the horizontal starting point obtaining every platform monitor is (x, y) with vertical starting point.If first piece of horizontal starting point of display screen is (x with vertical starting point
1, y
1), the pixel that the pixel that first piece of display screen horizontal direction differs and vertical direction differ is (x
1* w, y
1* h).
As shown in Figure 2, the form that host computer sends order can be 68 × 1 × 2 × 3 × 4, and in × 1, No. ID is 1, × 2 is x
1, × 3 is y
1, × 4 is n;
Or the form that host computer sends order can be 68 × 1 × 2 × 3 × 4, and in × 1, No. ID is 1, × 2 is x
1* w, × 3 is y
1* h, × 4 is n.
Step 103, according to horizontal starting point and the vertical starting point of described monitor, or the pixel that the pixel that monitor horizontal direction differs and vertical direction differ, calculates the horizontal starting point of the pixel of described monitor display image and vertical starting point;
Can be preferred, describedly calculate the horizontal starting point of pixel of described monitor display image and vertical starting point according to the horizontal starting point in described order and vertical starting point, comprising:
Described monitor, according to the horizontal starting point in described order, calculates the horizontal starting point of the pixel of the display screen display image at described monitor place;
Described monitor, according to the vertical starting point in described order, calculates the vertical starting point of the pixel of the display screen display image at described monitor place.
Concrete, described monitor, according to the horizontal starting point in described order, calculates the horizontal starting point of the pixel of the display screen display image at described monitor place, comprising:
Described monitor, according to the physical resolution of the horizontal direction of the horizontal starting point in described order and described monitor, obtains total physical resolution of described monitor in horizontal direction;
In this step, by the horizontal starting point x in order
1be multiplied by the physical resolution w in the horizontal direction of every platform monitor, obtain total physical resolution x of described monitor in horizontal direction
1* w.
According to total physical resolution of monitor described in described horizontal direction, and total physical resolution that in horizontal direction, the total physical resolution of all monitors obtains described monitor in horizontal direction accounts for the probability of total physical resolution of all monitors in horizontal direction;
In this step, by total physical resolution x of monitor described in horizontal direction
1* w, divided by total physical resolution W of monitors all in horizontal direction, obtains probability x
1* w/W.
In the horizontal starting point of the pixel of described image when the display screen obtaining described monitor place according to the resolution of the horizontal direction of described probability and described image shows described image;
In this step, by probability x
1* w/W, is multiplied by the resolution w of the horizontal direction of input picture
in, obtain the horizontal starting point x of the pixel at described image
1* w*w
in/ W.
According to the horizontal starting point of the horizontal starting point of the pixel at described image and the pixel of described image, the display screen obtaining described monitor place shows the horizontal starting point of the pixel of described image.
In this step, by the starting point X of the horizontal direction of input picture
startadd the horizontal starting point x of the pixel at described image
1* w*w
in/ W, the display screen obtaining described monitor place shows the horizontal starting point X of the pixel of described image
start+ x
1* w*w
in/ W.
Concrete, described monitor, according to the vertical starting point in described order, calculates the vertical starting point of the pixel of the display screen display image at described monitor place, comprising:
Described monitor, according to the physical resolution of the vertical direction of the vertical starting point in described order and described monitor, obtains total physical resolution of described monitor in vertical direction;
In this step, by the vertical starting point y in order
1be multiplied by the physical resolution h in the vertical direction of every platform monitor, obtain total physical resolution y of described monitor in vertical direction
1* h.
According to total physical resolution of monitor described in described vertical direction, and total physical resolution that in vertical direction, the total physical resolution of all monitors obtains described monitor in vertical direction accounts for the probability of total physical resolution of all monitors in vertical direction;
In this step, by total physical resolution y of monitor described in vertical direction
1* h, divided by total physical resolution H of monitors all in vertical direction, obtains probability y
1* h/H.
In the vertical starting point of the pixel of described image when the display screen obtaining described monitor place according to described probability and the resolution of the vertical direction of described image shows described image;
In this step, by probability y
1* h/H, is multiplied by the resolution h of the vertical direction of input picture
in, obtain the vertical starting point y of the pixel at described image
1* h*h
in/ H.
According to the vertical starting point of the vertical starting point of the pixel at described image with the pixel of described image, the display screen obtaining described monitor place shows the vertical starting point of the pixel of described image.
In this step, by the starting point Y of the vertical direction of input picture
startadd the vertical starting point y of the pixel at described image
1* h*h
in/ H, the display screen obtaining described monitor place shows the vertical starting point Y of the pixel of described image
start+ y
1* h*h
in/ H.
According to said method, calculate every platform display screen in Fig. 3 and show the horizontal starting point of the pixel of described image and vertical starting point, result of calculation is as follows:
Num1:(X
start+x
1*w*w
in/W,Y
start+y
1*h*h
in/H);
Num2:(X
start+x
2*w*w
in/W,Y
start+y
2*h*h
in/H);
Num3:(X
start+x
3*w*w
in/W,Y
start+y
3*h*h
in/H);
Num4:(X
start+x
4*w*w
in/W,Y
start+y
4*h*h
in/H);
------------------------------
Numn:(X
start+x
n*w*w
in/W,Y
start+y
n*h*h
in/H);
Can be preferred, the pixel that described pixel according to monitor horizontal direction differs and vertical direction differ, calculates the horizontal starting point of the pixel of described monitor display image and vertical starting point, comprising:
According to the pixel that monitor horizontal direction differs, calculate the horizontal starting point of the pixel of described monitor display image;
According to the pixel that monitor vertical direction differs, calculate the vertical starting point of the pixel of described monitor display image.
Concrete, the described pixel according to monitor horizontal direction differs, the horizontal starting point calculating the pixel of described monitor display image comprises:
The pixel that described monitor horizontal direction differs, is equal to total physical resolution of described monitor in horizontal direction;
In this step, the pixel that described monitor horizontal direction differs is x
1* w, is equal to total physical resolution x of described monitor in horizontal direction
1* w.
According to total physical resolution of monitor described in described horizontal direction, and total physical resolution that in horizontal direction, the total physical resolution of all monitors obtains described monitor in horizontal direction accounts for the probability of total physical resolution of all monitors in horizontal direction;
In this step, by total physical resolution x of monitor described in horizontal direction
1* w, divided by total physical resolution W of monitors all in horizontal direction, obtains probability x
1* w/W.
In the horizontal starting point of the pixel of described image when the display screen obtaining described monitor place according to the resolution of the horizontal direction of described probability and described image shows described image;
In this step, by probability x
1* w/W, is multiplied by the resolution w of the horizontal direction of input picture
in, obtain the horizontal starting point x of the pixel at described image
1* w*w
in/ W.
According to the horizontal starting point of the horizontal starting point of the pixel at described image and the pixel of described image, the display screen obtaining described monitor place shows the horizontal starting point of the pixel of described image.
In this step, by the starting point X of the horizontal direction of input picture
startadd the horizontal starting point x of the pixel at described image
1* w*w
in/ W, the display screen obtaining described monitor place shows the horizontal starting point X of the pixel of described image
start+ x
1* w*w
in/ W.
Concrete, the described pixel according to monitor vertical direction differs, the vertical starting point calculating the pixel of described monitor display image comprises:
The pixel that described monitor vertical direction differs is equal to total physical resolution of described monitor in vertical direction;
In this step, the pixel that described monitor vertical direction differs is y
1* h, is equal to total physical resolution y of described monitor in vertical direction
1* h.
According to total physical resolution of monitor described in described vertical direction, and total physical resolution that in vertical direction, the total physical resolution of all monitors obtains described monitor in vertical direction accounts for the probability of total physical resolution of all monitors in vertical direction;
In this step, by total physical resolution y of monitor described in vertical direction
1* h, divided by total physical resolution H of monitors all in vertical direction, obtains probability y
1* h/H.
In the vertical starting point of the pixel of described image when the display screen obtaining described monitor place according to described probability and the resolution of the vertical direction of described image shows described image;
In this step, by probability y
1* h/H, is multiplied by the resolution h of the vertical direction of input picture
in, obtain the vertical starting point y of the pixel at described image
1* h*h
in/ H.
According to the vertical starting point of the vertical starting point of the pixel at described image with the pixel of described image, the display screen obtaining described monitor place shows the vertical starting point of the pixel of described image.
In this step, by the starting point Y of the vertical direction of input picture
startadd the vertical starting point y of the pixel at described image
1* h*h
in/ H, the display screen obtaining described monitor place shows the vertical starting point Y of the pixel of described image
start+ y
1* h*h
in/ H.
According to said method, calculate every platform display screen in Fig. 3 and show the horizontal starting point of the pixel of described image and vertical starting point, result of calculation is as follows:
Num1:(X
start+x
1*w*w
in/W,Y
start+y
1*h*h
in/H);
Num2:(X
start+x
2*w*w
in/W,Y
start+y
2*h*h
in/H);
Num3:(X
start+x
3*w*w
in/W,Y
start+y
3*h*h
in/H);
Num4:(X
start+x
4*w*w
in/W,Y
start+y
4*h*h
in/H);
--------------------------------
Numn:(X
start+x
n*w*w
in/W,Y
start+y
n*h*h
in/H);
Step 104, described monitor, according to the horizontal starting point of described pixel and vertical starting point, amplifies the described image of display.
Concrete, can calculate after described image amplifies in described monitor according to closing on most value-based algorithm (Nearest NeighborAlgorithm), described monitor the value of each pixel on a display screen.
As formula, O (i, j)=F ((2 × w
in× i+w
in)/(2 × nw
out), (2 × h
in× j+h
in)/(2 × nh
out))
In described formula, O (i, j) is after described Nonlinear magnify, described monitor screen the value of each pixel on a display screen; F is the function closing on value-based algorithm; w
outit is the physical resolution of the horizontal direction of described monitor; h
outthe physical resolution of the vertical direction of described monitor.
After supposing to calculate described Nonlinear magnify, at the pixel value of (1,1) of described monitor screen place display screen.W
in=1920, w
out=1920, ho
ut=1920, n=3, then according to (2 × w
in× i+w
in)/(2 × nw
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, in like manner, (2 × h
in× j+h
in)/(2 × nh
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, round up, can obtain, equal the pixel value of (1,1) of image at the pixel value of display screen (1,1).
The embodiment of the present invention provides a kind of implementation method of abnormity splicing, described method obtains the order of host computer transmission by monitor, calculate the horizontal starting point of the pixel of described monitor display image and vertical starting point according to described order, and amplify the described image of display.Thus realize by determining the position belonging to monitor, cutting is carried out to video, thus realizes the appearance of abnormity, if the putting position variation of monitor, only need send order to monitor according to new putting position.
Embodiment two
With reference to the implementation method flow chart that figure 4, Fig. 4 is a kind of abnormity splicing that example two of the present invention provides.Described method comprises the steps:
Step 401, the order that monitor is sent by communication protocol reception host computer;
Concrete, as shown in Figure 2, host computer sends a command to the monitor of display screen by communication protocol, informs the position belonging to every platform monitor.The form sending order as: 68 × 1 × 2 × 3 × 4, × 1 represents No. ID, and × 2 represent the pixel of horizontal directions difference or horizontal starting point, and × 3 represent the pixel of vertical direction difference or vertical starting point, × 4 quantity representing all monitors.
If the matrix major function in Fig. 2 is that a signal is divided into multiple signal, thus every platform monitor is made to receive identical signal.
Display screen in Fig. 2 is used for doing terminal demonstration, and the monitor in every platform display screen is contacted by serial ports, and namely every platform monitor is after receiving order, order can be issued to leave from office monitor again, ensure that every platform monitor can receive orders.
After every platform monitor receives orders, judge in described order No. ID whether number identical with self ID, if so, then continue to perform following steps, if not, then do not perform.
Step 402, described monitor, according in described order No. ID, judges whether with No. ID of described monitor consistent; If so, then the horizontal starting point of described monitor and vertical starting point is obtained according to described order;
As shown in Figure 3, suppose that abnormity splicing is made up of n display screen, the physical resolution of every platform monitor is w*h, and total physical resolution of horizontal direction is W, and total physical resolution of vertical direction is H, and the resolution of input picture is w
in* hi
n, the starting point (X of input picture
star, Y
start), suppose that the horizontal starting point obtaining every platform monitor is (x, y) with vertical starting point.If first piece of horizontal starting point of display screen is (x with vertical starting point
1, y
1), the pixel that the pixel that first piece of display screen horizontal direction differs and vertical direction differ is (x
1* w, y
1* h).
As shown in Figure 2, the form that host computer sends order can be 68 × 1 × 2 × 3 × 4, and in × 1, No. ID is 1, × 2 is x
1, × 3 is y
1, × 4 is n.
Step 403, according to horizontal starting point and the vertical starting point of described monitor, calculates the horizontal starting point of the pixel of described monitor display image and vertical starting point;
Describedly calculate the horizontal starting point of pixel of described monitor display image and vertical starting point according to the horizontal starting point in described order and vertical starting point, comprising:
Described monitor, according to the horizontal starting point in described order, calculates the horizontal starting point of the pixel of the display screen display image at described monitor place;
Described monitor, according to the vertical starting point in described order, calculates the vertical starting point of the pixel of the display screen display image at described monitor place.
Concrete, described monitor, according to the horizontal starting point in described order, calculates the horizontal starting point of the pixel of the display screen display image at described monitor place, comprising:
Described monitor, according to the physical resolution of the horizontal direction of the horizontal starting point in described order and described monitor, obtains total physical resolution of described monitor in horizontal direction;
In this step, by the horizontal starting point x in order
1be multiplied by the physical resolution w in the horizontal direction of every platform monitor, obtain total physical resolution x of described monitor in horizontal direction
1* w.
According to total physical resolution of monitor described in described horizontal direction, and total physical resolution that in horizontal direction, the total physical resolution of all monitors obtains described monitor in horizontal direction accounts for the probability of total physical resolution of all monitors in horizontal direction;
In this step, by total physical resolution x of monitor described in horizontal direction
1* w, divided by total physical resolution W of monitors all in horizontal direction, obtains probability x
1* w/W.
In the horizontal starting point of the pixel of described image when the display screen obtaining described monitor place according to the resolution of the horizontal direction of described probability and described image shows described image;
In this step, by probability x
1* w/W, is multiplied by the resolution w of the horizontal direction of input picture
in, obtain the horizontal starting point x of the pixel at described image
1* w*w
in/ W.
According to the horizontal starting point of the horizontal starting point of the pixel at described image and the pixel of described image, the display screen obtaining described monitor place shows the horizontal starting point of the pixel of described image.
In this step, by the starting point X of the horizontal direction of input picture
startadd the horizontal starting point x of the pixel at described image
1* w*w
in/ W, the display screen obtaining described monitor place shows the horizontal starting point X of the pixel of described image
start+ x
1* w*w
in/ W.
Concrete, described monitor, according to the vertical starting point in described order, calculates the vertical starting point of the pixel of the display screen display image at described monitor place, comprising:
Described monitor, according to the physical resolution of the vertical direction of the vertical starting point in described order and described monitor, obtains total physical resolution of described monitor in vertical direction;
In this step, by the vertical starting point y in order
1be multiplied by the physical resolution h in the vertical direction of every platform monitor, obtain total physical resolution y of described monitor in vertical direction
1* h.
According to total physical resolution of monitor described in described vertical direction, and total physical resolution that in vertical direction, the total physical resolution of all monitors obtains described monitor in vertical direction accounts for the probability of total physical resolution of all monitors in vertical direction;
In this step, by total physical resolution y of monitor described in vertical direction
1* h, divided by total physical resolution H of monitors all in vertical direction, obtains probability y
1* h/H.
In the vertical starting point of the pixel of described image when the display screen obtaining described monitor place according to described probability and the resolution of the vertical direction of described image shows described image;
In this step, by probability y
1* h/H, is multiplied by the resolution h of the vertical direction of input picture
in, obtain the vertical starting point y of the pixel at described image
1* h*h
in/ H.
According to the vertical starting point of the vertical starting point of the pixel at described image with the pixel of described image, the display screen obtaining described monitor place shows the vertical starting point of the pixel of described image.
In this step, by the starting point Y of the vertical direction of input picture
startadd the vertical starting point y of the pixel at described image
1* h*h
in/ H, the display screen obtaining described monitor place shows the vertical starting point Y of the pixel of described image
start+ y
1* h*h
in/ H.
According to said method, calculate every platform display screen in Fig. 3 and show the horizontal starting point of the pixel of described image and vertical starting point, result of calculation is as follows:
Num1:(X
start+x
1*w*w
in/W,Y
start+y
1*h*h
in/H);
Num2:(X
start+x
2*w*w
in/W,Y
start+y
2*h*h
in/H);
Num3:(X
start+x
3*w*w
in/W,Y
start+y
3*h*h
in/H);
Num4:(X
start+x
4*w*w
in/W,Y
start+y
4*h*h
in/H);
----------------------------------
Numn:(X
start+x
n*w*w
in/W,Y
start+y
n*h*h
in/H);
Step 404, described monitor, according to the horizontal starting point of described pixel and vertical starting point, amplifies the described image of display.
Concrete, can calculate after described image amplifies in described monitor according to closing on most value-based algorithm (Nearest NeighborAlgorithm), described monitor the value of each pixel on a display screen.
As formula, O (i, j)=F ((2 × w
in× i+w
in)/(2 × nw
out), (2 × h
in× j+h
in)/(2 × nh
out))
In described formula, O (i, j) is after described Nonlinear magnify, described monitor screen the value of each pixel on a display screen; F is the function closing on value-based algorithm; w
outit is the physical resolution of the horizontal direction of described monitor; h
outthe physical resolution of the vertical direction of described monitor.After supposing to calculate described Nonlinear magnify, at the pixel value of (1,1) of described monitor screen place display screen.W
in=1920, w
out=1920, h
out=1920, n=3, then according to (2 × w
in× i+w
in)/(2 × nw
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, in like manner, (2 × h
in× j+h
in)/(2 × nh
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, round up, can obtain, equal the pixel value of (1,1) of image at the pixel value of display screen (1,1).
The embodiment of the present invention provides a kind of implementation method of abnormity splicing, described method obtains the order of host computer transmission by monitor, calculate the horizontal starting point of the pixel of described monitor display image and vertical starting point according to described order, and amplify the described image of display.Thus realize by determining the position belonging to monitor, cutting is carried out to video, thus realizes the appearance of abnormity, if the putting position variation of monitor, only need send order to monitor according to new putting position.
Embodiment three
With reference to the implementation method flow chart that figure 5, Fig. 5 is a kind of abnormity splicing that the embodiment of the present invention three provides.Described method comprises the steps:
Step 501, the order that monitor is sent by communication protocol reception host computer;
Concrete, as shown in Figure 2, host computer sends a command to the monitor of display screen by communication protocol, informs the position belonging to every platform monitor.The form sending order as: 68 × 1 × 2 × 3 × 4, × 1 represents No. ID, and × 2 represent the pixel of horizontal directions difference or horizontal starting point, and × 3 represent the pixel of vertical direction difference or vertical starting point, × 4 quantity representing all monitors.
If the matrix major function in Fig. 2 is that a signal is divided into multiple signal, thus every platform monitor is made to receive identical signal.
Display screen in Fig. 2 is used for doing terminal demonstration, and the monitor in every platform display screen is contacted by serial ports, and namely every platform monitor is after receiving order, order can be issued to leave from office monitor again, ensure that every platform monitor can receive orders.
After every platform monitor receives orders, judge in described order No. ID whether number identical with self ID, if so, then continue to perform following steps, if not, then do not perform.
Step 502, described monitor, according in described order No. ID, judges whether with No. ID of described monitor consistent; If so, then according to the pixel that the pixel that the described monitor horizontal direction of described order acquisition differs and vertical direction differ;
As shown in Figure 3, suppose that abnormity splicing is made up of n display screen, the physical resolution of every platform monitor is w*h, and total physical resolution of horizontal direction is W, and total physical resolution of vertical direction is H, and the resolution of input picture is w
in* h
in, the starting point (X of input picture
star, Y
start), suppose that the horizontal starting point obtaining every platform monitor is (x, y) with vertical starting point.If first piece of horizontal starting point of display screen is (x with vertical starting point
1, y
1), the pixel that the pixel that first piece of display screen horizontal direction differs and vertical direction differ is (x
1* w, y
1* h).
As shown in Figure 2, the form that host computer sends order can be 68 × 1 × 2 × 3 × 4, and in × 1, No. ID is 1, × 2 is x
1* w, × 3 is y
1* h, × 4 is n.
Step 503, according to the pixel that the pixel that described monitor horizontal direction differs and vertical direction differ, calculates the horizontal starting point of the pixel of described monitor display image and vertical starting point;
The pixel that described pixel according to monitor horizontal direction differs and vertical direction differ, calculates the horizontal starting point of the pixel of described monitor display image and vertical starting point, comprising:
According to the pixel that monitor horizontal direction differs, calculate the horizontal starting point of the pixel of described monitor display image;
According to the pixel that monitor vertical direction differs, calculate the vertical starting point of the pixel of described monitor display image.
Concrete, the described pixel according to monitor horizontal direction differs, the horizontal starting point calculating the pixel of described monitor display image comprises:
The pixel that described monitor horizontal direction differs, is equal to total physical resolution of described monitor in horizontal direction;
In this step, the pixel that described monitor horizontal direction differs is x
1* w, is equal to total physical resolution x of described monitor in horizontal direction
1* w.
According to total physical resolution of monitor described in described horizontal direction, and total physical resolution that in horizontal direction, the total physical resolution of all monitors obtains described monitor in horizontal direction accounts for the probability of total physical resolution of all monitors in horizontal direction;
In this step, by total physical resolution x of monitor described in horizontal direction
1* w, divided by total physical resolution W of monitors all in horizontal direction, obtains probability x
1* w/W.
In the horizontal starting point of the pixel of described image when the display screen obtaining described monitor place according to the resolution of the horizontal direction of described probability and described image shows described image;
In this step, by probability x
1* w/W, is multiplied by the resolution w of the horizontal direction of input picture
in, obtain the horizontal starting point x of the pixel at described image
1* w*w
in/ W.
According to the horizontal starting point of the horizontal starting point of the pixel at described image and the pixel of described image, the display screen obtaining described monitor place shows the horizontal starting point of the pixel of described image.
In this step, by the starting point X of the horizontal direction of input picture
startadd the horizontal starting point x of the pixel at described image
1* w*w
in/ W, the display screen obtaining described monitor place shows the horizontal starting point X of the pixel of described image
start+ x
1* w*w
in/ W.
Concrete, the described pixel according to monitor vertical direction differs, the vertical starting point calculating the pixel of described monitor display image comprises:
The pixel that described monitor vertical direction differs is equal to total physical resolution of described monitor in vertical direction;
In this step, the pixel that described monitor vertical direction differs is y
1* h, is equal to total physical resolution y of described monitor in vertical direction
1* h.
According to total physical resolution of monitor described in described vertical direction, and total physical resolution that in vertical direction, the total physical resolution of all monitors obtains described monitor in vertical direction accounts for the probability of total physical resolution of all monitors in vertical direction;
In this step, by total physical resolution y of monitor described in vertical direction
1* h, divided by total physical resolution H of monitors all in vertical direction, obtains probability y
1* h/H.
In the vertical starting point of the pixel of described image when the display screen obtaining described monitor place according to described probability and the resolution of the vertical direction of described image shows described image;
In this step, by probability y
1* h/H, is multiplied by the resolution h of the vertical direction of input picture
in, obtain the vertical starting point y of the pixel at described image
1* h*h
in/ H.
According to the vertical starting point of the vertical starting point of the pixel at described image with the pixel of described image, the display screen obtaining described monitor place shows the vertical starting point of the pixel of described image.
In this step, by the starting point Y of the vertical direction of input picture
startadd the vertical starting point y of the pixel at described image
1* h*h
in/ H, the display screen obtaining described monitor place shows the vertical starting point Y of the pixel of described image
start+ y
1* h*h
in/ H.
According to said method, calculate every platform display screen in Fig. 3 and show the horizontal starting point of the pixel of described image and vertical starting point, result of calculation is as follows:
Num1:(X
start+x
1*w*w
in/W,Y
start+y
1*h*h
in/H);
Num2:(X
start+x
2*w*w
in/W,Y
start+y
2*h*h
in/H);
Num3:(X
start+x
3*w*w
in/W,Y
start+y
3*h*h
in/H);
Num4:(X
start+x
4*w*w
in/W,Y
start+y
4*h*h
in/H);
------------------------------
Numn:(X
start+x
n*w*w
in/W,Y
start+y
n*h*h
in/H);
Step 504, described monitor, according to the horizontal starting point of described pixel and vertical starting point, amplifies the described image of display.
Concrete, can calculate after described image amplifies in described monitor according to closing on most value-based algorithm (Nearest NeighborAlgorithm), described monitor the value of each pixel on a display screen.
As formula, O (i, j)=F ((2 × w
in× i+w
in)/(2 × nw
out), (2 × h
in× j+h
in)/(2 × nh
out))
In described formula, O (i, j) is after described Nonlinear magnify, described monitor screen the value of each pixel on a display screen; F is the function closing on value-based algorithm; w
outit is the physical resolution of the horizontal direction of described monitor; h
outthe physical resolution of the vertical direction of described monitor.After supposing to calculate described Nonlinear magnify, at the pixel value of (1,1) of described monitor screen place display screen.W
in=1920, w
out=1920, h
out=1920, n=3, then according to (2 × w
in× i+w
in)/(2 × nw
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, in like manner, (2 × h
in× j+h
in)/(2 × nh
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, round up, can obtain, equal the pixel value of (1,1) of image at the pixel value of display screen (1,1).
The embodiment of the present invention provides a kind of implementation method of abnormity splicing, described method obtains the order of host computer transmission by monitor, calculate the horizontal starting point of the pixel of described monitor display image and vertical starting point according to described order, and amplify the described image of display.Thus realize by determining the position belonging to monitor, cutting is carried out to video, thus realizes the appearance of abnormity, if the putting position variation of monitor, only need send order to monitor according to new putting position.
Embodiment four
It is the structure drawing of device of the equipment that realizes of a kind of abnormity splicing that the embodiment of the present invention four provides with reference to figure 6, Fig. 6.Described device comprises as lower unit:
Receiving element 601, for the order that monitor is sent by communication protocol reception host computer;
Concrete, as shown in Figure 2, host computer sends a command to the monitor of display screen by communication protocol, informs the position belonging to every platform monitor.The form sending order as: 68 × 1 × 2 × 3 × 4, × 1 represents No. ID, and × 2 represent the pixel of horizontal directions difference or horizontal starting point, and × 3 represent the pixel of vertical direction difference or vertical starting point, × 4 quantity representing all monitors.
If the matrix major function in Fig. 2 is that a signal is divided into multiple signal, thus every platform monitor is made to receive identical signal.
Display screen in Fig. 2 is used for doing terminal demonstration, and the monitor in every platform display screen is contacted by serial ports, and namely every platform monitor is after receiving order, order can be issued to leave from office monitor again, ensure that every platform monitor can receive orders.
After every platform monitor receives orders, judge in described order No. ID whether number identical with self ID, if so, then continue to perform following steps, if not, then do not perform.
Judging unit 602, for described monitor according in described order No. ID, judges whether with No. ID of described monitor consistent; If so, then acquiring unit 603 is performed;
Described acquiring unit 603, for if so, then obtaining the horizontal starting point of described monitor and vertical starting point according to described order, or obtains the pixel that pixel and vertical direction that described monitor horizontal direction differs differ;
Described acquiring unit 603 comprises the first acquiring unit 701 and second acquisition unit 702, described first acquiring unit 702 specifically for:
The horizontal starting point of described monitor and vertical starting point is obtained according to described order;
Described second acquisition unit 702 specifically for:
The pixel that the pixel and vertical direction that described monitor horizontal direction differs differs is obtained according to described order.
As shown in Figure 3, suppose that abnormity splicing is made up of n display screen, the physical resolution of every platform monitor is w*h, and total physical resolution of horizontal direction is W, and total physical resolution of vertical direction is H, and the resolution of input picture is w
in* h
in, the starting point (X of input picture
star, Y
start), suppose that the horizontal starting point obtaining every platform monitor is (x, y) with vertical starting point.If first piece of horizontal starting point of display screen is (x with vertical starting point
1, y
1), the pixel that the pixel that first piece of display screen horizontal direction differs and vertical direction differ is (x
1* w, y
1* h).
As shown in Figure 2, the form that host computer sends order can be 68 × 1 × 2 × 3 × 4, and in × 1, No. ID is 1, × 2 is x
1, × 3 is y
1, × 4 is n;
Or the form that host computer sends order can be 68 × 1 × 2 × 3 × 4, and in × 1, No. ID is 1, × 2 is x
1* w, × 3 is y
1* h, × 4 is n.
Computing unit 604, for according to the horizontal starting point of described monitor and vertical starting point, or the pixel that the pixel that monitor horizontal direction differs and vertical direction differ, calculates the horizontal starting point of the pixel of described monitor display image and vertical starting point;
Described computing unit 604 comprises the first computing unit 801 and the 4th computing unit 802;
Described first computing unit 801, for calculating the horizontal starting point of the pixel of described monitor display image and vertical starting point according to the horizontal starting point in described order and vertical starting point;
Described first computing unit 801 comprises the second computing unit 803 and the 3rd computing unit 804,
Described second computing unit 803, for described monitor according to the horizontal starting point in described order, calculates the horizontal starting point of the pixel of the display screen display image at described monitor place;
Described 3rd computing unit 804, for described monitor according to the vertical starting point in described order, calculates the vertical starting point of the pixel of the display screen display image at described monitor place.
Concrete, described second computing unit 803, comprising:
Described monitor, according to the physical resolution of the horizontal direction of the horizontal starting point in described order and described monitor, obtains total physical resolution of described monitor in horizontal direction;
In this unit, by the horizontal starting point x in order
1be multiplied by the physical resolution w in the horizontal direction of every platform monitor, obtain total physical resolution x of described monitor in horizontal direction
1* w.
According to total physical resolution of monitor described in described horizontal direction, and total physical resolution that in horizontal direction, the total physical resolution of all monitors obtains described monitor in horizontal direction accounts for the probability of total physical resolution of all monitors in horizontal direction;
In this unit, by total physical resolution x of monitor described in horizontal direction
1* w, divided by total physical resolution W of monitors all in horizontal direction, obtains probability x
1* w/W.
In the horizontal starting point of the pixel of described image when the display screen obtaining described monitor place according to the resolution of the horizontal direction of described probability and described image shows described image;
In this unit, by probability x
1* w/W, is multiplied by the resolution w of the horizontal direction of input picture
in, obtain the horizontal starting point x of the pixel at described image
1* w*w
in/ W.
According to the horizontal starting point of the horizontal starting point of the pixel at described image and the pixel of described image, the display screen obtaining described monitor place shows the horizontal starting point of the pixel of described image.
In this unit, by the starting point X of the horizontal direction of input picture
startadd the horizontal starting point x of the pixel at described image
1* w*w
in/ W, the display screen obtaining described monitor place shows the horizontal starting point X of the pixel of described image
start+ x
1* w*w
in/ W.
Concrete, described 3rd computing unit 804, comprising:
Described monitor, according to the physical resolution of the vertical direction of the vertical starting point in described order and described monitor, obtains total physical resolution of described monitor in vertical direction;
In this unit, by the vertical starting point y in order
1be multiplied by the physical resolution h in the vertical direction of every platform monitor, obtain total physical resolution y of described monitor in vertical direction
1* h.
According to total physical resolution of monitor described in described vertical direction, and total physical resolution that in vertical direction, the total physical resolution of all monitors obtains described monitor in vertical direction accounts for the probability of total physical resolution of all monitors in vertical direction;
In this unit, by total physical resolution y of monitor described in vertical direction
1* h, divided by total physical resolution H of monitors all in vertical direction, obtains probability y
1* h/H.
In the vertical starting point of the pixel of described image when the display screen obtaining described monitor place according to described probability and the resolution of the vertical direction of described image shows described image;
In this unit, by probability y
1* h/H, is multiplied by the resolution h of the vertical direction of input picture
in, obtain the vertical starting point y of the pixel at described image
1* h*h
in/ H.
According to the vertical starting point of the vertical starting point of the pixel at described image with the pixel of described image, the display screen obtaining described monitor place shows the vertical starting point of the pixel of described image.
In this unit, by the starting point Y of the vertical direction of input picture
startadd the vertical starting point y of the pixel at described image
1* h*h
in/ H, the display screen obtaining described monitor place shows the vertical starting point Y of the pixel of described image
start+ y
1* h*h
in/ H.
According to said units, calculate every platform display screen in Fig. 3 and show the horizontal starting point of the pixel of described image and vertical starting point, result of calculation is as follows:
Num1:(X
start+x
1*w*w
in/W,Y
start+y
1*h*h
in/H);
Num2:(X
start+x
2*w*w
in/W,Y
start+y
2*h*h
in/H);
Num3:(X
start+x
3*w*w
in/W,Y
start+y
3*h*h
in/H);
Num4:(X
start+x
4*w*w
in/W,Y
start+y
4*h*h
in/H);
------------------------------
Numn:(X
start+x
n*w*w
in/W,Y
start+y
n*h*h
in/H);
Can be preferred, described 4th computing unit 802, comprises the 5th computing unit 805 and the 6th computing unit 806:
Described 5th computing unit 805, for according to the pixel that monitor horizontal direction differs, calculates the horizontal starting point of the pixel of described monitor display image;
Described 6th computing unit 806, for according to the pixel that monitor vertical direction differs, calculates the vertical starting point of the pixel of described monitor display image.
Concrete, described 5th computing unit 805, comprising:
The pixel that described monitor horizontal direction differs, is equal to total physical resolution of described monitor in horizontal direction;
In this unit, the pixel that described monitor horizontal direction differs is x
1* w, is equal to total physical resolution x of described monitor in horizontal direction
1* w.
According to total physical resolution of monitor described in described horizontal direction, and total physical resolution that in horizontal direction, the total physical resolution of all monitors obtains described monitor in horizontal direction accounts for the probability of total physical resolution of all monitors in horizontal direction;
In this unit, by total physical resolution x of monitor described in horizontal direction
1* w, divided by total physical resolution W of monitors all in horizontal direction, obtains probability x
1* w/W.
In the horizontal starting point of the pixel of described image when the display screen obtaining described monitor place according to the resolution of the horizontal direction of described probability and described image shows described image;
In this unit, by probability x
1* w/W, is multiplied by the resolution w of the horizontal direction of input picture
in, obtain the horizontal starting point x of the pixel at described image
1* w*w
in/ W.
According to the horizontal starting point of the horizontal starting point of the pixel at described image and the pixel of described image, the display screen obtaining described monitor place shows the horizontal starting point of the pixel of described image.
In this unit, by the starting point X of the horizontal direction of input picture
startadd the horizontal starting point x of the pixel at described image
1* w*w
in/ W, the display screen obtaining described monitor place shows the horizontal starting point X of the pixel of described image
start+ x
1* w*w
in/ W.
Concrete, described 6th computing unit 806, comprising:
The pixel that described monitor vertical direction differs is equal to total physical resolution of described monitor in vertical direction;
In this unit, the pixel that described monitor vertical direction differs is y
1* h, is equal to total physical resolution y of described monitor in vertical direction
1* h.
According to total physical resolution of monitor described in described vertical direction, and total physical resolution that in vertical direction, the total physical resolution of all monitors obtains described monitor in vertical direction accounts for the probability of total physical resolution of all monitors in vertical direction;
In this unit, by total physical resolution y of monitor described in vertical direction
1* h, divided by total physical resolution H of monitors all in vertical direction, obtains probability y
1* h/H.
In the vertical starting point of the pixel of described image when the display screen obtaining described monitor place according to described probability and the resolution of the vertical direction of described image shows described image;
In this unit, by probability y
1* h/H, is multiplied by the resolution h of the vertical direction of input picture
in, obtain the vertical starting point y of the pixel at described image
1* h*h
in/ H.
According to the vertical starting point of the vertical starting point of the pixel at described image with the pixel of described image, the display screen obtaining described monitor place shows the vertical starting point of the pixel of described image.
In this unit, by the starting point Y of the vertical direction of input picture
startadd the vertical starting point y of the pixel at described image
1* h*h
in/ H, the display screen obtaining described monitor place shows the vertical starting point Y of the pixel of described image
start+ y
1* h*h
in/ H.
According to said units, calculate every platform display screen in Fig. 3 and show the horizontal starting point of the pixel of described image and vertical starting point, result of calculation is as follows:
Num1:(X
start+x
1*w*w
in/W,Y
start+y
1*h*h
in/H);
Num2:(X
start+x
2*w*w
in/W,Y
start+y
2*h*h
in/H);
Num3:(X
start+x
3*w*w
in/W,Y
start+y
3*h*h
in/H);
Num4:(X
start+x
4*w*w
in/W,Y
start+y
4*h*h
in/H);
----------------------------------
Numn:(X
start+x
n*w*w
in/W,Y
start+y
n*h*h
in/H);
Amplify display unit 605, for described monitor according to the horizontal starting point of described pixel and vertical starting point, amplify the described image of display.
Concrete, can calculate after described image amplifies in described monitor according to closing on most value-based algorithm (Nearest NeighborAlgorithm), described monitor the value of each pixel on a display screen.
As formula, O (i, j)=F ((2 × w
in× i+w
in)/(2 × nw
out), (2 × h
in× j+h
in)/(2 × nh
out))
In described formula, O (i, j) is after described Nonlinear magnify, described monitor screen the value of each pixel on a display screen; F is the function closing on value-based algorithm; w
outit is the physical resolution of the horizontal direction of described monitor; h
outthe physical resolution of the vertical direction of described monitor.After supposing to calculate described Nonlinear magnify, at the pixel value of (1,1) of described monitor screen place display screen.W
in=1920, w
out=1920, h
out=1920, n=3, then according to (2 × w
in× i+w
in)/(2 × nw
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, in like manner, (2 × h
in× j+h
in)/(2 × nh
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, round up, can obtain, equal the pixel value of (1,1) of image at the pixel value of display screen (1,1).
What the embodiment of the present invention provided a kind of abnormity to splice realizes equipment, described equipment obtains the order of host computer transmission by monitor, calculate the horizontal starting point of the pixel of described monitor display image and vertical starting point according to described order, and amplify the described image of display.Thus realize by determining the position belonging to monitor, cutting is carried out to video, thus realizes the appearance of abnormity, if the putting position variation of monitor, only need send order to monitor according to new putting position.
Embodiment five
It is the structure drawing of device of the equipment that realizes of a kind of abnormity splicing that the embodiment of the present invention five provides with reference to figure 9, Fig. 9.Described equipment comprises as lower unit:
Receiving element 601, for the order that monitor is sent by communication protocol reception host computer;
Concrete, as shown in Figure 2, host computer sends a command to the monitor of display screen by communication protocol, informs the position belonging to every platform monitor.The form sending order as: 68 × 1 × 2 × 3 × 4, × 1 represents No. ID, and × 2 represent the pixel of horizontal directions difference or horizontal starting point, and × 3 represent the pixel of vertical direction difference or vertical starting point, × 4 quantity representing all monitors.
If the matrix major function in Fig. 2 is that a signal is divided into multiple signal, thus every platform monitor is made to receive identical signal.
Display screen in Fig. 2 is used for doing terminal demonstration, and the monitor in every platform display screen is contacted by serial ports, and namely every platform monitor is after receiving order, order can be issued to leave from office monitor again, ensure that every platform monitor can receive orders.
After every platform monitor receives orders, judge in described order No. ID whether number identical with self ID, if so, then continue to perform following steps, if not, then do not perform.
Judging unit 602, for described monitor according in described order No. ID, judges whether with No. ID of described monitor consistent; If so, the first acquiring unit 701 is then performed;
Described first acquiring unit 701 specifically for:
The horizontal starting point of described monitor and vertical starting point is obtained according to described order;
As shown in Figure 3, suppose that abnormity splicing is made up of n display screen, the physical resolution of every platform monitor is w*h, and total physical resolution of horizontal direction is W, and total physical resolution of vertical direction is H, and the resolution of input picture is w
in* h
in, the starting point (X of input picture
star, Y
start), suppose that the horizontal starting point obtaining every platform monitor is (x, y) with vertical starting point.If first piece of horizontal starting point of display screen is (x with vertical starting point
1, y
1), the pixel that the pixel that first piece of display screen horizontal direction differs and vertical direction differ is (x
1* w, y
1* h).
As shown in Figure 2, the form that host computer sends order can be 68 × 1 × 2 × 3 × 4, and in × 1, No. ID is 1, × 2 is x
1, × 3 is y
1, × 4 is n.
Described first computing unit 801, for calculating the horizontal starting point of the pixel of described monitor display image and vertical starting point according to the horizontal starting point in described order and vertical starting point;
Described first computing unit 801 comprises the second computing unit 803 and the 3rd computing unit 804,
Described second computing unit 803, for described monitor according to the horizontal starting point in described order, calculates the horizontal starting point of the pixel of the display screen display image at described monitor place;
Described 3rd computing unit 804, for described monitor according to the vertical starting point in described order, calculates the vertical starting point of the pixel of the display screen display image at described monitor place.
Concrete, described second computing unit 803, comprising:
Described monitor, according to the physical resolution of the horizontal direction of the horizontal starting point in described order and described monitor, obtains total physical resolution of described monitor in horizontal direction;
In this unit, by the horizontal starting point x in order
1be multiplied by the physical resolution w in the horizontal direction of every platform monitor, obtain total physical resolution x of described monitor in horizontal direction
1* w.
According to total physical resolution of monitor described in described horizontal direction, and total physical resolution that in horizontal direction, the total physical resolution of all monitors obtains described monitor in horizontal direction accounts for the probability of total physical resolution of all monitors in horizontal direction;
In this unit, by total physical resolution x of monitor described in horizontal direction
1* w, divided by total physical resolution W of monitors all in horizontal direction, obtains probability x
1* w/W.
In the horizontal starting point of the pixel of described image when the display screen obtaining described monitor place according to the resolution of the horizontal direction of described probability and described image shows described image;
In this unit, by probability x
1* w/W, is multiplied by the resolution w of the horizontal direction of input picture
in, obtain the horizontal starting point x of the pixel at described image
1* w*w
in/ W.
According to the horizontal starting point of the horizontal starting point of the pixel at described image and the pixel of described image, the display screen obtaining described monitor place shows the horizontal starting point of the pixel of described image.
In this unit, by the starting point X of the horizontal direction of input picture
startadd the horizontal starting point x of the pixel at described image
1* w*w
in/ W, the display screen obtaining described monitor place shows the horizontal starting point X of the pixel of described image
start+ x
1* w*w
in/ W.
Concrete, described 3rd computing unit 804, comprising:
Described monitor, according to the physical resolution of the vertical direction of the vertical starting point in described order and described monitor, obtains total physical resolution of described monitor in vertical direction;
In this unit, by the vertical starting point y in order
1be multiplied by the physical resolution h in the vertical direction of every platform monitor, obtain total physical resolution y of described monitor in vertical direction
1* h.
According to total physical resolution of monitor described in described vertical direction, and total physical resolution that in vertical direction, the total physical resolution of all monitors obtains described monitor in vertical direction accounts for the probability of total physical resolution of all monitors in vertical direction;
In this unit, by total physical resolution y of monitor described in vertical direction
1* h, divided by total physical resolution H of monitors all in vertical direction, obtains probability y
1* h/H.
In the vertical starting point of the pixel of described image when the display screen obtaining described monitor place according to described probability and the resolution of the vertical direction of described image shows described image;
In this unit, by probability y
1* h/H, is multiplied by the resolution h of the vertical direction of input picture
in, obtain the vertical starting point y of the pixel at described image
1* h*h
in/ H.
According to the vertical starting point of the vertical starting point of the pixel at described image with the pixel of described image, the display screen obtaining described monitor place shows the vertical starting point of the pixel of described image.
In this unit, by the starting point Y of the vertical direction of input picture
startadd the vertical starting point y of the pixel at described image
1* h*h
in/ H, the display screen obtaining described monitor place shows the vertical starting point Y of the pixel of described image
start+ y
1* h*h
in/ H.
According to said units, calculate every platform display screen in Fig. 3 and show the horizontal starting point of the pixel of described image and vertical starting point, result of calculation is as follows:
Num1:(X
start+x
1*w*w
in/W,Y
start+y
1*h*h
in/H);
Num2:(X
start+x
2*w*w
in/W,Y
start+y
2*h*h
in/H);
Num3:(X
start+x
3*w*w
in/W,Y
start+y
3*h*h
in/H);
Num4:(X
start+x
4*w*w
in/W,Y
start+y
4*h*h
in/H);
--------------------------------
Numn:(X
start+x
n*w*w
in/W,Y
start+
xn*h*h
in/H);
Amplify display unit 605, for described monitor according to the horizontal starting point of described pixel and vertical starting point, amplify the described image of display.
Concrete, can calculate after described image amplifies in described monitor according to closing on most value-based algorithm (Nearest NeighborAlgorithm), described monitor the value of each pixel on a display screen.
As formula, O (i, j)=F ((2 × w
in× i+w
in)/(2 × nw
out), (2 × h
in× j+h
in)/(2 × nh
out))
In described formula, O (i, j) is after described Nonlinear magnify, described monitor screen the value of each pixel on a display screen; F is the function closing on value-based algorithm; w
outit is the physical resolution of the horizontal direction of described monitor; h
outthe physical resolution of the vertical direction of described monitor.After supposing to calculate described Nonlinear magnify, at the pixel value of (1,1) of described monitor screen place display screen.W
in=1920, w
out=1920, h
out=1920, n=3, then according to (2 × w
in× i+w
in)/(2 × nw
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, in like manner, (2 × h
in× j+h
in)/(2 × nh
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, round up, can obtain, equal the pixel value of (1,1) of image at the pixel value of display screen (1,1).
What the embodiment of the present invention provided a kind of abnormity to splice realizes equipment, described equipment obtains the order of host computer transmission by monitor, calculate the horizontal starting point of the pixel of described monitor display image and vertical starting point according to described order, and amplify the described image of display.Thus realize by determining the position belonging to monitor, cutting is carried out to video, thus realizes the appearance of abnormity, if the putting position variation of monitor, only need send order to monitor according to new putting position.
Embodiment six
It is the structure drawing of device of the equipment that realizes of a kind of abnormity splicing that the embodiment of the present invention six provides with reference to Figure 10, Figure 10.Described device comprises as lower unit:
Receiving element 601, for the order that monitor is sent by communication protocol reception host computer;
Concrete, as shown in Figure 2, host computer sends a command to the monitor of display screen by communication protocol, informs the position belonging to every platform monitor.The form sending order as: 68 × 1 × 2 × 3 × 4, × 1 represents No. ID, and × 2 represent the pixel of horizontal directions difference or horizontal starting point, and × 3 represent the pixel of vertical direction difference or vertical starting point, × 4 quantity representing all monitors.
If the matrix major function in Fig. 2 is that a signal is divided into multiple signal, thus every platform monitor is made to receive identical signal.
Display screen in Fig. 2 is used for doing terminal demonstration, and the monitor in every platform display screen is contacted by serial ports, and namely every platform monitor is after receiving order, order can be issued to leave from office monitor again, ensure that every platform monitor can receive orders.
After every platform monitor receives orders, judge in described order No. ID whether number identical with self ID, if so, then continue to perform following steps, if not, then do not perform.
Judging unit 602, for described monitor according in described order No. ID, judges whether with No. ID of described monitor consistent; If so, then second acquisition unit 702 is performed;
Described second acquisition unit 702 specifically for:
The pixel that the pixel and vertical direction that described monitor horizontal direction differs differs is obtained according to described order.
As shown in Figure 3, suppose that abnormity splicing is made up of n display screen, the physical resolution of every platform monitor is w*h, and total physical resolution of horizontal direction is W, and total physical resolution of vertical direction is H, and the resolution of input picture is w
in* h
in, the starting point (X of input picture
star, Y
start), suppose that the horizontal starting point obtaining every platform monitor is (x, y) with vertical starting point.If first piece of horizontal starting point of display screen is (x with vertical starting point
1, y
1), the pixel that the pixel that first piece of display screen horizontal direction differs and vertical direction differ is (x
1* w, y
1* h).
As shown in Figure 2, the form that host computer sends order can be 68 × 1 × 2 × 3 × 4, and in × 1, No. ID is 1, × 2 is x
1* w, × 3 is y
1* h, × 4 is n.
Described 4th computing unit 802, comprises the 5th computing unit 805 and the 6th computing unit 806:
Described 5th computing unit 805, for according to the pixel that monitor horizontal direction differs, calculates the horizontal starting point of the pixel of described monitor display image;
Described 6th computing unit 806, for according to the pixel that monitor vertical direction differs, calculates the vertical starting point of the pixel of described monitor display image.
Concrete, described 5th computing unit 805, comprising:
The pixel that described monitor horizontal direction differs, is equal to total physical resolution of described monitor in horizontal direction;
In this unit, the pixel that described monitor horizontal direction differs is x
1* w, is equal to total physical resolution x of described monitor in horizontal direction
1* w.
According to total physical resolution of monitor described in described horizontal direction, and total physical resolution that in horizontal direction, the total physical resolution of all monitors obtains described monitor in horizontal direction accounts for the probability of total physical resolution of all monitors in horizontal direction;
In this unit, by total physical resolution x of monitor described in horizontal direction
1* w, divided by total physical resolution W of monitors all in horizontal direction, obtains probability x
1* w/W.
In the horizontal starting point of the pixel of described image when the display screen obtaining described monitor place according to the resolution of the horizontal direction of described probability and described image shows described image;
In this unit, by probability x
1* w/W, is multiplied by the resolution w of the horizontal direction of input picture
in, obtain the horizontal starting point x of the pixel at described image
1* w*w
in/ W.
According to the horizontal starting point of the horizontal starting point of the pixel at described image and the pixel of described image, the display screen obtaining described monitor place shows the horizontal starting point of the pixel of described image.
In this unit, by the starting point X of the horizontal direction of input picture
startadd the horizontal starting point x of the pixel at described image
1* w*w
in/ W, the display screen obtaining described monitor place shows the horizontal starting point X of the pixel of described image
start+ x
1* w*w
in/ W.
Concrete, described 6th computing unit 806, comprising:
The pixel that described monitor vertical direction differs is equal to total physical resolution of described monitor in vertical direction;
In this unit, the pixel that described monitor vertical direction differs is y
1* h, is equal to total physical resolution y of described monitor in vertical direction
1* h.
According to total physical resolution of monitor described in described vertical direction, and total physical resolution that in vertical direction, the total physical resolution of all monitors obtains described monitor in vertical direction accounts for the probability of total physical resolution of all monitors in vertical direction;
In this unit, by total physical resolution y of monitor described in vertical direction
1* h, divided by total physical resolution H of monitors all in vertical direction, obtains probability y
1* h/H.
In the vertical starting point of the pixel of described image when the display screen obtaining described monitor place according to described probability and the resolution of the vertical direction of described image shows described image;
In this unit, by probability y
1* h/H, is multiplied by the resolution h of the vertical direction of input picture
in, obtain the vertical starting point y of the pixel at described image
1* h*h
in/ H.
According to the vertical starting point of the vertical starting point of the pixel at described image with the pixel of described image, the display screen obtaining described monitor place shows the vertical starting point of the pixel of described image.
In this unit, by the starting point Y of the vertical direction of input picture
startadd the vertical starting point y of the pixel at described image
1* h*h
in/ H, the display screen obtaining described monitor place shows the vertical starting point Y of the pixel of described image
start+ y
1* h*h
in/ H.
According to said units, calculate every platform display screen in Fig. 3 and show the horizontal starting point of the pixel of described image and vertical starting point, result of calculation is as follows:
Num1:(X
start+x
1*w*w
in/W,Y
start+y
1*h*h
in/H);
Num2:(X
start+x
2*w*w
in/W,Y
start+y
2*h*h
in/H);
Num3:(X
start+x
3*w*w
in/W,Y
start+y
3*h*h
in/H);
Num4:(X
start+x
4*w*w
in/W,Y
start+y
4*h*h
in/H);
------------------------------
Numn:(X
start+x
n*w*w
in/W,Y
start+y
n*h*h
in/H);
Amplify display unit 605, for described monitor according to the horizontal starting point of described pixel and vertical starting point, amplify the described image of display.
Concrete, can calculate after described image amplifies in described monitor according to closing on most value-based algorithm (Nearest NeighborAlgorithm), described monitor the value of each pixel on a display screen.
As formula, O (i, j)=F ((2 × w
in× i+w
in)/(2 × nw
out), (2 × h
in× j+h
in)/(2 × nh
out))
In described formula, O (i, j) is after described Nonlinear magnify, described monitor screen the value of each pixel on a display screen; F is the function closing on value-based algorithm; w
outit is the physical resolution of the horizontal direction of described monitor; h
outthe physical resolution of the vertical direction of described monitor.After supposing to calculate described Nonlinear magnify, at the pixel value of (1,1) of described monitor screen place display screen.W
in=1920, w
out=1920, h
out=1920, n=3, then according to (2 × w
in× i+w
in)/(2 × nw
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, in like manner, (2 × h
in× j+h
in)/(2 × nh
out)=(2 × 1920 × 1+1920)/(2 × 3 × 1920)=1/2, round up, can obtain, equal the pixel value of (1,1) of image at the pixel value of display screen (1,1).
What the embodiment of the present invention provided a kind of abnormity to splice realizes equipment, described equipment obtains the order of host computer transmission by monitor, calculate the horizontal starting point of the pixel of described monitor display image and vertical starting point according to described order, and amplify the described image of display.Thus realize by determining the position belonging to monitor, cutting is carried out to video, thus realizes the appearance of abnormity, if the putting position variation of monitor, only need send order to monitor according to new putting position.
The foregoing is only the preferred embodiment of the present invention, do not form limiting the scope of the present invention.Any any amendment done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included in application claims and comprise within scope.