Color migration processing method and system
A processing method and processing system technology, applied in the direction of image signal generators, etc., can solve problems such as inability to process video streams, slow speed, etc., and achieve the effect of improving user experience and speeding up
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0053] See figure 1 Is a flowchart of the first embodiment of the color shift processing method provided by the present invention, and the method includes:
[0054] In step S100, video frames are collected and the hue value requirements of the target color are determined.
[0055] In step S101, for each video frame, the hue value of each pixel in the video frame is calculated according to a preset hue calculation formula.
[0056] In step S102, the pixel in the video frame whose hue value does not meet the hue value requirement of the target color is used as the pixel to be converted, and the pixel to be converted is converted into gray pixels according to the preset pixel conversion formula to generate a new video after color shift processing. frame.
[0057] The color shift processing method provided by the embodiment of the present invention judges whether the color of the pixel is the target color that needs to be retained by the hue value of the pixel, which speeds up the color s...
no. 2 example
[0058] See figure 2 , Is a flowchart of the second embodiment of the color shift processing method provided by the present invention, the method includes:
[0059] In step S200, video frames are collected. You can capture the video frame captured by the camera, or capture the video frame in the video file being played. When capturing video frames captured by the camera, you can do it in video mode or in photo preview mode. In other words, the present invention can perform color shift processing on video stream data in real time, and is not limited to performing color shift processing on static pictures.
[0060] In step S201, a reference area on the captured video frame is acquired. Specifically, the reference area selection instruction input by the user may be received. For example, the user can use the marquee tool or the magic wand tool to select a certain size of the typical area with the target color that it wants to retain as the reference area in the video frame image cu...
no. 3 example
[0068] See image 3 , Is a flowchart of the third embodiment of the color shift processing method provided by the present invention, and the method includes:
[0069] In step S300, video frames are collected.
[0070] In step S301, a reference area on the captured video frame is acquired.
[0071] In step S302, the hue value range of the target color is determined according to the obtained hue value distribution of the pixels in the reference area. The method described in steps S303-S306 can be used to calculate the hue value of the pixel.
[0072] In step S303, for each video frame, in the RGB color space, determine the brightness value of each pixel in the video frame in the R color channel, G color channel, and B color channel, and use the maximum brightness value as the pixel's brightness value. The maximum brightness of the pixel, the minimum brightness value is used as the minimum brightness of the pixel. Specifically, determine the brightness value R of each pixel in the R co...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 