CN103841422B - The intra-frame prediction method and device of depth image - Google Patents

The intra-frame prediction method and device of depth image Download PDF

Info

Publication number
CN103841422B
CN103841422B CN201410109690.4A CN201410109690A CN103841422B CN 103841422 B CN103841422 B CN 103841422B CN 201410109690 A CN201410109690 A CN 201410109690A CN 103841422 B CN103841422 B CN 103841422B
Authority
CN
China
Prior art keywords
value
sample point
prediction block
prediction
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410109690.4A
Other languages
Chinese (zh)
Other versions
CN103841422A (en
Inventor
郑萧桢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410109690.4A priority Critical patent/CN103841422B/en
Publication of CN103841422A publication Critical patent/CN103841422A/en
Application granted granted Critical
Publication of CN103841422B publication Critical patent/CN103841422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention discloses the intra-frame prediction method and device of a kind of depth image, wherein, methods described includes:According to the intra prediction mode of current image block, it is determined that the prediction block of the current image block corresponding with the intra prediction mode, the prediction block includes first area and second area;Using the value of the sample point where the first position of the prediction block as the pixel of the first area of the prediction block prediction data, the upper left position of the first position including the prediction block;Detect the value of sample point where the predeterminated position in the prediction block, if it is determined that when the value of sample point is unequal with the value of the sample point where the first position where the predeterminated position, then using the value of the sample point where the predeterminated position as the pixel of the second area of the prediction block prediction data.The value of the sample point of whole image block need not be traveled through can just find two values of different sample points, improve encoding-decoding efficiency.

Description

The intra-frame prediction method and device of depth image
Technical field
The present embodiments relate to technical field of image processing, more particularly to a kind of intra-frame prediction method of depth image and Device.
Background technology
Include visible image and the two kinds of image of depth image in 3 d video images system, visible image includes image The information of itself, such as colour information, depth image include the depth information of visible image, such as profile information.To 3 D video figure In as being transmitted, in order to reduce the bandwidth shared by transmission of video, it is necessary to carry out coded treatment to video image, including to regarding The coded treatment of image and depth image, to reduce the size of 3 d video images data.
In the prior art, it is first using intra-frame prediction method to the coded treatment of depth image in 3 d video images system First, image segmentation to be encoded into one or more subimage blocks is obtained the intra prediction mode of current image block, root by coding side The prediction data of current image block is obtained according to intra prediction mode, wherein, described image block and divide the son that obtains through image block Image block is commonly known as image block, the prediction data of described image block encoded as current image block or decoding prediction number According to using, it comes from the pixel data of encoded or decoding adjacent block, or encodes or decode the fixation of systemic presupposition Value, or the prediction data that other confession current blocks for coming from adjacent block are encoded or decoded.Coding side is to each picture in image block The pixel value and prediction data of vegetarian refreshments(Or the data of the reference block generated by prediction data)In corresponding each pixel picture Plain value carries out pointwise and asks difference to obtain residual matrix, residual matrix is quantified, is converted and entropy code, the code that entropy code is obtained Stream is sent to decoding end.Decoding end reads bit stream from the code stream for obtaining, and obtains corresponding residual by inverse quantization, Gray code Difference, the prediction data of current image block is obtained according to intra prediction mode, by the residual error of current image block and the picture of prediction data Element value(Or the pixel value of the reference block generated by prediction data)It is added, obtains the pixel value of current image block.
However, in the prior art, when obtaining the prediction data of image block according to intra prediction mode, it is possible to need traversal The value of the sample point of whole image block can just find two values of different sample points, and by two values of different sample points As the prediction data of different zones in the corresponding prediction block of image block, due to needing the sample point of image block of detection more, Cause encoding-decoding efficiency not high.
The content of the invention
The embodiment of the present invention provides a kind of intra-frame prediction method and device of depth image, is used to solve need in the prior art The sample point of the image block to be detected is more and causes encoding-decoding efficiency problem not high.
A kind of first aspect, there is provided intra-frame prediction method of depth image, including:
According to the intra prediction mode of current image block, it is determined that the present image corresponding with the intra prediction mode The prediction block of block, first area and second area that the prediction block includes;
Using the value of the sample point where the first position of the prediction block as the area of the corresponding prediction block of the sample point The prediction data of the pixel in domain, the region of the corresponding prediction block of the sample point is the first area;
Detect the value of sample point where the predeterminated position in the prediction block, however, it is determined that sample point where the predeterminated position Value it is unequal with the value of the sample point where the first position when, then the value of the sample point where the predeterminated position is made It is the prediction data of the pixel of the second area of the prediction block.
Based in a first aspect, in the first possible implementation, detecting sample where the predeterminated position in the prediction block After the value of this point, also include:
If it is determined that when the value of sample point is equal with the value of the sample point where the first position where the predeterminated position, The prediction data of the pixel of the second area of the prediction block is then entered as default numerical value.
The first possible implementation based on first aspect or first aspect, in second possible implementation In, the first position includes the upper left position of the prediction block;The predeterminated position at least includes three positions, respectively Second, third and the 4th position.
Second possible implementation based on first aspect, in the third possible implementation, however, it is determined that institute State sample point where predeterminated position value it is unequal with the value of the sample point where the first position when, then by the default position The value of the sample point where putting is specifically included as the prediction data of the pixel of the second area of the prediction block:
If the value of the value of the sample point where the second place of the prediction block and the sample point where the first position When unequal, then using the value of the sample point where the second place of the prediction block as the second area of the prediction block picture The prediction data of vegetarian refreshments, the second place includes the upper right Angle Position of the prediction block;Or
If the value of the sample point where the second Angle Position of the prediction block and the sample point where the first position When being worth equal, and value and the sample point where the first position of sample point where the 3rd position of the prediction block value When unequal, then the picture of the second area using the value of the sample point where the 3rd position of the prediction block as the prediction block The prediction data of vegetarian refreshments, the 3rd position includes the lower-left Angle Position of the prediction block;Or
If the second of the prediction block and the value and the sample where the first position of the 3rd sample point where position When the value of point is equal, and sample point where the 4th position of the prediction block value and the sample point where the first position Value it is unequal when, then using the value of the sample point where the 4th position of the prediction block as the prediction block second area Pixel prediction data, the lower right position of the 4th position including the prediction block.
Second possible implementation based on first aspect, it is described default in the 4th kind of possible implementation Position also includes the 5th position, and the 5th position includes the centre position of the prediction block.
The 4th kind of possible implementation based on first aspect, in the 5th kind of possible implementation, however, it is determined that institute State sample point where predeterminated position value it is unequal with the value of the sample point where the first position when, then by the default position The value of the sample point where putting specifically also includes as the prediction data of the pixel of the second area of the prediction block:
If the value of the sample point where second, third and the 4th position of the prediction block with where the first position When the value of sample point is equal, and sample point where the 5th position of the prediction block value and the sample where the first position When the value of this point is unequal, then using the value of the sample point where the 5th position of the prediction block as the second of the prediction block The prediction data of the pixel in region.
The 4th kind of possible implementation based on first aspect, in the 6th kind of possible implementation, if described pre- Survey block second, third, the 4th and the 5th sample point where position value and the sample point where the first position value When equal, then the prediction data of the pixel of the second area of the prediction block is entered as default numerical value.
Based on first aspect first or the 6th kind of possible implementation, in the 7th kind of possible implementation, institute Stating numerical value includes 2(n-1), wherein, n is the accuracy value of sample point.
The first possible implementation based on first aspect or first aspect, in the 8th kind of possible implementation In, also include:Prediction data according to the first area and the pixel of second area is performed the encoding operation.
The 8th kind of possible implementation based on first aspect, in the 9th kind of possible implementation, also includes:Root Decoding operate is carried out according to the prediction data of the first area and the pixel of second area.
A kind of second aspect, there is provided the infra-frame prediction device of depth image, including:
Determining module, for the intra prediction mode according to current image block, it is determined that corresponding with the intra prediction mode The current image block prediction block, the prediction block include first area and second area;
Prediction module, for corresponding using the value of the sample point where the first position of the prediction block as the sample point Prediction block region pixel prediction data, the region of the corresponding prediction block of the sample point is the first area;
The determining module, is additionally operable to detect the value of sample point where the predeterminated position in the prediction block, it is determined that described Whether the value of sample point is unequal with the value of the sample point where the first position where predeterminated position;
The prediction module, be additionally operable to where the determining module determines the predeterminated position value of sample point with it is described When the value of the sample point where first position is unequal, using the value of the sample point where the predeterminated position as the prediction block Second area pixel prediction data.
Based on second aspect, in the first implementation, the prediction module is additionally operable to determine in the determining module When the value of sample point is equal with the value of the sample point where the first position where the predeterminated position, by the prediction block The prediction data of the pixel of second area is entered as default numerical value.
The first implementation based on second aspect or second aspect, in second implementation, described first Put the upper left position including the prediction block;The predeterminated position at least includes three positions, respectively second, third and the Four positions.
Second implementation based on second aspect, in the third implementation, the prediction module specifically for: In the value and the sample where the first position of the sample point where the second place that the determining module determines the prediction block When the value of this point is unequal, using the value of the sample point where the second place of the prediction block as the secondth area of the prediction block The prediction data of the pixel in domain, the second place includes the upper right Angle Position of the prediction block;Or
The sample point where the second Angle Position that the determining module determines the prediction block value with described first When the value of the sample point where putting is equal, and sample point where the 3rd position of the prediction block value and the first position When the value of the sample point at place is unequal, using the value of the sample point where the 3rd position of the prediction block as the prediction block Second area pixel prediction data, the lower-left Angle Position of the 3rd position including the prediction block;Or
Determine the second of the prediction block and the value and described of the 3rd sample point where position in the determining module When the value of the sample point where one position is equal, and the sample point where the 4th position of the prediction block value and described first When the value of the sample point where position is unequal, using the value of the sample point where the 4th position of the prediction block as described pre- The prediction data of the pixel of the second area of block is surveyed, the 4th position includes the lower right position of the prediction block.
The first implementation based on second aspect or second aspect, in the 4th kind of implementation, the default position Putting also includes the 5th position, and the 5th position includes the centre position of the prediction block.
The 4th kind of implementation based on second aspect, in the 5th kind of implementation, the prediction module is specifically also used In:In the value and described of the sample point where second, third and the 4th position that the determining module determines the prediction block When the value of the sample point where one position is equal, and the sample point where the 5th position of the prediction block value and described first When the value of the sample point where position is unequal, using the value of the sample point where the 5th position of the prediction block as described pre- The prediction data of the pixel of the second area of block is surveyed, the 5th position includes the centre position of the prediction block.
The 5th kind of implementation based on second aspect, in the 6th kind of implementation, the prediction module is specifically also used In:
The determining module determine the prediction block second, third, the 4th and the 5th sample point where position When value is equal with the value of the sample point where the first position, by the prediction number of the pixel of the second area of the prediction block According to being entered as default numerical value.
Based on second aspect first or the 6th kind of implementation, in the 7th kind of implementation, the numerical value includes 2(n -1), wherein, n is the accuracy value of sample point.
The first implementation based on second aspect or second aspect, in the 8th kind of implementation, also includes:Coding Module, for being performed the encoding operation according to the prediction data of the first area and the pixel of second area.
The 8th kind of implementation based on second aspect, in the 9th kind of implementation, also includes:
Decoder module:Prediction data according to the first area and the pixel of second area carries out decoding operate.
The embodiment of the present invention according to the intra prediction mode of current image block, it is determined that corresponding with the intra prediction mode The prediction block of the current image block, the prediction block includes first area and second area;By first of the prediction block The value of the sample point where putting as the pixel in the region of the corresponding prediction block of the sample point prediction data, the sample The region of the corresponding prediction block of point is the first area;If the value of the sample point where the predeterminated position of the prediction block and institute When the value of the sample point where stating first position is unequal, then the value of the sample point where the predeterminated position of the prediction block is made It is the prediction data of the pixel of the second area of the prediction block.Therefore, there is no need to travel through the sample point of whole image block Value, but the value of the sample point of predeterminated position can just find two values of different sample points in detection image block, and by this two The value of individual different sample point can improve volume respectively as first area in image block and the prediction data of second area Decoding efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
A kind of schematic flow sheet of the intra-frame prediction method of depth image that Fig. 1 is provided for one embodiment of the invention;
Fig. 2 is the image block schematic diagram of the depth image of embodiment of the present invention application;
Fig. 3 is the prediction block schematic diagram of the depth image of embodiment of the present invention application;
A kind of schematic flow sheet of the intra-frame prediction method of depth image that Fig. 4 is provided for another embodiment of the present invention;
A kind of structural representation of the infra-frame prediction device of depth image that Fig. 5 is provided for one embodiment of the invention;
A kind of structural representation of the infra-frame prediction device of depth image that Fig. 6 is provided for another embodiment of the present invention.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
In three-dimensional video system, depth image includes the depth information of visible image, for example, profile information, depth map As the characteristics of be most of zone-texture more smooth, generally only contain sharp keen boundary information, depth image in physical boundary Interior pixel value is relatively simple and is uniformly distributed, it is therefore possible to use the depth coding based on segmentation block(Segment-wise DC coding, SDC)Technology is carried out according to the mode of depth modelling pattern (Depth modeling mode, DMM) to image block Coding is decoded, and its basic thought is:First, the intra-frame prediction block of the image block is obtained according to intra prediction mode, secondly, point The prediction data of pixel that Dao Chu be in prediction block in first area and second area, wherein, each pixel in first area The prediction data of point is identical, and the prediction data of each pixel in second area is identical;According to the first area With the prediction data of the pixel in second area, the respectively pixel in first area corresponding with image block and second area The average pixel value of point asks poor, the residual error of pixel in first area and second area is obtained respectively, afterwards, to firstth area The residual error of pixel is encoded in domain and second area, therefore, SDC technologies only need to encode or decode the residual of the two regions Difference, it is not necessary to encode or decode the residual values of all pixels point in two regions, improve at the encoding and decoding of depth image Reason efficiency.
A kind of schematic flow sheet of the intra-frame prediction method of depth image that Fig. 1 is provided for one embodiment of the invention, such as Fig. 1 It is shown, including:
101st, according to the intra prediction mode of current image block, it is determined that corresponding with the intra prediction mode described current The prediction block of image block.
Wherein, include before step 101:The intra prediction mode of the current image block of depth image is obtained, for example, right Depth image carries out coded treatment, and a two field picture generally is divided into one or more regular depth image blocks, by a depth Image block is divided into one or more image blocks, and the shape of image block can be regular, it is also possible to when it is irregular, image block Division methods are relevant with the texture information of depth image block, are that most of zone-texture is more put down the characteristics of due to depth image Sliding, the pixel value in depth image is relatively simple and is uniformly distributed, and image block can for example be entered using DMM4 in the present embodiment Row is divided.
Fig. 2 is the image block schematic diagram of the depth image of embodiment of the present invention application, as shown in Fig. 2 each grid is represented One pixel, it is assumed that the size of current image block is multiplied by 8 for 8, i.e., with 64 pixels, the current image block includes two Region, as shown in Fig. 2 as white portion(First area)And black region(Second area), two regions generally represent Two actual objects, or illustrate object and background area.
Wherein, intra prediction mode determines the choosing method of the prediction data of current image block, embodiment of the present invention application Intra-frame prediction method be DMM4.
For example, when step 101 is implemented, such as the left adjacent column according to current image block is derived with upper adjacent lines DC0 regions and DC1 regions, dividing mode and DC0 regions and DC1 regions further according to DMM4 construct frame in corresponding with DMM4 Prediction block, corresponding zonings of DMM4 that will be shown in above-mentioned Fig. 2(First area and second area)Fill corresponding DC0 numbers Value or DC1 numerical value.
Fig. 3 is the prediction block schematic diagram of the depth image of embodiment of the present invention application, as shown in figure 3, depth image is pre- Survey block is identical with the image block schematic diagram of the depth image shown in Fig. 2, and each grid represents a pixel, the chi of the prediction block Very little is 8 to be multiplied by 8, i.e., with 64 pixels, the prediction block includes two regions, as shown in figure 3, as DC0 regions(Equivalent to First area)With DC1 regions(Equivalent to second area).
102nd, using the value of the sample point where the first position of the prediction block as the corresponding prediction block of the sample point Region pixel prediction data, the region of the corresponding prediction block of the sample point is the first area.
In the present embodiment, above-mentioned first position includes the upper left position of prediction block.For example, obtaining pre- as shown in Figure 3 The value of block upper left position sample point is surveyed, as shown in figure 3, the region that the sample point where the upper left position of prediction block is located at The middle first area as the prediction block(DC0 regions), by the value of the sample point where the upper left position of the prediction block As the first area of the prediction block(DC0 regions)Pixel prediction data.
In existing SDC technologies, as shown in figure 3, using the value of the sample point where the upper left position of prediction block as The first area of the prediction block(DC0 regions)Pixel prediction data after, by method from left to right, from top to bottom Search and first area(DC0 regions)The sample point of different values.As shown in figure 3, because the first row data are DC0, therefore First line search continues to search for the data of the second row after terminating, the corresponding value of second sample point of the second row as shown in Figure 3 with The prediction data of the pixel in DC0 regions is different, thus using the corresponding value of second sample point of the second row as shown in Figure 3 as Second area(DC1 regions)Pixel prediction data.
It follows that the deficiencies in the prior art part is during obtaining two prediction data of the pixel in region Needing traversal prediction block can just find two sample points of different value.Need to travel through the sample of whole prediction block in extreme circumstances Point can just find two different sample values as two prediction data of the pixel in region, due to needing the sample point of detection Number is more, causes encoding-decoding efficiency to reduce.
The value of the sample point where the 103rd, determining the predeterminated position of prediction block whether with the sample point where first position Value is unequal, and step 104 is performed if unequal, and step 105 is performed if equal.
In the embodiment of the present invention, dividing mode and DC0 regions and DC1 regions according to DMM4 construct corresponding with DMM4 Intra-frame prediction block, because first area and second area would generally connect or can cover an image with the border of image block A certain size region of block.Therefore, the present invention is only needed to according to pre-defined rule, the sample point of predeterminated position in detection image block Value can obtain two different sample values respectively as first area and the prediction data of the pixel of second area.
In the present embodiment, predeterminated position at least includes three positions, respectively second, third and the 4th position, such as Fig. 3 institutes Show, the second place includes the upper right Angle Position of prediction block, the 3rd position includes the lower-left Angle Position of prediction block, and the 4th position includes The lower right position of prediction block.
104th, using the value of the sample point where predeterminated position as the pixel of the second area of prediction block prediction data.
For example, include when step 104 is implemented:
If the value of the value of the sample point where the second place of the prediction block and the sample point where the first position When unequal, then using the value of the sample point where the second place of the prediction block as the second area of the prediction block picture The prediction data of vegetarian refreshments;Or
If the value of the sample point where the second Angle Position of the prediction block and the sample point where the first position When being worth equal, and value and the sample point where the first position of sample point where the 3rd position of the prediction block value When unequal, then the picture of the second area using the value of the sample point where the 3rd position of the prediction block as the prediction block The prediction data of vegetarian refreshments;Or
If the second of the prediction block and the value and the sample where the first position of the 3rd sample point where position When the value of point is equal, and sample point where the 4th position of the prediction block value and the sample point where the first position Value it is unequal when, then using the value of the sample point where the 4th position of the prediction block as the prediction block second area Pixel prediction data.
105th, the prediction data of the pixel of the second area of prediction block is entered as default numerical value.
Wherein, the default numerical value includes 2(n-1), n for sample point accuracy value, for example value be 8 bits, 10 bits, 12 compare top grade.
Explanation is needed further exist for, because above-mentioned first area and second area are possible in one image block of covering Larger area, therefore above-mentioned predeterminated position can also include the 5th position, as shown in figure 3, the 5th position includes prediction The mid-point position of block, alternatively, step 104 is implemented also to be included:
If the value of the sample point where second, third and the 4th position of the prediction block with where the first position When the value of sample point is equal, and sample point where the 5th position of the prediction block value and the sample where the first position When the value of this point is unequal, then using the value of the sample point where the 5th position of the prediction block as the second of the prediction block The prediction data of the pixel in region.
Accordingly, step 105 is implemented also includes:
If the prediction block second, third, the 4th and the 5th sample point where position value and the first position When the value of the sample point at place is equal, then the prediction data of the pixel of the second area of the prediction block is entered as default Numerical value, the numerical value includes 2(n-1), wherein, n is the accuracy value of sample point, and such as value is 8 bits, 10 bits, 12 compares top grade.
Further, in the present embodiment coding side always according to the first area and the prediction number of the pixel of second area According to performing the encoding operation;Accordingly, entered according to the prediction data of the first area and the pixel of second area in decoding end Row decoding operate.
In the embodiment of the present invention, according to pre-defined rule, predeterminated position in detection image block according to this(As prediction block second, Third and fourth position)Sample point value, if the value of sample point where predeterminated position and the first position(Prediction block Upper left position)When the value of the sample point at place is unequal, then using the value of the sample point where predeterminated position as the prediction The prediction data of the pixel of the second area of block, you can obtain two different sample values respectively as first area and second The prediction data of the pixel in region.The value of the sample point of whole image block need not be traveled through, encoding-decoding efficiency can be improved.
A kind of schematic flow sheet of the intra-frame prediction method of depth image that Fig. 4 is provided for another embodiment of the present invention, such as Shown in Fig. 4, including:
401st, according to the intra prediction mode of current image block, it is determined that corresponding with the intra prediction mode described current The prediction block of image block.
402nd, using the value of the sample point where the upper left corner of the prediction block as the first area of the prediction block picture The prediction data of vegetarian refreshments.
Above-mentioned steps 401 and 402 implement the associated description that may be referred in figure illustrated embodiment, repeat no more.
Whether not the value of the sample point where the value of the sample point where the 403rd, determining the upper right corner of prediction block and the upper left corner It is equal, step 404 is performed if the value of the sample point where the upper right corner is unequal with the value of the sample point where the upper left corner, if right The value of the sample point where upper angle is equal with the value of the sample point where the upper left corner then to perform step 405.
404th, using the value of the sample point where the upper right corner of the prediction block as the second area of the prediction block picture The prediction data of vegetarian refreshments.
Shown in Fig. 3, the value of the sample point where detecting the upper right Angle Position of prediction block, if the upper right corner position of the prediction block When the value of the sample point where putting is unequal with the value of the sample point where the upper left position, then by the right side of the prediction block The value of the sample point where upper Angle Position as the pixel of the second area of the prediction block prediction data.
The value of the sample point where the 405th, determining the lower left corner of prediction block is with the value of the sample point where the upper left corner It is no unequal, perform step if the value of the sample point where the lower left corner is unequal with the value of the sample point where the upper left corner 406, step 407 is performed if the value of the sample point where the lower left corner is equal with the value of the sample point where the upper left corner.
406th, using the value of the sample point where the lower left corner of prediction block as the second area of the prediction block pixel Prediction data.
When implementing, shown in Fig. 3, the value of the sample point where detecting the lower-left Angle Position of prediction block, if the prediction When the value of the sample point where the lower-left Angle Position of block is unequal with the value of the sample point where the upper left position, then by institute The value of the sample point where stating the lower-left Angle Position of prediction block as the pixel of the second area of the prediction block prediction number According to.
Whether not the value of the sample point where the value of the sample point where the 407th, determining the lower right corner of prediction block and the upper left corner It is equal, step 408 is performed if the value of the sample point where the lower right corner is unequal with the value of the sample point where the upper left corner, if right The value of the sample point where inferior horn is equal with the value of the sample point where the upper left corner then to perform step 409.
408th, using the value of the sample point where the lower right corner of prediction block as the second area of the prediction block pixel Prediction data.
When implementing, shown in Fig. 3, the value of the sample point where detecting the lower right position of prediction block, if the prediction When the value of the sample point where the lower right position of block is unequal with the value of the sample point where the upper left position, then by institute The value of the sample point where stating the lower right position of prediction block as the pixel of the second area of the prediction block prediction number According to.
409th, the prediction data of the pixel of the second area of prediction block is entered as default numerical value.
Wherein, the numerical value includes 2(n-1), n is the accuracy value of sample point, and such as value is 8 bits, 10 bits, 12 bits Deng.
Explanation is needed further exist for, because above-mentioned first area and second area are possible in one image block of covering Larger area, therefore SDC DC can be obtained with the mid-point position of detection image block in addition to detection aforementioned four position Value;Alternatively, also include after step 407:
If the sample where the value of the sample point where the upper right corner of the prediction block, the lower left corner and the lower right corner and the upper left corner When the value of point is equal, then value and the sample where the upper left corner of the sample point where further determining that the centre position of the prediction block Whether the value of this point is unequal;
If unequal, using the value of the sample point where the centre position of the prediction block as the second of the prediction block The prediction data of the pixel in region.
If equal, step 409 is performed, the prediction data of the pixel of the second area of the prediction block is entered as pre- If numerical value, the numerical value include 2(n-1), n is the accuracy value of sample point, and such as value is 8 bits, 10 bits, 12 compares top grade.
In the embodiment of the present invention, according to pre-defined rule, predeterminated position in detection image block according to this(Such as the upper right of prediction block Angle, the lower left corner, lower right position)Sample point value, if the value of sample point where predeterminated position and the first position(In advance Survey the upper left position of block)When the value of the sample point at place is unequal, then using the value of the sample point where predeterminated position as institute State the prediction data of the pixel of the second area of prediction block, you can obtain two different sample values respectively as first area With the prediction data of the pixel of second area.The value of the sample point of whole image block need not be traveled through, encoding and decoding can be improved Efficiency.
It should be noted that the prediction data of pixel in prediction block is determined in first area and second area it Afterwards, in the present embodiment, for example, the pixel value of each pixel in current image block in first area can be obtained, by each pixel Pixel value be added after the average pixel value of pixel in current image block in first area is obtained divided by pixel number; Similarly also can obtain the average pixel value of the pixel in current image block in second area;By first area in current image block In pixel average pixel value and prediction block in the prediction data of pixel in first area subtract each other and obtain first area Pixel value residual error, by second area in the average pixel value of the pixel in second area in current image block and prediction block In the prediction data of pixel subtract each other the residual error of the pixel value for obtaining second area, afterwards, respectively by first, second region The residual error of pixel value is performed the encoding operation, and is finally carried out entropy code and is obtained coded bit stream.Decoding end is flowed into according to coded-bit The row processing procedure opposite with coding side, you can obtain the reconstruct data of current image block.
A kind of structural representation of the infra-frame prediction device of depth image that Fig. 5 is provided for one embodiment of the invention, such as Fig. 5 It is shown, including:Determining module 51 and connected prediction module 52;
Determining module 51, for the intra prediction mode according to current image block, it is determined that with the intra prediction mode pair The prediction block of the current image block answered, the prediction block includes first area and second area;
Prediction module 52, the value for the sample point where the first position of the prediction block for determining the determining module is made It is the prediction data of the pixel in the region of the corresponding prediction block of the sample point;The region of the corresponding prediction block of the sample point It is the first area.
The determining module 51, is additionally operable to detect the value of sample point where the predeterminated position in the prediction block, determines institute Whether the value for stating sample point where predeterminated position is unequal with the value of the sample point where the first position;
The prediction module 52, is additionally operable to the value of sample point and institute where the determining module determines the predeterminated position When the value of the sample point where stating first position is unequal, using the value of the sample point where the predeterminated position as the prediction The prediction data of the pixel of the second area of block.
Alternatively, the prediction module 52, is additionally operable to the sample point where the determining module determines the predeterminated position Value it is equal with the value of the sample point where the first position when, by the prediction of the pixel of the second area of the prediction block Data are entered as default numerical value;
Wherein, the numerical value includes 2(n-1), wherein, n is the accuracy value of sample point.
Alternatively, the first position includes the upper left position of the prediction block;The predeterminated position at least includes three Individual position, respectively second, third and the 4th position.
Alternatively, the prediction module 52 specifically for:Determine the second place of the prediction block in the determining module When the value of the sample point at place is unequal with the value of the sample point where the first position, by the second place of the prediction block The value of the sample point at place as the pixel of the second area of the prediction block prediction data, the second place include institute State the upper right Angle Position of prediction block;Or
The sample point where the second Angle Position that the determining module determines the prediction block value with described first When the value of the sample point where putting is equal, and sample point where the 3rd position of the prediction block value and the first position When the value of the sample point at place is unequal, using the value of the sample point where the 3rd position of the prediction block as the prediction block Second area pixel prediction data, the lower-left Angle Position of the 3rd position including the prediction block;Or
Determine the second of the prediction block and the value and described of the 3rd sample point where position in the determining module When the value of the sample point where one position is equal, and the sample point where the 4th position of the prediction block value and described first When the value of the sample point where position is unequal, using the value of the sample point where the 4th position of the prediction block as described pre- The prediction data of the pixel of the second area of block is surveyed, the 4th position includes the lower right position of the prediction block.
Alternatively, the predeterminated position also includes the 5th position, and the 5th position includes the interposition of the prediction block Put.
Alternatively, the prediction module 52 is specifically additionally operable to:Determine second, the of the prediction block in the determining module When the value of the sample point where the three and the 4th position is equal with the value of the sample point where the first position, and the prediction block The 5th position where sample point value it is unequal with the value of the sample point where the first position when, by the prediction block The 5th position where sample point value as the pixel of the second area of the prediction block prediction data, the described 5th Position includes the centre position of the prediction block.
Alternatively, the prediction module 52 is specifically additionally operable to:
The determining module determine the prediction block second, third, the 4th and the 5th sample point where position When value is equal with the value of the sample point where the first position, by the prediction number of the pixel of the second area of the prediction block According to being entered as default numerical value, wherein, the numerical value includes 2(n-1), wherein, n is the accuracy value of sample point.
Alternatively, the present embodiment described device also includes:Coding module 53 and decoder module 54, with prediction module 52 respectively Connection;
Wherein, coding module 53 is used for the pixel of the first area and second area obtained according to the prediction module 52 Prediction data perform the encoding operation;
Decoder module 54 is used for the pre- of the pixel of the first area and second area obtained according to the prediction module 52 Surveying data carries out decoding operate.
In the embodiment of the present invention, according to pre-defined rule, predeterminated position in detection image block according to this(As prediction block second, Three, the 4th and the 5th position)Sample point value, if the value of sample point where predeterminated position and the first position(In advance Survey the upper left position of block)When the value of the sample point at place is unequal, then using the value of the sample point where predeterminated position as institute State the prediction data of the pixel of the second area of prediction block, you can obtain two different sample values respectively as first area With the prediction data of the pixel of second area.The value of the sample point of whole image block need not be traveled through, encoding and decoding can be improved Efficiency.
A kind of structural representation of the infra-frame prediction device of depth image that Fig. 6 is provided for another embodiment of the present invention, such as Shown in Fig. 6, including processor 61 and memory 62, wherein, processor 61 is connected by bus with memory 62, in memory 62 Be stored with the instruction of the intra-frame prediction method for realizing depth image, can be held when processor 61 transfers the instruction in memory 62 Row following steps:
According to the intra prediction mode of current image block, it is determined that the present image corresponding with the intra prediction mode The prediction block of block, first area and second area that the prediction block includes;
The value of the sample point where the first position of prediction block as the region of the corresponding prediction block of the sample point picture The prediction data of vegetarian refreshments, the region of the corresponding prediction block of the sample point is the first area;
Detect the value of sample point where the predeterminated position in the prediction block, however, it is determined that sample point where the predeterminated position Value it is unequal with the value of the sample point where the first position when, then the value of the sample point where the predeterminated position is made It is the prediction data of the pixel of the second area of the prediction block.
Alternatively, detect after the value of sample point where the predeterminated position in the prediction block, also include:
If it is determined that when the value of sample point is equal with the value of the sample point where the first position where the predeterminated position, The prediction data of the pixel of the second area of the prediction block is then entered as default numerical value.
Alternatively, the first position includes the upper left position of the prediction block;The predeterminated position at least includes three Individual position, respectively second, third and the 4th position.
Alternatively, however, it is determined that the value of predeterminated position place sample point and the value of the sample point where the first position When unequal, then using the value of the sample point where the predeterminated position as the pre- of the pixel of the second area of the prediction block Data are surveyed, is specifically included:
If the value of the value of the sample point where the second place of the prediction block and the sample point where the first position When unequal, then using the value of the sample point where the second place of the prediction block as the second area of the prediction block picture The prediction data of vegetarian refreshments, the second place includes the upper right Angle Position of the prediction block;Or
If the value of the sample point where the second Angle Position of the prediction block and the sample point where the first position When being worth equal, and value and the sample point where the first position of sample point where the 3rd position of the prediction block value When unequal, then the picture of the second area using the value of the sample point where the 3rd position of the prediction block as the prediction block The prediction data of vegetarian refreshments, the 3rd position includes the lower-left Angle Position of the prediction block;Or
If the second of the prediction block and the value and the sample where the first position of the 3rd sample point where position When the value of point is equal, and sample point where the 4th position of the prediction block value and the sample point where the first position Value it is unequal when, then using the value of the sample point where the 4th position of the prediction block as the prediction block second area Pixel prediction data, the lower right position of the 4th position including the prediction block.
Alternatively, the predeterminated position also includes the 5th position, and the 5th position includes the interposition of the prediction block Put.
Alternatively, however, it is determined that the value of predeterminated position place sample point and the value of the sample point where the first position When unequal, then using the value of the sample point where the predeterminated position as the pre- of the pixel of the second area of the prediction block Data are surveyed, is specifically also included:
If the value of the sample point where second, third and the 4th position of the prediction block with where the first position When the value of sample point is equal, and sample point where the 5th position of the prediction block value and the sample where the first position When the value of this point is unequal, then using the value of the sample point where the 5th position of the prediction block as the second of the prediction block The prediction data of the pixel in region.
Alternatively, the present embodiment also includes:
If the prediction block second, third, the 4th and the 5th sample point where position value and the first position When the value of the sample point at place is equal, then the prediction data of the pixel of the second area of the prediction block is entered as default Numerical value.
Alternatively, the numerical value includes 2(n-1), wherein, n is the accuracy value of sample point.
Alternatively, the present embodiment also includes:
Prediction data according to the first area and the pixel of second area is performed the encoding operation.
Accordingly, the prediction data according to the first area and the pixel of second area carries out decoding operate.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example multiple units or component Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, it is shown or The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces Close or communicate to connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be by storage in the form of code in terms of one In calculation machine read/write memory medium.Above-mentioned code storage is in a computer-readable recording medium, including some instructions are used to Processor or hardware circuit is set to perform the part or all of step of each embodiment methods described of the invention.And foregoing storage is situated between Matter includes:The miniature high power capacity mobile storage disc without phisical drive of USB, mobile hard disk, read-only deposit Reservoir(English:Read-Only Memory, abbreviation ROM), random access memory(English:Random Access Memory, Abbreviation RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used Modified with to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic; And these modifications or replacement, do not make the protection model of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution Enclose.

Claims (18)

1. a kind of intra-frame prediction method of depth image, it is characterised in that including:
According to the intra prediction mode of current image block, it is determined that the current image block corresponding with the intra prediction mode Prediction block, the prediction block includes first area and second area;
Using the value of the sample point where the first position of the prediction block as the region of the corresponding prediction block of the sample point The prediction data of pixel, the region of the corresponding prediction block of the sample point is the first area;
Detect the value of sample point where the predeterminated position in the prediction block, however, it is determined that the value of sample point where the predeterminated position When value with the sample point where the first position is unequal, then using the value of the sample point where the predeterminated position as institute State the prediction data of the pixel of the second area of prediction block;
The first position includes the upper left position of the prediction block;
The predeterminated position at least includes three positions, respectively second, third and the 4th position, and the second place includes pre- The upper right Angle Position of block is surveyed, the 3rd position includes the lower-left Angle Position of prediction block, and the 4th position includes prediction block Lower right position.
2. according to the method described in claim 1, it is characterised in that sample point where the predeterminated position in the detection prediction block After value, also include:
If it is determined that when the value of sample point is equal with the value of the sample point where the first position where the predeterminated position, then will The prediction data of the pixel of the second area of the prediction block is entered as default numerical value.
3. method according to claim 1, it is characterised in that if it is determined that the value of sample point and institute where the predeterminated position When the value of the sample point where stating first position is unequal, then using the value of the sample point where the predeterminated position as described pre- The prediction data of the pixel of the second area of block is surveyed, is specifically included:
If the value of the value of the sample point where the second place of the prediction block and the sample point where the first position not phase Deng when, then using the value of the sample point where the second place of the prediction block as the second area of the prediction block pixel Prediction data, the upper right Angle Position of the second place including the prediction block;Or
If the value of the sample point where the second place of the prediction block is equal with the value of the sample point where the first position When, and the value of the sample point where the 3rd position of the prediction block is unequal with the value of the sample point where the first position When, then the pixel of the second area using the value of the sample point where the 3rd position of the prediction block as the prediction block Prediction data, the 3rd position includes the lower-left Angle Position of the prediction block;Or
If the second of the prediction block and the value and the sample point where the first position of the 3rd sample point where position When being worth equal, and value and the sample point where the first position of sample point where the 4th position of the prediction block value When unequal, then the picture of the second area using the value of the sample point where the 4th position of the prediction block as the prediction block The prediction data of vegetarian refreshments, the 4th position includes the lower right position of the prediction block.
4. method according to claim 1 and 2, it is characterised in that the predeterminated position also includes the 5th position, described the Five positions include the centre position of the prediction block.
5. method according to claim 4, it is characterised in that if it is determined that the value of sample point and institute where the predeterminated position When the value of the sample point where stating first position is unequal, then using the value of the sample point where the predeterminated position as described pre- The prediction data of the pixel of the second area of block is surveyed, is specifically also included:
If the value and the sample where the first position of the sample point where second, third and the 4th position of the prediction block When the value of point is equal, and sample point where the 5th position of the prediction block value and the sample point where the first position Value it is unequal when, then using the value of the sample point where the 5th position of the prediction block as the prediction block second area Pixel prediction data.
6. method according to claim 4, it is characterised in that also include:
If the prediction block second, third, the 4th and the 5th sample point where position value and the first position where Sample point value it is equal when, then the prediction data of the pixel of the second area of the prediction block is entered as default number Value.
7. the method according to claim 2 or 6, it is characterised in that:
The numerical value includes 2(n-1), wherein, n is the accuracy value of sample point.
8. method according to claim 1 and 2, it is characterised in that also include:
Prediction data according to the first area and the pixel of second area is performed the encoding operation.
9. method according to claim 8, it is characterised in that also include:
Prediction data according to the first area and the pixel of second area carries out decoding operate.
10. the infra-frame prediction device of a kind of depth image, it is characterised in that including:
Determining module, for the intra prediction mode according to current image block, it is determined that institute corresponding with the intra prediction mode The prediction block of current image block is stated, the prediction block includes first area and second area;
Prediction module, for corresponding pre- using the value of the sample point where the first position of the prediction block as the sample point The prediction data of the pixel in the region of block is surveyed, the region of the corresponding prediction block of the sample point is the first area;
The determining module, is additionally operable to detect the value of sample point where the predeterminated position in the prediction block, determines described default Whether the value of sample point is unequal with the value of the sample point where the first position where position;
The prediction module, is additionally operable to the value of sample point and described first where the determining module determines the predeterminated position When the value of the sample point where position is unequal, using the value of the sample point where the predeterminated position as the of the prediction block The prediction data of the pixel in two regions;
The first position includes the upper left position of the prediction block;
The predeterminated position at least includes three positions, respectively second, third and the 4th position, and the second place includes pre- The upper right Angle Position of block is surveyed, the 3rd position includes the lower-left Angle Position of prediction block, and the 4th position includes prediction block Lower right position.
11. according to the device described in claim 10, it is characterised in that:
The prediction module, is additionally operable to the value of sample point and described first where the determining module determines the predeterminated position When the value of the sample point where position is equal, the prediction data of the pixel of the second area of the prediction block is entered as presetting Numerical value.
12. devices according to claim 10, it is characterised in that the prediction module specifically for:In the determination mould Block determine the second place of the prediction block where sample point value and the sample point where the first position value not phase Deng when, using the value of the sample point where the second place of the prediction block as the pixel of the second area of the prediction block Prediction data, the second place includes the upper right Angle Position of the prediction block;Or
Value and the first position institute in the sample point where the second Angle Position that the determining module determines the prediction block Sample point value it is equal when, and sample point where the 3rd position of the prediction block value and the first position where Sample point value it is unequal when, using the value of the sample point where the 3rd position of the prediction block as the of the prediction block The prediction data of the pixel in two regions, the 3rd position includes the lower-left Angle Position of the prediction block;Or
The determining module determine the second of the prediction block and the value of the 3rd sample point where position with described first When the value of the sample point where putting is equal, and sample point where the 4th position of the prediction block value and the first position When the value of the sample point at place is unequal, using the value of the sample point where the 4th position of the prediction block as the prediction block Second area pixel prediction data, the lower right position of the 4th position including the prediction block.
13. device according to claim 10 or 11, it is characterised in that the predeterminated position also includes the 5th position, institute State centre position of the 5th position including the prediction block.
14. devices according to claim 13, it is characterised in that the prediction module is specifically additionally operable to:In the determination Module determine second, third and the 4th position of the prediction block where sample point value and the sample where the first position When the value of this point is equal, and sample point where the 5th position of the prediction block value and the sample where the first position Point value it is unequal when, using the value of the sample point where the 5th position of the prediction block as the prediction block second area Pixel prediction data, the centre position of the 5th position including the prediction block.
15. devices according to claim 13, it is characterised in that the prediction module is specifically additionally operable to:
The determining module determine the prediction block second, third, the 4th and the 5th sample point where position value with When the value of the sample point where the first position is equal, the prediction data of the pixel of the second area of the prediction block is assigned It is default numerical value to be worth.
16. device according to claim 11 or 15, it is characterised in that:
The numerical value includes 2(n-1), wherein, n is the accuracy value of sample point.
17. device according to claim 10 or 11, it is characterised in that also include:
Coding module, for being performed the encoding operation according to the prediction data of the first area and the pixel of second area.
18. devices according to claim 17, it is characterised in that also include:
Decoder module:Prediction data according to the first area and the pixel of second area carries out decoding operate.
CN201410109690.4A 2014-03-21 2014-03-21 The intra-frame prediction method and device of depth image Active CN103841422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410109690.4A CN103841422B (en) 2014-03-21 2014-03-21 The intra-frame prediction method and device of depth image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410109690.4A CN103841422B (en) 2014-03-21 2014-03-21 The intra-frame prediction method and device of depth image

Publications (2)

Publication Number Publication Date
CN103841422A CN103841422A (en) 2014-06-04
CN103841422B true CN103841422B (en) 2017-05-31

Family

ID=50804501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410109690.4A Active CN103841422B (en) 2014-03-21 2014-03-21 The intra-frame prediction method and device of depth image

Country Status (1)

Country Link
CN (1) CN103841422B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1242622C (en) * 2004-01-05 2006-02-15 清华大学 Obtaining method of reference image suitable for sampling block group coding
KR101495724B1 (en) * 2010-02-02 2015-02-25 삼성전자주식회사 Method and apparatus for video encoding based on scanning order of hierarchical data units, and method and apparatus for video decoding based on the same
PT3457689T (en) * 2010-05-25 2020-10-15 Lg Electronics Inc New planar prediction mode
US20120147961A1 (en) * 2010-12-09 2012-06-14 Qualcomm Incorporated Use of motion vectors in evaluating geometric partitioning modes
CN103237214B (en) * 2013-04-12 2016-06-08 华为技术有限公司 The decoding method of depth image and coding and decoding device

Also Published As

Publication number Publication date
CN103841422A (en) 2014-06-04

Similar Documents

Publication Publication Date Title
US20170272757A1 (en) Method and apparatus of video coding
CN103069802B (en) The device of the method for the current block of reconstructed image and corresponding coding method, correspondence
CN108712648B (en) Rapid intra-frame coding method for depth video
CN104125473B (en) A kind of 3D video depths image method for choosing frame inner forecast mode and system
US20190098312A1 (en) Image prediction method and related device
KR102216585B1 (en) Encoding apparatus and decoding apparatus for depth map, and encoding method and decoding method
US9607434B2 (en) Apparatus and method for encoding three-dimensional (3D) mesh, and apparatus and method for decoding 3D mesh
CN106507116B (en) A kind of 3D-HEVC coding method predicted based on 3D conspicuousness information and View Synthesis
CN104641643A (en) Decomposition of residual data during signal encoding, decoding and reconstruction in a tiered hierarchy
KR20220112864A (en) Methods and devices for bit-width control for bi-directional optical flow
CN111246212B (en) Geometric partitioning mode prediction method and device based on encoding and decoding end, storage medium and terminal
CN106162195A (en) A kind of 3D HEVC deep video information concealing method based on single depth frame internal schema
US9503751B2 (en) Method and apparatus for simplified depth coding with extended prediction modes
CN104604229A (en) Video encoding method and device, video decoding method and device, and program therefor
EP3343446A1 (en) Method and apparatus for encoding and decoding lists of pixels
CN105122809A (en) Method and apparatus for prediction value derivation in intra coding
CN114173120A (en) Video coding block division method and video coding block division prediction model training method
CN108353175A (en) The method and apparatus of prediction processing vision signal caused by coefficient of utilization
CN110495178A (en) The device and method of 3D Video coding
CN113347416B (en) Chroma intra prediction method and device, and computer storage medium
CN109151476A (en) A kind of reference frame generating method and device based on bi-directional predicted B frame image
CN108600755A (en) Image frame coding method and device
CN103841422B (en) The intra-frame prediction method and device of depth image
CN109218729A (en) Video encoding method, video decoding method, video encoder, and video decoder
CN106303548A (en) HEVC intra-frame predictive encoding method

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