CN106028019A - Method for rapidly detecting three-dimensional format of video - Google Patents
Method for rapidly detecting three-dimensional format of video Download PDFInfo
- Publication number
- CN106028019A CN106028019A CN201610375507.4A CN201610375507A CN106028019A CN 106028019 A CN106028019 A CN 106028019A CN 201610375507 A CN201610375507 A CN 201610375507A CN 106028019 A CN106028019 A CN 106028019A
- Authority
- CN
- China
- Prior art keywords
- projection vector
- view
- video
- subregion
- vector
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/10—Processing, recording or transmission of stereoscopic or multi-view image signals
- H04N13/106—Processing image signals
- H04N13/133—Equalising the characteristics of different image components, e.g. their average brightness or colour balance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/10—Processing, recording or transmission of stereoscopic or multi-view image signals
- H04N13/106—Processing image signals
- H04N13/139—Format conversion, e.g. of frame-rate or size
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/004—Diagnosis, testing or measuring for television systems or their details for digital television systems
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
- Medicines Containing Antibodies Or Antigens For Use As Internal Diagnostic Agents (AREA)
Abstract
The invention discloses a method for rapidly detecting a three-dimensional format of a video. According to the characteristics that only horizontal parallax rather than vertical parallax can exist between a left view and a right view, and that features on the aspects of brightness/chromaticity and the like of the left view and the right view need to be kept highly consistent as required during making of three-dimensional video content, format detection is performed by calculation of a distance between projection vectors of different views, and only an addition operation is performed on the calculated amount in a whole calculation process, so that rapid implementation of software and hardware can be realized conveniently/economically. Secondly, only necessary calculation/detection is performed at the start of new programs according to the fact that the same video program is unique in format, so that the method is particularly suitable for systems such as mobile equipment (tablet computers and laptops) with very strict requirements on power consumption and manufacturing cost. Through adoption of the method for rapidly detecting the three-dimensional format of the video, the three-dimensional format of the video can be detected rapidly.
Description
Technical field
The invention belongs to video format detection technique field, relate to a kind of video format detection method, particularly relate to one
Video 3 dimensional format method for quick.
Background technology
Along with the film of three-dimensional (3D) video the starting broadcasting of more and more universal and 3D digital television program in video website, can
With prediction within following a period of time, long-term (and always) is coexisted by 2D content and 3D content.For terminal presentation facility, as
What detects video frequency program form automatically is 2D or 3D, and it is requisite for correctly presenting for content.
In current 3D video, having a big class is by 3D content arrangement 2D frame, in order to existing 2D display system compatibility.
According to 3D subframe array format in 2D frame, this type of 3D video is divided into following several form, and wherein 3D form in left and right is with upper and lower
3D form is the most universal form.
(1) left and right 3D form (SBS): about 3D view is arranged side by side in 2D frame;
(2) upper and lower 3D form (TB): about 3D view arrangements upper and lower in 2D frame;
(3) row intertexture 3D form (LI): about intertexture 3D, the row of view allows left and right view arrangements in 2D frame;
(4) column interleaving 3D form (CI): about intertexture 3D, the row of view allow left and right view arrangements in 2D frame;
(5) grid-staggered 3D form (CB): allow about 3D view arrangements in 2D frame so that grid pattern is staggered;
(6) 3D form (CBS) of grid-side by side: allow about 3D view be arranged side by side in 2D frame with grid pattern;
(7) 2D+ depth format (2D+D): 2D subframe and depth information subframe are arranged side by side in 2D frame.
According to viewing comfortableness requirement, except requiring that the brightness/chroma of left and right view etc. is each when 3 d video content makes
Aspect feature has high consistency, the most only allows to there is horizontal disparity, it is impossible to have vertical parallax;Otherwise can cause to beholder
The biggest discomfort.Meanwhile, according to the convention of existing video program production, the form of each program determines that and uniquely
's.It is 2D video, if 3D content then uses a kind of form above, does not exist and comprise multiple regarding inside a program
Frequently form.
In view of this, nowadays in the urgent need to designing a kind of new video format detection mode, in order to overcome existing detection side
The drawbacks described above that formula exists.
Summary of the invention
The technical problem to be solved is: provides a kind of video 3 dimensional format method for quick, can quickly examine
Survey the 3 dimensional format of video.
For solving above-mentioned technical problem, the present invention adopts the following technical scheme that
A kind of video 3 dimensional format method for quick, described detection method comprises the steps:
Step one, judge whether video is upper and lower 3D format video or left and right 3D format video, including:
S1, new video program start, to the first enumerator, the second counter O reset;
S2, obtain a frame width be N highly for the image P of L, input picture is divided into 4 sub regions, formed upper left,
Lower-left, upper right, bottom right 4 sub regions;Carry out view division by left and right 3D, upper and lower 3D form more simultaneously;Format by left and right 3D
Time, left view is on the left side, and right view is on the right;When formatting by upper and lower 3D, on top, lower view is below for top view;
S3, for YUV mode image, only luminance component Y is calculated, the level of 4 sub regions in calculation procedure S2
Projection vector YhWith vertical projection vector Yv.Respectively obtain the first subregion horizontal projection vectorFirst subregion is vertically thrown
Shadow vectorSecond subregion horizontal projection vectorSecond subregion vertical projection vector3rd subregion level is thrown
Shadow vector3rd subregion vertical projection vector4th subregion horizontal projection vector4th subregion is vertically thrown
Shadow vectorWherein, YhDimension be L/2, YvDimension be N/2.
Second subregion horizontal projection vectorWith vertical projection vectorComputing formula as follows, wherein YijIt it is the i-th row
The Y-component of jth row pixel;
Other 3 regionsCalculating process same, it is only necessary to according to difference
The value amendment span of region i, j.First area is3rd region is
4th region is
For RGB mode image, transfer image to YUV color space from RGB color, according still further to said process to Y
Process;Or directly at rgb space, tri-components of R, G, B are all processed by the process of above-mentioned Y, thus judges lattice
Formula;
S4, relation according to subregion in step S2 Yu left and right view, obtain the horizontal projection vector that left view is corresponding
And vertical projection vectorThe horizontal projection vector of right viewAnd vertical projection vector
Wherein,WithDimension is L,WithDimension is N/2;
The concatenation operation of two vectorial V and T of definition is:
Wherein, the dimension of vector V is n, and the dimension of vector T is m, and the new vector dimension after connection is n+m;
Equally, the horizontal projection vector that top view is corresponding is obtainedAnd vertical projection vectorThe level of lower view is thrown
Shadow vectorAnd vertical projection vector
S5, the distance calculated between left view and right view, top view and the lower each projection vector of viewWith
If S6 left view and right view horizontal projection vector distanceLess than first threshold THh, and projection vector away from
FromLess than Second Threshold THv, then the first Counter Value adds 1;If top view and lower view horizontal projection vector distanceLittle
In first threshold THh, and projection vector distanceLess than Second Threshold THv, then the second Counter Value adds 1;
S7, repetition step S2~S6, until step S6 has been performed m time;
If the value of S8 the first enumerator more than or equal to k*m, k ∈ (0.5,1], then the current video program form detected
For left and right 3D video format;
If the value of the second enumerator more than or equal to k*m, k ∈ (0.5,1], then the current video program form detected is upper
Lower 3D video format;
If the value of S9 two above enumerator is all unsatisfactory for condition, then the current video program detected is not left and right 3D
Video format, is not upper and lower 3D video format;
Step 2, judge that whether video is row intertexture 3D form LI video or column interleaving 3D form CI video or grid-friendship
The 3D form CBS video of wrong 3D form CB video or grid-side by side;Including: with step S2 of step one process, step S3, step
S4 is similar to, and according to the rule of different-format left and right view arrangement, the region carrying out left and right view divides, and obtains the water of left and right view
Flat projection and upright projection;The region, left and right of row intertexture 3D form LI divides and divides according to the parity rows of image pixel, institute
The pixel having odd-numbered line carries out floor projection/upright projection, obtains the horizontal/vertical projection vector of a view;All even numbers
The pixel of row carries out floor projection/upright projection, obtains the horizontal/vertical projection vector of another view;Subsequent processing steps
Then identical with step S5 to the S8 of step one.
If step 3 step one, step 2 are all not detected by 3D format video, then judge the current video joint detected
Mesh is 2D video format.
A kind of video 3 dimensional format method for quick, it is characterised in that described detection method comprises the steps:
Enumerator initializes;
Obtain a two field picture, according to the n kind 3D video format of required detection, image is carried out n kind left and right view and draws
Point;
Calculate each view to divide, around the horizontal projection vector of the pixel component of view and vertical projection vector;
Calculate each view to divide, the horizontal projection vector distance of corresponding left and right view and vertical projection vector away from
From;
Divide for each view, if horizontal projection vector distance and vertical projection vector distance are less than given threshold
Value, then the 3D format counter that the division of this view is corresponding adds 1;
Repeated m time, check which kind of 3D format counter value more than k*m, k ∈ (0.5,1], more than then concluding that form is this 3D
Form;If all Counter Values are all unsatisfactory for, then conclude that form is 2D form.
As a preferred embodiment of the present invention, described 3D form is one of them in following 6 kinds of forms: left and right 3D lattice
The 3D lattice of formula SBS, upper and lower 3D form TB, row intertexture 3D form LI, column interleaving 3D form, grid-staggered 3D form, grid-side by side
Formula.
As a preferred embodiment of the present invention, for the most universal left and right 3D and upper and lower 3D form, described inspection
Survey method specifically includes following steps:
S1, new video program start, to the first enumerator, the second counter O reset;
S2, obtain a frame width be N highly for the image P of L, input picture is divided into 4 sub regions, formed upper left,
Lower-left, upper right, bottom right 4 sub regions;Carry out view division by left and right 3D, upper and lower 3D form more simultaneously;Format by left and right 3D
Time, left view is on the left side, and right view is on the right;When formatting by upper and lower 3D, on top, lower view is below for top view;
S3, for YUV mode image, the luminance component Y of 4 sub regions in step S2 is calculated, calculation procedure S2
In the horizontal projection vector Y of 4 sub regionshWith vertical projection vector Yv;
For RGB mode image, in calculation procedure S2, tri-components of R, G, B of 4 sub regions calculate, and obtain correspondence
Horizontal projection vector Rh、Gh、BhWith vertical projection vector Rv、Gv、Bv;
Above-mentioned each component Y, R, G, B are labeled as X, for component X, respectively obtain the first subregion horizontal projection vectorFirst subregion vertical projection vectorSecond subregion horizontal projection vectorSecond subregion vertical projection vector3rd subregion horizontal projection vector3rd subregion vertical projection vector4th subregion horizontal projection vector4th subregion vertical projection vectorWherein, XhDimension be L/2, XvDimension be N/2;
S4, relation according to subregion in step S2 Yu left and right view, obtain the horizontal projection vector that left view is corresponding
And vertical projection vectorThe horizontal projection vector of right viewAnd vertical projection vectorWherein,WithDimension
For L,WithDimension is N/2;
Equally, the horizontal projection vector that top view is corresponding is obtainedAnd vertical projection vectorThe level of lower view is thrown
Shadow vectorAnd vertical projection vector
S5, the distance calculated between left view and right view, top view and the lower each projection vector of viewWith
If S6 left view and right view horizontal projection vector distanceLess than first threshold THh, and projection vector away from
FromLess than Second Threshold THv, then the first Counter Value adds 1;If top view and lower view horizontal projection vector distanceLittle
In first threshold THh, and projection vector distanceLess than Second Threshold THv, then the second Counter Value adds 1;
S7, repetition step S2~S6, until step S6 has been performed m time;
If the value of S8 the first enumerator is more than or equal to setting value, then the current video program form detected is left and right 3D
Video format;
If the value of the second enumerator is more than or equal to setting value, then the current video program form detected is upper and lower 3D video
Form;
If the value of two above enumerator is all unsatisfactory for condition, then the current video program detected is 2D video format.
As a preferred embodiment of the present invention, in described step S3, the second subregion horizontal projection vectorWith vertical
Projection vectorComputing formula as follows, wherein YijIt it is the Y-component of the i-th row jth row pixel;
Other 3 regionsCalculation be similar to therewith.
As a preferred embodiment of the present invention, in described step S4,
The concatenation operation of definition two vectorial V, T is:
The dimension of V be the dimension of n, T be m, the new vector dimension after connection is n+m.
As a preferred embodiment of the present invention, in described step S5,
The beneficial effects of the present invention is: the video 3 dimensional format method for quick that the present invention proposes, can quickly detect
The 3 dimensional format of video.
The present invention is by a kind of index of design, and this index calculates in horizontal disparity unrelated, the most relevant to vertical parallax, then pin
Left and right view to 3D content, this index has high consistency, and this point has significant difference, Jin Erjian with common 2D video
Measure the 3D/2D form of video.
Can only there is horizontal disparity according to the left and right view required by 3 d video content making in the present invention, do not allow to exist
Vertical parallax, and each side feature such as left and right view brightness/chroma must these features highly consistent, use and calculate difference and regard
Distance between the projection vector of figure carries out format detection, and the amount of calculation of whole process only exists additive operation, the most permissible
Convenient/economic applicable software and hardware quickly realizes.
Secondly, the inventive method make use of the fact that same video frequency program form be'ss unique condition, simply at each new joint
Do when mesh starts necessity calculating/detection, be particularly well-suited to mobile device (panel computer, notebook computer) this kind of to power consumption,
Manufacturing cost requires the harshest system.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that input picture is divided into 4 sub regions.
Fig. 2 is the schematic diagram formatted input picture by left and right 3D.
Fig. 3 is the schematic diagram formatted input picture by upper and lower 3D.
Fig. 4 is the flow chart of video 3 dimensional format method for quick of the present invention.
Detailed description of the invention
Describe the preferred embodiments of the present invention below in conjunction with the accompanying drawings in detail.
Embodiment one
Referring to Fig. 4, present invention is disclosed a kind of video 3 dimensional format method for quick, the index of this method design is
Pixel value in left and right view area in video is the most both horizontally and vertically projected, obtains horizontal projection vector with vertical
Projection vector.Due to the horizontal disparity of left and right view, floor projection is calculated impact little, and it is big that upright projection calculates impact,
Therefore the difference of the horizontal projection vector of left and right view little (in other words apart from close), and the significant difference of vertical projection vector
(or distance is bigger).3D video is set up by this feature, there is not 2D video, such that it is able to distinguish 3D and 2D video
Form.
The process that calculates in detail of horizontal projection vector is as follows, has the RGB mode image P of L row N row pixel to a frame
(if YUV pattern, then only calculate luminance component Y), projects RGB component to horizontal direction respectively, obtains 3
Individual dimension is all the vectorial R of Lh、Gh、Bh.With RhAs a example by, computing formula is as follows, wherein RijIt is that the R of the i-th row jth row pixel divides
Amount.
VectorWithBetween distance definition be DRh, it is calculated as follows.
Equally, component G with B is obtained distance DG of similar horizontal projection vectorhAnd DBh。
Similar with floor projection, obtain image P vertical direction projection vector Rv、Gv、Bv(its dimension is N), and vector
Between distance DRv、DGvAnd DBv。
The concatenation operation defining two vectorial V (dimension is n) and T (dimension is m) is that the new vector dimension after connection is n+
m
As a example by the most universal left and right 3D and upper and lower 3D form, whole format detection process comprises the steps:
[step S1] new video program starts, to the first enumerator, the second counter O reset;
[step S2] obtain a frame width be N highly for the image P of L, input picture is divided into 4 sub regions, is formed
Upper left, lower-left, upper right, bottom right 4 sub regions, as shown in Figure 1;Carry out view division by left and right 3D, upper and lower 3D form more simultaneously;
When formatting by left and right 3D (as shown in Figure 2), left view Figure 11 is on the left side, and right view 12 is on the right;When formatting by upper and lower 3D (as
Shown in Fig. 3), on top, lower view 22 is below for top view 21;
Luminance component Y, for YUV mode image, is calculated by [step S3], the water of 4 sub regions in calculation procedure S2
Flat projection vector YhWith vertical projection vector Yv;Respectively obtain the first subregion horizontal projection vectorFirst subregion is vertical
Projection vectorSecond subregion horizontal projection vectorSecond subregion vertical projection vector3rd subregion level
Projection vector3rd subregion vertical projection vector4th subregion horizontal projection vector4th subregion is vertical
Projection vectorWherein, YhDimension be L/2, YvDimension be N/2;
For RGB mode image, image can be transferred to YUV color space from RGB color, according still further to said process
To Y process.In view of multiply-add operations a large amount of required for color space conversion, it is also possible to directly at rgb space, to R, G, B
Three components are all processed by the process of above-mentioned Y, thus judge form.
For having the RGB mode image of L row N row pixel, in calculation procedure S2 the floor projection of 4 sub regions to
Amount Rh、Gh、BhWith vertical projection vector Rv、Gv、Bv;
Each sub regions horizontal projection vector Rh、Gh、BhComputational methods be: R, G, B component are entered to horizontal direction respectively
Row projection, obtains the horizontal projection vector R that 3 dimensions are all Lh、Gh、Bh;
Wherein, RijIt is the R component of the i-th row jth row pixel, GijIt is the G component of the i-th row jth row pixel, BijIt is i-th
The B component of row jth row pixel;
Each sub regions vertical projection vector Rv、Gv、BvComputational methods be: R, G, B component are entered to vertical direction respectively
Row projection, obtains the horizontal projection vector R that 3 dimensions are all Nv、Gv、Bv;
Wherein, RijIt is the R component of the i-th row jth row pixel, GijIt is the G component of the i-th row jth row pixel, BijIt is i-th
The B component of row jth row pixel;
[step S4], according to the relation of subregion in step S2 Yu left and right view, obtains the floor projection that left view Figure 11 is corresponding
VectorAnd vertical projection vectorThe horizontal projection vector of right view 12And vertical projection vector
Wherein,WithDimension is L,WithDimension is N/2;
The concatenation operation of two vectorial V and T of definition is:
Wherein, the dimension of vector V is n, and the dimension of vector T is m, and the new vector dimension after connection is n+m;
Equally, the horizontal projection vector of top view 21 correspondence is obtainedAnd vertical projection vectorThe water of lower view 22
Flat projection vectorAnd vertical projection vector
[step S5] calculates the distance between left view Figure 11 and right view 12, top view 21 and the lower each projection vector of view 22With
[step S6] if left view Figure 11 and right view 12 horizontal projection vector distanceLess than first threshold THh, and
Projection vector distanceLess than Second Threshold THv, then the first Counter Value adds 1;If top view 21 and lower view 22 level are thrown
Shadow vector distanceLess than first threshold THh, and projection vector distanceLess than Second Threshold THv, then the second Counter Value
Add 1;
[step S7] repeats step S2~S6, until step S6 has been performed m time;
[step S8] if the value of the first enumerator more than or equal to k*m, k ∈ (0.5,1], then the current video program detected
Form is left and right 3D video format;
[step S9] if the value of the second enumerator more than or equal to k*m, k ∈ (0.5,1], then the current video program detected
Form is upper and lower 3D video format.
Can also be according to above-mentioned flow process, it is judged that whether current video program form is other several 3D forms, such as row is handed over
Knit 3D form (LI), column interleaving 3D form (CI), grid-staggered 3D form (CB), 3D form (CBS) of grid-side by side.Detected
Journey can be similar with S2, S3, S4 of said process, according to the rule of different-format left and right view arrangement, carries out left and right view
Region divides, and obtains floor projection and the upright projection of left and right view.Such as going intertexture 3D form (LI), region, left and right divides and presses
Parity rows according to image pixel divides, and the pixel of all odd-numbered lines carries out floor projection/upright projection, obtains a view
Horizontal/vertical projection vector;The pixel of all even number lines carries out floor projection/upright projection, obtains the water of another view
Flat/vertical projection vector.Subsequent processing steps then catches up with that to state S5 to S8 identical.
If be all not detected by 3D format video according to said process, then judge that the current video program detected is 2D video
Form.
Embodiment two
A kind of video 3 dimensional format method for quick, described detection method comprises the steps:
Step one, judge whether video is upper and lower 3D format video or left and right 3D format video, including:
S1, new video program start, to the first enumerator, the second counter O reset;
S2, obtain a frame width be N highly for the image P of L, input picture is divided into 4 sub regions, formed upper left,
Lower-left, upper right, bottom right 4 sub regions;Carry out view division by left and right 3D, upper and lower 3D form more simultaneously;Format by left and right 3D
Time, left view Figure 11 is on the left side, and right view 12 is on the right;When formatting by upper and lower 3D, top view 21 on top, lower view 22 under
Limit;
S3, for YUV mode image, only luminance component Y is calculated, the level of 4 sub regions in calculation procedure S2
Projection vector YhWith vertical projection vector Yv.Respectively obtain the first subregion horizontal projection vectorFirst subregion is vertically thrown
Shadow vectorSecond subregion horizontal projection vectorSecond subregion vertical projection vector3rd subregion level is thrown
Shadow vector3rd subregion vertical projection vector4th subregion horizontal projection vector4th subregion is vertically thrown
Shadow vectorWherein, YhDimension be L/2, YvDimension be N/2.
Second subregion horizontal projection vectorWith vertical projection vectorComputing formula as follows, wherein YijIt it is the i-th row
The Y-component of jth row pixel;
Other 3 regionsCalculating process same, it is only necessary to according to difference
(those skilled in the art can obtain other 3 regions according to description of the invention to the value amendment span of region i, j Do not repeat).First area is3rd region
For4th region is
For RGB mode image, transfer image to YUV color space from RGB color, according still further to said process to Y
Process;Or directly at rgb space, tri-components of R, G, B are all processed by the process of above-mentioned Y, thus judges lattice
Formula;
S4, relation according to subregion in step S2 Yu left and right view, obtain the horizontal projection vector that left view Figure 11 is correspondingAnd vertical projection vectorThe horizontal projection vector of right view 12And vertical projection vector
Wherein,WithDimension is L,WithDimension is N/2;
The concatenation operation of two vectorial V and T of definition is:
Wherein, the dimension of vector V is n, and the dimension of vector T is m, and the new vector dimension after connection is n+m;
Equally, the horizontal projection vector of top view 21 correspondence is obtainedAnd vertical projection vectorThe water of lower view 22
Flat projection vectorAnd vertical projection vector
S5, the distance calculated between left view Figure 11 and right view 12, top view 21 and the lower each projection vector of view 22 With
If S6 left view Figure 11 and right view 12 horizontal projection vector distanceLess than first threshold THh, and project to
Span fromLess than Second Threshold THv, then the first Counter Value adds 1;If top view 21 and lower view 22 horizontal projection vector
DistanceLess than first threshold THh, and projection vector distanceLess than Second Threshold THv, then the second Counter Value adds 1;
S7, repetition step S2~S6, until step S6 has been performed m time;
If the value of S8 the first enumerator more than or equal to k*m, k ∈ (0.5,1], then the current video program form detected
For left and right 3D video format;
If the value of the second enumerator more than or equal to k*m, k ∈ (0.5,1], then the current video program form detected is upper
Lower 3D video format;
If the value of S9 two above enumerator is all unsatisfactory for condition, then the current video program detected is not left and right 3D
Video format, is not upper and lower 3D video format;
Step 2, judge that whether video is row intertexture 3D form LI video or column interleaving 3D form CI video or grid-friendship
The 3D form CBS video of wrong 3D form CB video or grid-side by side;Including: with step S2 of step one process, step S3, step
S4 is similar to, and according to the rule of different-format left and right view arrangement, the region carrying out left and right view divides, and obtains the water of left and right view
Flat projection and upright projection;The region, left and right of row intertexture 3D form LI divides and divides according to the parity rows of image pixel, institute
The pixel having odd-numbered line carries out floor projection/upright projection, obtains the horizontal/vertical projection vector of a view;All even numbers
The pixel of row carries out floor projection/upright projection, obtains the horizontal/vertical projection vector of another view;Subsequent processing steps
Then identical with step S5 to the S8 of step one.
If step 3 step one, step 2 are all not detected by 3D format video, then judge the current video joint detected
Mesh is 2D video format.
Embodiment three
A kind of video 3 dimensional format method for quick, described detection method comprises the steps:
Enumerator initializes;
Obtaining a two field picture, according to the n kind 3D video format of required detection, (described 3D form is in following 6 kinds of forms
One of them: left and right 3D form SBS, upper and lower 3D form TB, row intertexture 3D form LI, column interleaving 3D form, grid-staggered 3D
The 3D form of form, grid-side by side), image is carried out the division of n kind left and right view;
Calculate each view to divide, around the horizontal projection vector of the pixel component of view and vertical projection vector;
Calculate each view to divide, the horizontal projection vector distance of corresponding left and right view and vertical projection vector away from
From;
Divide for each view, if horizontal projection vector distance and vertical projection vector distance are less than given threshold
Value, then the 3D format counter that the division of this view is corresponding adds 1;
Repeated m time, check which kind of 3D format counter value more than k*m, k ∈ (0.5,1], more than then concluding that form is this 3D
Form;If all Counter Values are all unsatisfactory for, then conclude that form is 2D form.
In sum, the video 3 dimensional format method for quick that the present invention proposes, can quickly detect the three-dimensional lattice of video
Formula.The present invention is by a kind of index of design, and this index calculates in horizontal disparity unrelated, the most relevant to vertical parallax, then for 3D
The left and right view of content, this index has high consistency, and this point has significant difference with common 2D video, and then detects
The 3D/2D form of video.
Can only there is horizontal disparity according to the left and right view required by 3 d video content making in the present invention, do not allow to exist
Vertical parallax, and each side feature such as left and right view brightness/chroma must these features highly consistent, use and calculate difference and regard
Distance between the projection vector of figure carries out format detection, and the amount of calculation of whole process only exists additive operation, the most permissible
Convenient/economic applicable software and hardware quickly realizes.
Secondly, the inventive method make use of the fact that same video frequency program form be'ss unique condition, simply at each new joint
Do when mesh starts necessity calculating/detection, be particularly well-suited to mobile device (panel computer, notebook computer) this kind of to power consumption,
Manufacturing cost requires the harshest system.
Here description of the invention and application is illustrative, is not wishing to limit the scope of the invention to above-described embodiment
In.The deformation of embodiments disclosed herein and change are possible, real for those skilled in the art
The various parts with equivalence of replacing executing example are known.It should be appreciated by the person skilled in the art that without departing from the present invention
Spirit or essential characteristics in the case of, the present invention can in other forms, structure, layout, ratio, and with other assembly,
Material and parts realize.In the case of without departing from scope and spirit of the present invention, embodiments disclosed herein can be entered
Other deformation of row and change.
Claims (7)
1. a video 3 dimensional format method for quick, it is characterised in that described detection method comprises the steps:
Step one, judge whether video is upper and lower 3D format video or left and right 3D format video, including:
S1, new video program start, to the first enumerator, the second counter O reset;
S2, obtain a frame width be N highly for the image P of L, input picture is divided into 4 sub regions, formed upper left, lower-left,
Upper right, bottom right 4 sub regions;Carry out view division by left and right 3D, upper and lower 3D form more simultaneously;When formatting by left and right 3D, left
View (11) is on the left side, and right view (12) is on the right;When formatting by upper and lower 3D, top view (21) on top, lower view (22)
Below;
S3, for YUV mode image, only luminance component Y is calculated, the floor projection of 4 sub regions in calculation procedure S2
Vector YhWith vertical projection vector Yv;Respectively obtain the first subregion horizontal projection vectorFirst subregion upright projection to
AmountSecond subregion horizontal projection vectorSecond subregion vertical projection vector3rd subregion floor projection to
Amount3rd subregion vertical projection vector4th subregion horizontal projection vector4th subregion upright projection to
AmountWherein, YhDimension be L/2, YvDimension be N/2;
Second subregion horizontal projection vectorWith vertical projection vectorComputing formula as follows, wherein YijIt it is the i-th row jth
The Y-component of row pixel;
Other 3 regionsCalculating process same, it is only necessary to according to zones of different
The value amendment span of i, j;First area is3rd region is
4th region is
For RGB mode image, transfer image to YUV color space from RGB color, according still further to said process, Y is carried out
Process;Or directly at rgb space, tri-components of R, G, B are all processed by the process of above-mentioned Y, thus judges form;
S4, relation according to subregion in step S2 Yu left and right view, obtain the horizontal projection vector that left view (11) is corresponding
And vertical projection vectorThe horizontal projection vector of right view (12)And vertical projection vector
Wherein,WithDimension is L,WithDimension is N/2;
The concatenation operation of two vectorial V and T of definition is:
Wherein, the dimension of vector V is n, and the dimension of vector T is m, and the new vector dimension after connection is n+m;
Equally, the horizontal projection vector that top view (21) is corresponding is obtainedAnd vertical projection vectorThe level of lower view (22)
Projection vectorAnd vertical projection vector
S5, the distance calculated between left view (11) and right view (12), top view (21) and lower view (22) each projection vectorWith
If S6 left view (11) and right view (12) horizontal projection vector distanceLess than first threshold THh, and project to
Span fromLess than Second Threshold THv, then the first Counter Value adds 1;If top view (21) and lower view (22) floor projection
Vector distanceLess than first threshold THh, and projection vector distanceLess than Second Threshold THv, then the second Counter Value adds
1;
S7, repetition step S2~S6, until step S6 has been performed m time;
If the value of S8 the first enumerator more than or equal to k*m, k ∈ (0.5,1], then the current video program form detected for a left side
Right 3D video format;
If the value of the second enumerator more than or equal to k*m, k ∈ (0.5,1], then the current video program form detected is upper and lower 3D
Video format;
If the value of S9 two above enumerator is all unsatisfactory for condition, then the current video program detected is not left and right 3D video
Form, is not upper and lower 3D video format;
Step 2, judge that whether video is row intertexture 3D form LI video or column interleaving 3D form CI video or grid-staggered 3D
The 3D form CBS video of form CB video or grid-side by side;Including: with step S2 of step one process, step S3, step S4 class
Seemingly, according to the rule of different-format left and right view arrangement, the region carrying out left and right view divides, and the level obtaining left and right view is thrown
Shadow and upright projection;The region, left and right of row intertexture 3D form LI divides and divides according to the parity rows of image pixel, and institute is odd
The pixel of several rows carries out floor projection/upright projection, obtains the horizontal/vertical projection vector of a view;All even number lines
Pixel carries out floor projection/upright projection, obtains the horizontal/vertical projection vector of another view;Subsequent processing steps then with
Step S5 to the S8 of step one is identical;
If step 3 step one, step 2 are all not detected by 3D format video, then judge that the current video program detected is
2D video format.
2. a video 3 dimensional format method for quick, it is characterised in that described detection method comprises the steps:
Enumerator initializes;
Obtain a two field picture, according to the n kind 3D video format of required detection, image is carried out the division of n kind left and right view;
Calculate each view to divide, around the horizontal projection vector of the pixel component of view and vertical projection vector;
Calculate each view to divide, the horizontal projection vector distance of corresponding left and right view and vertical projection vector distance;
Divide for each view, if horizontal projection vector distance and vertical projection vector distance are less than given threshold value,
The 3D format counter that then division of this view is corresponding adds 1;
Repeated m time, check which kind of 3D format counter value more than k*m, k ∈ (0.5,1], more than then concluding that form is these 3D lattice
Formula;If all Counter Values are all unsatisfactory for, then conclude that form is 2D form.
Video 3 dimensional format method for quick the most according to claim 2, it is characterised in that:
Described 3D form is one of them in following 6 kinds of forms: left and right 3D form SBS, upper and lower 3D form TB, row intertexture 3D lattice
The 3D form of formula LI, column interleaving 3D form, grid-staggered 3D form, grid-side by side.
Video 3 dimensional format method for quick the most according to claim 2, it is characterised in that:
For the most universal left and right 3D and upper and lower 3D form, described detection method specifically includes following steps:
S1, new video program start, to the first enumerator, the second counter O reset;
S2, obtain a frame width be N highly for the image P of L, input picture is divided into 4 sub regions, formed upper left, lower-left,
Upper right, bottom right 4 sub regions;Carry out view division by left and right 3D, upper and lower 3D form more simultaneously;When formatting by left and right 3D, left
View (11) is on the left side, and right view (12) is on the right;When formatting by upper and lower 3D, top view (21) on top, lower view (22)
Below;
S3, for YUV mode image, the luminance component Y of 4 sub regions in step S2 is calculated, in calculation procedure S2 4
The horizontal projection vector Y of subregionhWith vertical projection vector Yv;
For RGB mode image, in calculation procedure S2, tri-components of R, G, B of 4 sub regions calculate, and obtain the water of correspondence
Flat projection vector Rh、Gh、BhWith vertical projection vector Rv、Gv、Bv;
Above-mentioned each component Y, R, G, B are labeled as X, for component X, respectively obtain the first subregion horizontal projection vector
First subregion vertical projection vectorSecond subregion horizontal projection vectorSecond subregion vertical projection vector3rd subregion horizontal projection vector3rd subregion vertical projection vector4th subregion horizontal projection vector4th subregion vertical projection vectorWherein, XhDimension be L/2, XvDimension be N/2;
S4, relation according to subregion in step S2 Yu left and right view, obtain the horizontal projection vector that left view (11) is corresponding
And vertical projection vectorThe horizontal projection vector of right view (12)And vertical projection vectorWherein,With
Dimension is L,ProfitDimension is N/2;
Equally, the horizontal projection vector that top view (21) is corresponding is obtainedAnd vertical projection vectorThe water of lower view (22)
Flat projection vectorAnd vertical projection vector
S5, the distance calculated between left view (11) and right view (12), top view (21) and lower view (22) each projection vectorWith
If S6 left view (11) and right view (12) horizontal projection vector distanceLess than first threshold THh, and project to
Span fromLess than Second Threshold THv, then the first Counter Value adds 1;If top view (21) and lower view (22) floor projection
Vector distanceLess than first threshold THh, and projection vector distanceLess than Second Threshold THv, then the second Counter Value adds
1;
S7, repetition step S2~S6, until step S6 has been performed m time;
If the value of S8 the first enumerator is more than or equal to setting value, then the current video program form detected is left and right 3D video
Form;
If the value of the second enumerator is more than or equal to setting value, then the current video program form detected is upper and lower 3D video lattice
Formula;
If the value of two above enumerator is all unsatisfactory for condition, then the current video program detected is 2D video format.
Video 3 dimensional format method for quick the most according to claim 2, it is characterised in that:
In described step S3, the second subregion horizontal projection vectorWith vertical projection vectorComputing formula as follows, wherein
YijIt it is the Y-component of the i-th row jth row pixel;
Other 3 regionsCalculation be similar to therewith.
Video 3 dimensional format method for quick the most according to claim 2, it is characterised in that:
In described step S4,
The concatenation operation of definition two vectorial V, T is:
The dimension of V be the dimension of n, T be m, the new vector dimension after connection is n+m.
Video 3 dimensional format method for quick the most according to claim 2, it is characterised in that:
In described step S5,
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610375507.4A CN106028019B (en) | 2016-05-31 | 2016-05-31 | Video 3 dimensional format quick determination method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610375507.4A CN106028019B (en) | 2016-05-31 | 2016-05-31 | Video 3 dimensional format quick determination method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106028019A true CN106028019A (en) | 2016-10-12 |
CN106028019B CN106028019B (en) | 2017-12-29 |
Family
ID=57092706
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610375507.4A Active CN106028019B (en) | 2016-05-31 | 2016-05-31 | Video 3 dimensional format quick determination method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106028019B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534825A (en) * | 2016-11-29 | 2017-03-22 | 宁波易维视显示技术有限公司 | Method for automatically detecting panoramic videos and pictures based on midline edge feature projection |
CN108615042A (en) * | 2016-12-09 | 2018-10-02 | 炬芯(珠海)科技有限公司 | The method and apparatus and player of video format identification |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101980545A (en) * | 2010-11-29 | 2011-02-23 | 深圳市九洲电器有限公司 | Method for automatically detecting 3DTV video program format |
TW201143359A (en) * | 2009-12-09 | 2011-12-01 | Thomson Licensing | Method and apparatus for distinguishing a 3D image from a 2D image and for identifying the presence of a 3D image format by image difference determination |
WO2011162737A1 (en) * | 2010-06-24 | 2011-12-29 | Thomson Licensing | Detection of frame sequential stereoscopic 3d video format based on the content of successive video frames |
CN102340676A (en) * | 2010-07-16 | 2012-02-01 | 深圳Tcl新技术有限公司 | Method and device for automatically recognizing 3D video formats |
CN102665085A (en) * | 2012-03-15 | 2012-09-12 | 广州嘉影软件有限公司 | Automatic identification method and automatic identification device of 3D movie format |
TW201328316A (en) * | 2011-12-26 | 2013-07-01 | Novatek Microelectronics Corp | Method for auto-detect image format and playing method applying the same |
CN104994374A (en) * | 2015-07-03 | 2015-10-21 | 宁波易维视显示技术有限公司 | Method for automatically detecting three-dimensional format of video |
-
2016
- 2016-05-31 CN CN201610375507.4A patent/CN106028019B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201143359A (en) * | 2009-12-09 | 2011-12-01 | Thomson Licensing | Method and apparatus for distinguishing a 3D image from a 2D image and for identifying the presence of a 3D image format by image difference determination |
WO2011162737A1 (en) * | 2010-06-24 | 2011-12-29 | Thomson Licensing | Detection of frame sequential stereoscopic 3d video format based on the content of successive video frames |
CN102340676A (en) * | 2010-07-16 | 2012-02-01 | 深圳Tcl新技术有限公司 | Method and device for automatically recognizing 3D video formats |
CN101980545A (en) * | 2010-11-29 | 2011-02-23 | 深圳市九洲电器有限公司 | Method for automatically detecting 3DTV video program format |
TW201328316A (en) * | 2011-12-26 | 2013-07-01 | Novatek Microelectronics Corp | Method for auto-detect image format and playing method applying the same |
CN102665085A (en) * | 2012-03-15 | 2012-09-12 | 广州嘉影软件有限公司 | Automatic identification method and automatic identification device of 3D movie format |
CN104994374A (en) * | 2015-07-03 | 2015-10-21 | 宁波易维视显示技术有限公司 | Method for automatically detecting three-dimensional format of video |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534825A (en) * | 2016-11-29 | 2017-03-22 | 宁波易维视显示技术有限公司 | Method for automatically detecting panoramic videos and pictures based on midline edge feature projection |
CN108615042A (en) * | 2016-12-09 | 2018-10-02 | 炬芯(珠海)科技有限公司 | The method and apparatus and player of video format identification |
Also Published As
Publication number | Publication date |
---|---|
CN106028019B (en) | 2017-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102595185B (en) | Stereo image quality objective evaluation method | |
US10204537B2 (en) | Display driving method and device and display device | |
US10237539B2 (en) | 3D display apparatus and control method thereof | |
US20110249886A1 (en) | Image converting device and three-dimensional image display device including the same | |
US20210376008A1 (en) | Display substrate, display method thereof, display device, and fine metal mask | |
US9396579B2 (en) | Method for visualizing three-dimensional images on a 3D display device and 3D display device | |
CN102006425A (en) | Method for splicing video in real time based on multiple cameras | |
RU2017101484A (en) | METHOD AND DEVICE FOR FORMING A THREE-DIMENSIONAL IMAGE | |
CN101593349A (en) | Bidimensional image is converted to the method for 3-dimensional image | |
US8610735B2 (en) | Image converting device and three dimensional image display device including the same | |
CN105842864B (en) | A kind of slim grating 3D display device | |
CN106028019B (en) | Video 3 dimensional format quick determination method | |
CN201919121U (en) | Projection system for mosaicking of multiple projected images | |
CN111641822A (en) | Method for evaluating quality of repositioning stereo image | |
CN105100776B (en) | A kind of three-dimensional video-frequency screenshot method and device | |
CN106067966B (en) | Video 3 dimensional format automatic testing method | |
US9703106B2 (en) | Parallax barrier, designing method thereof and parallax barrier type 3D display device | |
CN104144337A (en) | Image displaying method and device of multi-viewpoint stereoscopic display | |
CN106303496B (en) | Picture format determines method and device, display equipment | |
CN102307310B (en) | Image depth estimation method and device | |
CN106131528B (en) | The recognition methods of 3D video formats and system | |
CN104767985A (en) | Method of using region distribution analysis to automatically detect 3D image format | |
CN104318236B (en) | A kind of method and system for obtaining image local feature | |
CN103383745B (en) | The method that a kind of quality of welding spot detecting system detection window optimizes layout | |
CN103250185B (en) | Image processing apparatus and its image processing method and display packing using energy value |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |