The importance of color key in reversing display function

Source: Internet
Author: User

The importance of color key in reversing display function


With the rapid development of the economy, more and more cars, parking spaces in the city are increasingly difficult to find, parking space is also getting smaller, this time reversing technology is very important, the left is BMW, the right is Audi, parking behind may have pedestrian scenes that is too scary, which can not afford Ah, In this case there is not a reversing image is better, of course, the answer is sure, you can see more clearly, auxiliary reversing more secure, now this function in the car at least more than half of all installed it!

Reversing the image is a good thing, how to achieve, how to make a pretty good reversing image display effect? Reversing generally divided into two kinds, one is that the system has not yet up, one is the system has been completely up, the two cases in the treatment is completely different.

The author wrote before a boot shutdown reversing, you can see: http://blog.csdn.net/edsam49/article/details/17305853

There is a reversing image at the same time, in the image can be compared to the exact distance of the object, that is, reversing the image of an object from the rear of the car camera distance, this distance is only a reference, limited by the loading camera height from the ground, as well as the camera in the rear of the car to look down on the angle, But it's better to have a close-up distance warning line to identify it. First, let's take a look at two pictures with a warning line A and B:

A figure is as follows:

Figure B is as follows:

Compare A to B, we take a closer look at A and B are in the same position, is the result of the two scenarios, I think B-chart is more clear than a. Because the author is using a mobile phone to shoot the machine, the effect also has a certain attenuation, the field effect comparison gap is more obvious. First the line of a graph is not clear, the image has a part of the color light a lot, because a diagram is a two physical layer through the alpha mix to achieve, the greater the transparency, the more light the warning line, the image is clearer, the smaller the transparency of course, the image of the line is clear, in short, this method is lossy, Analysis from the principle is lossy.

/*****************************************************************************************************/
Disclaimer: The content of this blog is by http://blog.csdn.net/edsam49 original, reproduced please indicate the source, thank you!
/*****************************************************************************************************/

The B machine also uses two physical images, but uses alpha and color key technology. is not the line is also clear, the image is clear. That is to say that strong alliances, each take advantage, why not! Ha ha!

Colorkey technology is the role of two image overlay mixing, special color to do special filtering, matching the conditions of the area called Match area, in the match area all use another layer of color values, the non-qualifying area is not the match zone, The non-match zone is the normal alpha blend, and of course we can set the alpha value larger for the line to look very clear. The greater the alpha value, the more opaque it is.

Here we discuss is based on the shutdown of the reverse, that is, the system is not up in the case. The system up the reversing processing is more convenient, at least the layer overlay between surface view is a soft algorithm, processing is more convenient, not discussed here.

Let's take a look at a few of the original logos on the Samsung 6410 and the whole Chi A10 at a glance.



How do I use color key? Each platform is similar in principle. See Code:

       _disp_colorkey_t  ckt;        __disp_color_t   Ck_max;        __disp_color_t   Ck_min;ck_min.alpha =0xf0;ck_min.red = 0x00;ck_min.green = 0x00;//Pure black Ck_min.blue = 0x00;ck_ Max.alpha =0xf0;ck_max.red = 0x00;ck_max.green = 0x00;ck_max.blue = 0x00;ckt.ck_min= ck_min;ckt.ck_max= ck_max;ckt.red_ Match_rule = 2;//0/1:always match; 2:match if min<=color<=max; 3:match if Color>max or color<minckt.green_match_rule = 2;ckt.blue_match_rule = 2;

The figure is the black bottom, 32bit, the black part of the RGB is 0, so we filter it out, there are 0 parts of the direct use of the reverse video image of the RGB value, so this effect is very good.

A little progress is not easy, in order to let users get a better effect, the programmer racked his brains, overtime, at the expense of

Efforts to "let every owner in and out of peace", refueling!


The importance of color key in reversing display function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.