Gray level and pixel values

Source: Internet
Author: User

This is the time to think about the difference between grayscale and pixel values, and of course the screen resolution. After looking for information plus your own experience, temporarily get some understanding.

We follow the range from large to small: screen resolution is mainly displayed in the display of the image quality problems, indicating the length and width of the screen on the pixel points, of course, the more pixels, the more colors can be displayed, the display is more clear. Pixels in 2 binary, gray-scale images are generally 8-bit binary, pixels are 32-bit, 24-bit. Grayscale is no color, RGB color components are all equal. If it is a binary grayscale image, its pixel value can only be 0 or 1, we say its grayscale level is 2. Use an example to illustrate: a 256-level grayscale image, RGB (100,100,100) represents a grayscale of 100,rgb (50,50,50) representing a grayscale of 50.

Grayscale refers to the color depth of the midpoint of the black and white image, the range is generally from 0 to 255, White is 255, black is 0, so black and white images are also called grayscale images. Black and white images have the same grayscale value and pixel values. The grayscale value of a color image is a pixel or grayscale value converted to a black-and-white image. Generally obtained by means of weighted average.


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.