CN112689139B - Video image color depth transformation method, system and equipment - Google Patents
Video image color depth transformation method, system and equipment Download PDFInfo
- Publication number
- CN112689139B CN112689139B CN202110267128.4A CN202110267128A CN112689139B CN 112689139 B CN112689139 B CN 112689139B CN 202110267128 A CN202110267128 A CN 202110267128A CN 112689139 B CN112689139 B CN 112689139B
- Authority
- CN
- China
- Prior art keywords
- image
- color depth
- target image
- color
- image sequence
- 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
Links
- 238000011426 transformation method Methods 0.000 title claims description 12
- 238000006243 chemical reaction Methods 0.000 claims abstract description 62
- 238000000034 method Methods 0.000 claims abstract description 45
- 230000008859 change Effects 0.000 claims abstract description 42
- 238000012937 correction Methods 0.000 claims description 17
- 238000001514 detection method Methods 0.000 claims description 17
- 239000011159 matrix material Substances 0.000 claims description 12
- 230000009466 transformation Effects 0.000 claims description 5
- 238000012545 processing Methods 0.000 abstract description 9
- 230000005540 biological transmission Effects 0.000 abstract description 2
- 230000036961 partial effect Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 239000003086 colorant Substances 0.000 description 5
- 238000013139 quantization Methods 0.000 description 5
- 230000007704 transition Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000001131 transforming effect Effects 0.000 description 2
- 238000009966 trimming Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 241000764238 Isis Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000036962 time dependent Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
Abstract
The invention belongs to the field of image transmission processing, and particularly relates to a method, a system and equipment for converting the color depth of a video image, aiming at solving the problems that the step jump occurs when the color depth of a low bit is converted into the color depth of a high bit and the conversion deviation occurs when the color depth of the high bit is converted into the color depth of the low bit in the conventional image color depth conversion. The invention comprises the following steps: acquiring a source image sequence to be converted and a target image sequence color depth; calculating a color level conversion relation and performing color depth conversion; if the high color depth is converted into the low color depth, directly outputting the converted target image sequence; if the low color depth is converted into the high color depth, the images are divided into a non-change image, a step change image and a continuous image according to the pixel difference value of the image; carrying out pixel fine adjustment on the continuous images to obtain continuous images with rich details; and outputting a target image sequence consisting of the unchanged image, the step change image and the continuous image with rich details. The image color depth conversion method is high in image color depth conversion precision and good in real-time performance, and is more suitable for occasions with limited computing capacity or higher real-time requirements.
Description
Technical Field
The invention belongs to the field of image transmission processing, and particularly relates to a video image color depth transformation method, system and device.
Background
In current video data processing and display devices, such as PCs, LCD screens, etc., there are a number of standards that provide different levels of color accuracy. A common standard is true color 24-bit (8 bits for each of the three RGB primaries), which includes 16777216 variations. Some high-end display devices will have 30 bits of color, 36 bits of color, or even 48 bits of color. There are 1090519040 variations in 30-bit color (10 bits for each of the three primary colors RGB); 68719476736 kinds of changes exist in each of the three primary colors of RGB of 36 bits; there are 281474976710656 variations for 48 bit colors (16 bits for each of the three primary colors RGB).
In the field of video screens, the application of mixing signals with different color depths on the screen is very common, and the accompanying data processing is image color depth conversion. In a typical processing manner, the high-low color depth conversion is realized by low-bit truncation or zero padding for each color component. For example, RGB24 bit color is converted to 36 bit color, and 8 bit data of R/G/B in each color component is changed to 12 bit data by shifting the data left by 4 bits. If the original color of a certain point is {0xA0,0xB0,0xC0}, the converted data becomes {0xA00,0xB00,0xC00 }. Conversely, if the data with high color depth is changed into the data with low color depth, the direct truncation is performed. For example, RGB36 bit color data is converted into RGB24 bit color, R/G/B of original data is 12 bit data, and the lowest 4 bit data is converted into 8 bit data by cutting off. If the color of the original data at a certain point is {0xA0F,0xB0F,0xC0F } and becomes {0xA0,0xB0,0xC0} after truncation.
However, in the above-described conversion of an image from a low color depth to a high color depth, the amount of data information does not change, and the display content of the image cannot be enriched even when the image is displayed on a screen with a high color depth. If the source image is a 24-bit color gradient color bar, there is no apparent color step change when displayed on a 24-bit color depth display device. When the color is changed into 36-bit color by complementing 0 to the lower bit of each component, a significant stair-step display effect occurs when the color is displayed on a 36-bit color depth display device. For example, the grayscale gradation images P0-P1023 of an image with a certain width of 1024 are {0x00, 0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x02,0x02,0x02,0x02, … 0xff, 0xff, 0xff, 0xff } and directly pass through the low bit complement 0, and the results P0-P1023 are {0x000, 0x000,0x000,0x000,0x010,0x010,0x010,0x 020,0x020,0x020, … 0xff0, 0xff0, 0xff0, 0xff0 }. As the displayed color depth increases, the image resolution is higher, and the change of the image is stepped, eventually resulting in a visual discontinuity. In the conversion of the image from high color depth to low color depth, there is a deviation of plus or minus 1 gradation in color without being grouped in the vicinity. For example, the source data of a certain point is 36-bit color {0xA0F,0xB0F,0xC0F } which is truncated to become 24-bit color {0xA0,0xB0,0xC0}, and a reasonable selection result should be {0xA1,0xB1,0xC1}, and each color component has a deviation of 1 color rank.
Some documents propose that a display effect of approximately 8-bit color depth is displayed by using 6-bit data in a dithering mode [1], but the method is only a visual improvement, the data content is not substantially improved, and the method has very limited improvement on the color depth and can only improve the color depth of 1-2-bit data. When the difference between the high and low color depths is large, the method is not suitable. In addition, because the processing mode is time-dependent, the same image is captured by a camera or the like at different times, and two slightly different images are obtained.
The following documents are background information related to the present invention:
[1] zhangwen super, liuhaifeng, frame rate control for LCD display images-dithering method, 20091229, CN 101770760A.
Disclosure of Invention
In order to solve the above problems in the prior art, that is, the problems of step jump occurring when the color depth of the lower bit is converted into the color depth of the higher bit and conversion deviation occurring when the color depth of the higher bit is converted into the color depth of the lower bit in the color depth conversion of the prior image, the present invention provides a color depth conversion method for a video image, the method comprising:
step S10, obtaining the color depth of the source image sequence to be converted in the videoAnd the color depth of the target image sequence on the video display side;
Step S20, based on the color depthAnd said color depthCalculating the color level conversion relation between each frame image in the source image sequence and the corresponding frame image in the target image sequence, and performing color depth conversion of the source image sequence based on the conversion relation to obtain a target image sequence;
in step S30, ifOutputting the target image sequence with the reduced color depth obtained in the step S20 to the video display end; if it isThen go to step S40;
step S40, forEach current frame target image in the target image sequence is based on the color depth of the source image sequenceAnd the color depth of the target image sequenceClassifying the pixel difference value of the current frame target image to obtain a target image sequence consisting of a non-change image, a step change image and a continuous image;
step S50, for each frame of image of the continuous image, carrying out fine adjustment on the current pixel after quantization according to the position of the current pixel in the color level, the position of the previous color level and the position of the next color level, and obtaining the continuous image with rich details;
and step S60, outputting a target image sequence with improved color depth formed by the unchanged image, the step-change image and the continuous image with abundant details to a video display terminal.
In some preferred embodiments, in step S20, the color level conversion relationship between each frame image in the source image sequence and the corresponding frame image in the target image sequence is calculated by:
wherein,representing the color level conversion relation between the source image and the target image.
In some preferred embodiments, in step S20, the color depth conversion of the source image sequence is performed based on the conversion relationship by:
wherein,represents a source image and a plurality of source images,which represents the image of the object or objects,representative pairRounding the result of (a).
In some preferred embodiments, the color depth based source image sequence in step S40And the color depth of the target image sequenceAnd classifying the pixel difference value of the current frame target image, wherein the method comprises the following steps:
step S41, based on the color depth of the sequence of source imagesAnd the color depth of the target image sequenceDetermining the detection range of the current frame target image according to the difference value between the target image and the current frame target image, and calculating the difference value between all pixels and adjacent pixels in the detection range through the difference value;
and step S42, dividing the current frame target image into a non-change image, a step change image or a continuous image according to the change trend of the difference value based on the range of the difference value.
In some preferred embodiments, step S50 includes:
step S51, for each frame of image of the continuous image, based on the current pixelPosition ofConstructing a detection matrix at color depths in a source image and a target image;
Step S52, based on the detection matrixDetecting the difference between two adjacent pixels asPosition of the pixelAnd(ii) a The current pixelPosition ofIs located atAndto (c) to (d);
step S53, calculating the current pixelPosition ofAndandin combination with the pixel differenceCalculating a current pixelFine adjustment correction value ofAnd proceed with the current pixelAnd (4) fine adjustment and correction to obtain continuous images with rich details.
In some preferred embodiments, the current pixel is calculated in step S53Position ofAndandin combination with the pixel differenceCalculating a current pixelFine adjustment correction value ofAnd proceed with the current pixelThe fine tuning correction method comprises the following steps:
wherein,is the current pixelPosition ofIs determined by the gray-scale value of (a),as pixel locationIs determined by the gray-scale value of (a),as pixel locationThe gray value of (a).
In another aspect of the present invention, a system for transforming color depth of a video image is provided, the system comprising:
a parameter acquisition module configured to acquire a color depth of a source image sequence to be converted in a videoAnd the color depth of the target image sequence on the video display side;
A color depth conversion module configured to convert the color depth into a color depth based on the color depthAnd said color depthCalculating the color level conversion relation between each frame image in the source image sequence and the corresponding frame image in the target image sequence, and performing color depth conversion of the source image sequence based on the conversion relation to obtain a target image sequence;
a jump judging module configured to be ifIf so, sending the target image sequence with the reduced color depth to an output display module; if it isSkipping to the image frame classification module;
an image frame classification module configured to, for each current frame target image in the target image sequence, base on a color depth of the source image sequenceAnd the color depth of the target image sequenceClassifying the pixel difference value of the current frame target image to obtain a target image sequence consisting of a non-change image, a step change image and a continuous image;
the image fine-tuning module is configured to perform fine tuning on the current pixel after quantization according to the position of the current pixel in the color level, the position of the previous color level and the position of the next color level of each frame of image of the continuous image, so as to obtain a continuous image with rich details;
and the output display module is configured to output and display the target image sequence with reduced color depth or the target image sequence with improved color depth formed by the unchanged image, the step change image and the continuous image with rich details.
In a third aspect of the present invention, an electronic device is provided, including:
at least one processor; and
a memory communicatively coupled to at least one of the processors; wherein,
the memory stores instructions executable by the processor for execution by the processor to implement the video image color depth transformation method described above.
In a fourth aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for being executed by the computer to implement the video image color depth transformation method described above.
The invention has the beneficial effects that:
(1) according to the video image color depth conversion method, in the conversion from low color depth to high color depth of a video image, the converted image can be closer to the original image through color depth stretching, the image display rule can be better met, and the image color level deviation caused by direct zero filling at a low position can be compensated; in the subsequent processing, the details of the image can be enriched according to the characteristics of the image, and the image can be displayed more smoothly.
(2) According to the video image color depth conversion method, in the conversion from high color depth to low color depth of the video image, the converted image can be closer to the original image through the color depth equal-scale reduction, the image display rule can be better met, and the image color level deviation caused by direct end truncation can be made up.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a schematic flow chart of a video image color depth transformation method according to the present invention;
FIG. 2 is a comparison diagram of partial pixel values of an 8-color-depth image converted into a 12-color-depth image according to an embodiment of the color depth transformation method for video images of the present invention;
fig. 3 is a comparison diagram of partial pixel values of an 8-color depth image converted into a 12-color depth image and subjected to pixel trimming according to an embodiment of the color depth transformation method for video images.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The invention discloses a video image color depth transformation method, which comprises the following steps:
step S10, obtaining the color depth of the source image sequence to be converted in the videoAnd the color depth of the target image sequence on the video display side;
Step S20, based on the color depthAnd said color depthCalculating the color level conversion relation between each frame image in the source image sequence and the corresponding frame image in the target image sequence, and performing color depth conversion of the source image sequence based on the conversion relation to obtain a target image sequence;
in step S30, ifOutputting the target image sequence with the reduced color depth obtained in the step S20 to the video display end; if it isThen go to step S40;
step S40, for each current frame target image in the target image sequence, based on the color depth of the source image sequenceAnd the color depth of the target image sequenceClassifying the pixel difference value of the current frame target image to obtain a target image sequence consisting of a non-change image, a step change image and a continuous image;
step S50, for each frame of image of the continuous image, carrying out fine adjustment on the current pixel after quantization according to the position of the current pixel in the color level, the position of the previous color level and the position of the next color level, and obtaining the continuous image with rich details;
and step S60, outputting a target image sequence with improved color depth formed by the unchanged image, the step-change image and the continuous image with abundant details to a video display terminal.
In order to more clearly explain the color depth transformation method of the video image of the present invention, the following describes the steps in the embodiment of the present invention in detail with reference to fig. 1.
The method for transforming color depth of a video image according to the first embodiment of the present invention includes steps S10-S60, each of which is described in detail as follows:
step S10, obtaining the color depth of the source image sequence to be converted in the videoAnd the color depth of the target image sequence on the video display side。
Color depth: color depth, which describes the number of bits in a single pixel to make up a color. The more bits per pixel, the better the transition from one color to another and the more detailed the different shades of a particular color that are adjacent to each other.
RGB: the computer display image is formed by superposing R (red), G (green) and B (blue) components according to different proportions to form different colors.
Step S20, based on the color depthAnd said color depthAnd calculating the color level conversion relation between each frame image in the source image sequence and the corresponding frame image in the target image sequence, and performing color depth conversion of the source image sequence based on the conversion relation to obtain the target image sequence.
Calculating the color level conversion relation between each frame image in the source image sequence and the corresponding frame image in the target image sequence, wherein the method is as shown in formula (1):
wherein,representing the color level conversion relation between the source image and the target image.
And performing color depth conversion of the source image sequence based on the conversion relation, wherein the method is as shown in formula (2):
wherein,represents a source image and a plurality of source images,which represents the image of the object or objects,representative pairRounding the result of (a).
In step S30, ifOutputting the target image sequence with the reduced color depth obtained in the step S20 to the video display end; if it isThen, it goes to step S40.
The process of changing the image from high color depth to low color depth is the operation of losing part of image details, the detail optimization is not needed, and the sequence formed by the converted image is directly sent to the output display module for display.
The process of the image from low color depth to high color depth can represent richer image details due to the increase of the color depth, and two adjacent color levels in the low color depth can greatly differ in the high color depth. For example, the color depth before conversion is 8 bits, which has a total of 0 to 255, and 256 levels, and the color depth after conversion is 12 bits, which has a total of 0 to 4095, and 4096 levels. Thus, if there is 1 step before the transition, there is 16 steps after the transition, so that a continuous image before the transition will have a step after the transition, and the image will appear to have a trace of the step since the high color depth display device is more rich in detail.
As shown in fig. 2, a comparison graph of partial pixel values of an 8-color depth image converted into a 12-color depth image according to an embodiment of the method for converting color depth of a video image of the present invention shows that, for a pixel having a difference of 1 between two adjacent pixel values before conversion, and for a pixel having a difference of 16 between pixel values after conversion, the color depth increases to cause the image to be in a staircase shape, and in order to make the image relatively conform to the characteristics of image continuity, interpolation needs to be performed according to the variation trend of the image.
Step S40, for each current frame target image in the target image sequence, based on the color depth of the source image sequenceAnd the color depth of the target image sequenceAnd classifying the pixel difference value of the current frame target image to obtain a target image sequence consisting of a non-change image, a step change image and a continuous image.
Color depth based on a sequence of source imagesAnd the color depth of the target image sequenceAnd classifying the pixel difference value of the current frame target image, wherein the method comprises the following steps:
step S41, based on the color depth of the sequence of source imagesAnd the color depth of the target image sequenceDetermining the detection range of the current frame target image according to the difference value between the target image and the current frame target image, and calculating the difference value between all pixels and adjacent pixels in the detection range through the difference value;
and step S42, dividing the current frame target image into a non-change image, a step change image or a continuous image according to the change trend of the difference value based on the range of the difference value.
No change image: such as computer monochrome test charts and the like;
step change image: such as the edges of computer graphics text, etc.;
successive images: such as incremental or decremental computer test images, natural images, etc.
For an image without change, the image has almost no detail change and is consistent as a whole, so that no processing is carried out; secondly, for the image with step change, the details of the image are only at the position where the step occurs, and the problem of detail continuity does not exist, so the image is not processed; and thirdly, quantizing the continuous image according to the color level of the current pixel and the positions of the previous color level and the next color level, finely adjusting the current pixel, and enriching details under the condition of keeping the overall contour unchanged.
And step S50, for each frame of image of the continuous image, carrying out fine adjustment on the current pixel after quantization according to the position of the color level of the current pixel and the positions of the previous color level and the next color level, and obtaining the continuous image with rich details.
Step S51, for each frame of image of the continuous image, based on the current pixelPosition ofConstructing a detection matrix at color depths in a source image and a target imageAs shown in formula (3):
step S52, based on the detection matrixDetecting the difference between two adjacent pixels asPosition of the pixelAnd(ii) a The current pixelPosition ofIs located atAndto (c) to (d);
step S53, calculating the current pixelPosition ofAndandin combination with the pixel differenceCalculating a current pixelFine adjustment correction value ofAnd proceed with the current pixelAnd (4) fine adjustment and correction to obtain continuous images with rich details.
Calculating a current pixelPosition ofAndandin combination with the pixel differenceCalculating a current pixelFine adjustment correction value ofAnd proceed with the current pixelThe method of trimming (2) is represented by the following formulas (4) and (5):
wherein,is the current pixelPosition ofIs determined by the gray-scale value of (a),is a distanceThe nearest previous point of color change of the image,is a distanceThe nearest next point of color change of the image,is located atAndin the above-mentioned manner,as pixel locationIs determined by the gray-scale value of (a),as pixel locationThe gray value of (a).
As shown in fig. 3, a partial pixel value comparison graph for converting an 8-color depth image into a 12-color depth image and performing pixel fine adjustment according to an embodiment of the video image color depth conversion method of the present invention is shown, wherein the top is a partial pixel value of the 8-color depth image, the middle is a partial pixel value after converting the 8-color depth into the 12-color depth image, and the bottom is a partial pixel value after performing pixel fine adjustment, and the partial pixel value is calculated by using a detection matrix to obtain a resultImage trend centered at the location:
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16(),0,0(),0,0,0,0,0,0,0,0,0,0,0,0,0,16(),0,0,0,…];therefore, it is;
Two image change pointsAndis a distance of 16 a from the top,the point reaches the first image change pointHas a distance of 2, the difference between the pixel values of the two image change points isIs calculated to obtainCorrection value of pointDue to the fact that,,Thus, after fine adjustment correctionDot pixel value。
And step S60, outputting a target image sequence with improved color depth formed by the unchanged image, the step-change image and the continuous image with abundant details to a video display terminal.
Although the foregoing embodiments describe the steps in the above sequential order, those skilled in the art will understand that, in order to achieve the effect of the present embodiments, the steps may not be executed in such an order, and may be executed simultaneously (in parallel) or in an inverse order, and these simple variations are within the scope of the present invention.
A video image color depth conversion system according to a second embodiment of the present invention includes:
a parameter acquisition module configured to acquire a color depth of a source image sequence to be converted in a videoAnd the color depth of the target image sequence on the video display side;
A color depth conversion module configured to convert the color depth into a color depth based on the color depthAnd said color depthCalculating the color level conversion relation between each frame image in the source image sequence and the corresponding frame image in the target image sequence, and performing color depth conversion of the source image sequence based on the conversion relation to obtain a target image sequence;
a jump judging module configured to be ifIf so, sending the target image sequence with the reduced color depth to an output display module; if it isSkipping to the image frame classification module;
an image frame classification module configured to, for each current frame target image in the target image sequence, base on a color depth of the source image sequenceAnd the color depth of the target image sequenceClassifying the pixel difference value of the current frame target image to obtain a target image sequence consisting of a non-change image, a step change image and a continuous image;
the image fine-tuning module is configured to perform fine tuning on the current pixel after quantization according to the position of the current pixel in the color level, the position of the previous color level and the position of the next color level of each frame of image of the continuous image, so as to obtain a continuous image with rich details;
and the output display module is configured to output and display the target image sequence with reduced color depth or the target image sequence with improved color depth formed by the unchanged image, the step change image and the continuous image with rich details.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and related description of the system described above may refer to the corresponding process in the foregoing method embodiments, and will not be described herein again.
It should be noted that, the video image color depth transformation system provided in the foregoing embodiment is only illustrated by the division of the functional modules, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the modules or steps in the embodiments of the present invention are further decomposed or combined, for example, the modules in the foregoing embodiments may be combined into one module, or may be further split into multiple sub-modules, so as to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps, and are not to be construed as unduly limiting the present invention.
An electronic apparatus according to a third embodiment of the present invention includes:
at least one processor; and
a memory communicatively coupled to at least one of the processors; wherein,
the memory stores instructions executable by the processor for execution by the processor to implement the video image color depth transformation method described above.
A computer-readable storage medium according to a fourth embodiment of the present invention stores computer instructions for being executed by the computer to implement the video image color depth conversion method described above.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes and related descriptions of the storage device and the processing device described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Those of skill in the art would appreciate that the various illustrative modules, method steps, and modules described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that programs corresponding to the software modules, method steps may be located in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. To clearly illustrate this interchangeability of electronic hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as electronic hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The terms "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing or implying a particular order or sequence.
The terms "comprises," "comprising," or any other similar term are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.
Claims (8)
1. A method for color depth conversion of a video image, the method comprising:
step S10, obtaining the color depth of the source image sequence to be converted in the videoAnd the color depth of the target image sequence on the video display side;
Step S20, based on the color depthAnd said color depthCalculating each frame image in the source image sequence and the corresponding frame image in the target image sequenceCarrying out color level conversion relation between images, and carrying out color depth conversion of a source image sequence based on the conversion relation to obtain a target image sequence;
in step S30, ifOutputting the target image sequence with the reduced color depth obtained in the step S20 to the video display end; if it isThen go to step S40;
step S40, for each current frame target image in the target image sequence, based on the color depth of the source image sequenceAnd the color depth of the target image sequenceClassifying the pixel difference value of the current frame target image to obtain a target image sequence consisting of a non-change image, a step change image and a continuous image;
step S50, for each frame of image of the continuous image, based on the current pixelPosition ofConstructing a detection matrix at color depths in a source image and a target imageBased on said detection matrixDetecting the difference between two adjacent pixels asPosition of the pixelAndcalculating the current pixelPosition ofAndandin combination with the pixel differenceCalculating a current pixelFine adjustment correction value ofAnd proceed with the current pixelFine adjustment and correction are carried out to obtain continuous images with rich details;
step S60, outputting a target image sequence with improved color depth formed by the unchanged image, the step-change image and the continuous image with abundant details to a video display end;
wherein the current pixel is calculatedPosition ofAndandin combination with the pixel differenceCalculating a current pixelFine adjustment correction value ofAnd proceed with the current pixelThe fine tuning correction method comprises the following steps:
2. The method for color depth transformation of video images according to claim 1, wherein the step S20 is implemented by calculating the color level transformation relationship between each frame image in the source image sequence and the corresponding frame image in the target image sequence, and the method comprises:
3. The method for color depth conversion of video images according to claim 2, wherein the step S20 is to perform color depth conversion of the source image sequence based on the conversion relationship by:
4. The method for color depth transformation of video images according to claim 1, wherein the step S40 is based on the color depth of the sequence of source imagesAnd the color depth of the target image sequenceAnd classifying the pixel difference value of the current frame target image, wherein the method comprises the following steps:
step S41, based on the color depth of the sequence of source imagesAnd the color depth of the target image sequenceDetermining the detection range of the current frame target image according to the difference value between the target image and the current frame target image, and calculating the difference value between all pixels and adjacent pixels in the detection range through the difference value;
and step S42, dividing the current frame target image into a non-change image, a step change image or a continuous image according to the change trend of the difference value based on the range of the difference value.
6. A video image color depth conversion system, comprising:
a parameter acquisition module configured to acquire a color depth of a source image sequence to be converted in a videoAnd the color depth of the target image sequence on the video display side;
A color depth conversion module configured to convert the color depth into a color depth based on the color depthAnd said color depthCalculating the color level conversion relation between each frame image in the source image sequence and the corresponding frame image in the target image sequence, and performing color depth conversion of the source image sequence based on the conversion relation to obtain a target image sequence;
a jump judging module configured to be ifIf so, sending the target image sequence with the reduced color depth to an output display module; if it isSkipping to the image frame classification module;
an image frame classification module configured to, for each current frame target image in the target image sequence, base on a color depth of the source image sequenceAnd the color depth of the target image sequenceClassifying the pixel difference value of the current frame target image to obtain a target image sequence consisting of a non-change image, a step change image and a continuous image;
an image fine-tuning module configured to, for each frame of image of the successive images, base on the current pixelPosition ofConstructing a detection matrix at color depths in a source image and a target imageBased on said detection matrixDetecting the difference between two adjacent pixels asPosition of the pixelAndcalculating the current pixelPosition ofAndandin combination with the pixel differenceCalculating a current pixelFine adjustment correction value ofAnd proceed with the current pixelFine adjustment and correction are carried out to obtain continuous images with rich details;
the output display module is configured to output and display a target image sequence with reduced color depth or a target image sequence with improved color depth formed by the unchanged image, the step change image and the continuous image with rich details;
wherein the current pixel is calculatedPosition ofAndandin combination with the pixel differenceCalculating a current pixelFine adjustment correction value ofAnd proceed with the current pixelThe fine tuning correction method comprises the following steps:
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to at least one of the processors; wherein,
the memory stores instructions executable by the processor for performing the method of video image color depth transformation of any of claims 1-5.
8. A computer-readable storage medium storing computer instructions for execution by the computer to implement the video image color depth transformation method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110267128.4A CN112689139B (en) | 2021-03-11 | 2021-03-11 | Video image color depth transformation method, system and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110267128.4A CN112689139B (en) | 2021-03-11 | 2021-03-11 | Video image color depth transformation method, system and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112689139A CN112689139A (en) | 2021-04-20 |
CN112689139B true CN112689139B (en) | 2021-05-28 |
Family
ID=75455502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110267128.4A Active CN112689139B (en) | 2021-03-11 | 2021-03-11 | Video image color depth transformation method, system and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112689139B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113411668B (en) * | 2021-06-16 | 2023-03-21 | 亿咖通(湖北)技术有限公司 | Video playing system and method |
CN114244968B (en) * | 2021-12-20 | 2024-01-09 | 北京镁伽科技有限公司 | Image conversion method, image conversion device and image signal generator |
CN114268704A (en) * | 2021-12-20 | 2022-04-01 | 北京镁伽科技有限公司 | Image data conversion method, conversion device, signal generator, and storage medium |
CN114245030A (en) * | 2021-12-20 | 2022-03-25 | 北京镁伽科技有限公司 | Method and device for displaying test image by upper computer and image signal generator |
CN114428869A (en) * | 2021-12-20 | 2022-05-03 | 北京镁伽科技有限公司 | Test image output display method and device and image signal generator |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101765018B (en) * | 2008-12-25 | 2012-01-11 | 中国移动通信集团公司 | Method and apparatus for color depth transformation and image transmission thereafter |
US8520023B2 (en) * | 2009-09-01 | 2013-08-27 | Entertainment Experience Llc | Method for producing a color image and imaging device employing same |
JP5241031B2 (en) * | 2009-12-08 | 2013-07-17 | ルネサスエレクトロニクス株式会社 | Display device, display panel driver, and image data processing device |
CN102592293A (en) * | 2011-01-07 | 2012-07-18 | 北京四维图新科技股份有限公司 | Color reducing method and device of true color image |
CN103458242B (en) * | 2013-07-02 | 2016-12-28 | 京北方信息技术股份有限公司 | Method for compressing image based on color classification Yu cluster |
CN104618701B (en) * | 2015-01-13 | 2017-03-29 | 小米科技有限责任公司 | Image processing method and device, electronic equipment |
-
2021
- 2021-03-11 CN CN202110267128.4A patent/CN112689139B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN112689139A (en) | 2021-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112689139B (en) | Video image color depth transformation method, system and equipment | |
US11900852B2 (en) | Method and device for obtaining display compensation information, and display compensation method and device | |
US10074164B2 (en) | Method and apparatus for adjusting image brightness | |
KR100818988B1 (en) | Method and apparatus for processing image signal | |
US20100259556A1 (en) | Display signal conversion apparatus | |
US7064864B2 (en) | Method and apparatus for compressing reproducible color gamut | |
EP2503784A1 (en) | Image processing device and image processing method | |
JP4363720B2 (en) | A device for creating color palettes | |
JPH03212685A (en) | Apparatus and method for improving resolution of display | |
JP5037311B2 (en) | Color reproduction system and method | |
KR20080021983A (en) | Method and apparatus for image enhancement | |
Tourancheau et al. | Impact of subjective dataset on the performance of image quality metrics | |
US11763762B2 (en) | Image processing method, image processing device, and display device | |
KR20070019438A (en) | Method and apparatus for displaying image signal | |
US20220319113A1 (en) | Tetrahedral interpolation calculation method and apparatus, gamut conversion method and apparatus, and medium | |
CN101471063A (en) | Color signal generating device | |
CN115841794B (en) | OLED display screen detection method and device, display image processing method and device | |
CN108986769B (en) | Method for maximally restoring content of Rec.2020 color gamut by display equipment with color gamut lower than Rec.2020 color gamut | |
CN114267291A (en) | Gray scale data determination method, device and equipment and screen driving board | |
KR100869089B1 (en) | Image processing apparatus | |
KR101999546B1 (en) | Method of correcting colors, machine-implemented method for a multi-primary color matrix display apparatus, and imgae data signal processing apparatus | |
CN114930381A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
JPH08305330A (en) | Error diffusion method, error diffusion device and halftone processing method | |
US20050083355A1 (en) | Apparatus and method for image-processing, and display apparatus | |
CN113271449B (en) | Conversion system, method and equipment for multiple HDR videos |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |