Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Pixel
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Technical== [[Image:ReconstructionsFromPixels.png|right|frame|A pixel does not need to be rendered as a small square. This image shows alternative ways of reconstructing an image from a set of pixel values, using dots, lines, or smooth filtering.]] {{nowrap|A pixel is generally}} thought of as the smallest single component of a [[digital image]]. However, the definition is highly context-sensitive. For example, there can be "[[CMYK|printed pixels]]" in a page, or pixels carried by electronic signals, or represented by digital values, or pixels on a display device, or pixels in a [[digital camera]] (photosensor elements). This list is not exhaustive and, depending on context, synonyms include pel, sample, byte, bit, dot, and spot. ''Pixels'' can be used as a unit of measure such as: 2400 pixels per inch, 640 pixels per line, or spaced 10 pixels apart. [[File:FILE Hipersônica Rio 09 - 8 BIT Game People, Festival Internacional de Linguagem Eletrônica.jpg|thumb|Pixel art]] The measures "[[dots per inch]]" (dpi) and "[[pixels per inch]]" (ppi) are sometimes used interchangeably, but have distinct meanings, especially for printer devices, where dpi is a measure of the printer's density of dot (e.g. ink droplet) placement.<ref>{{cite book | title=The Magic of Digital Printing | author=Derek Doeffinger | publisher=Lark Books | year=2005 | isbn=1-57990-689-3 | page=[https://archive.org/details/isbn_9781579906894/page/24 24] | url=https://archive.org/details/isbn_9781579906894 | url-access=registration | quote=printer dots-per-inch pixels-per-inch. }}</ref> For example, a high-quality photographic image may be printed with 600 ppi on a 1200 dpi inkjet printer.<ref>{{cite web | url = http://www.clarkvision.com/imagedetail/printer-ppi/ | title = Experiments with Pixels Per Inch (PPI) on Printed Image Sharpness | work = ClarkVision.com | date = July 3, 2005 | url-status = live | archive-url = https://web.archive.org/web/20081222080834/http://www.clarkvision.com/imagedetail/printer-ppi/ | archive-date = December 22, 2008 }}</ref> Even higher dpi numbers, such as the 4800 dpi quoted by printer manufacturers since 2002, do not mean much in terms of achievable [[image resolution|resolution]].<ref>{{cite book |author=Harald Johnson |url=https://books.google.com/books?id=U7RTAAAAMAAJ |title=Mastering Digital Printing |publisher=Thomson Course Technology |year=2002 |isbn=978-1-929685-65-3 |edition=1st |page=40}}</ref> The more pixels used to represent an image, the closer the result can resemble the original. The number of pixels in an image is sometimes called the resolution, though resolution has a more specific definition. Pixel counts can be expressed as a single number, as in a "three-megapixel" digital camera, which has a nominal three million pixels, or as a pair of numbers, as in a "640 by 480 display", which has 640 pixels from side to side and 480 from top to bottom (as in a [[Video Graphics Array|VGA]] display) and therefore has a total number of 640 × 480 = 307,200 pixels, or 0.3 megapixels. The pixels, or color samples, that form a digitized image (such as a [[JPEG]] file used on a web page) may or may not be in one-to-one [[bijection|correspondence]] with screen pixels, depending on how a computer displays an image. In computing, an image composed of pixels is known as a ''[[bitmap|bitmapped image]]'' or a ''[[raster graphics|raster image]]''. The word ''raster'' originates from [[raster scan|television scanning]] patterns, and has been widely used to describe similar [[halftone]] printing and storage techniques. ===Sampling patterns=== For convenience, pixels are normally arranged in a [[regular grid|regular two-dimensional grid]]. By using this arrangement, many common operations can be implemented by uniformly applying the same operation to each pixel independently. Other arrangements of pixels are possible, with some sampling patterns even changing the shape (or [[Convolution kernel|kernel]]) of each pixel across the image. For this reason, care must be taken when acquiring an image on one device and displaying it on another, or when converting image data from one pixel format to another. For example: [[Image:Wikipedia ClearType.png|thumb|right|upright=1.15|Text rendered using [[ClearType]] using subpixels]] * [[Liquid crystal display|LCD screens]] typically use a staggered grid, where the red, green, and blue components are sampled at slightly different locations. [[Subpixel rendering]] is a technology which takes advantage of these differences to improve the rendering of text on LCD screens. * The vast majority of color digital cameras use a [[Bayer filter]], resulting in a regular grid of pixels where the ''color'' of each pixel depends on its position on the grid. * A [[clipmap]] uses a hierarchical sampling pattern, where the size of the [[support (mathematics)|support]] of each pixel depends on its location within the hierarchy. * Warped grids are used when the underlying geometry is non-planar, such as images of the earth from space.<ref>{{cite web|url=http://staff.utia.cas.cz/zitova/registration.htm|title=Image registration of blurred satellite images|publisher=staff.utia.cas.cz|date=28 February 2001|access-date=2008-05-09|url-status=live|archive-url=https://web.archive.org/web/20080620023947/http://staff.utia.cas.cz/zitova/registration.htm|archive-date=20 June 2008}}</ref> * The use of non-uniform grids is an active research area, attempting to bypass the traditional [[Nyquist rate|Nyquist limit]].<ref>{{cite journal |title= Image representation by a new optimal non-uniform morphological sampling | doi=10.1016/S0031-3203(99)00158-2 |volume=33 |issue=6 |journal=Pattern Recognition |pages=961–977|year= 2000 |last1= Saryazdi |first1= Saeı̈d |last2= Haese-Coat |first2= Véronique |last3= Ronsin |first3= Joseph | bibcode=2000PatRe..33..961S }}</ref> * Pixels on computer monitors are normally "square" (that is, have equal horizontal and vertical sampling pitch); pixels in other systems are often "rectangular" (that is, have unequal horizontal and vertical sampling pitch – oblong in shape), as are [[digital video]] formats with diverse [[Pixel aspect ratio|aspect ratios]], such as the [[anamorphic widescreen]] formats of the [[Rec. 601]] digital video standard. ===Resolution of computer monitors=== Computer monitors (and TV sets) generally have a fixed [[native resolution]]. What it is depends on the monitor, and size. See below for historical exceptions. Computers can use pixels to display an image, often an abstract image that represents a [[GUI]]. The resolution of this image is called the display resolution and is determined by the [[video card]] of the computer. [[Flat-panel monitor]]s (and TV sets), e.g. [[OLED]] or [[LCD]] monitors, or [[electronic paper|E-ink]], also use pixels to display an image, and have a [[native resolution]], and it should (ideally) be matched to the video card resolution. Each pixel is made up of [[triad (monitors)|triads]], with the number of these triads determining the native resolution. On older, historically available, [[cathode-ray tube|CRT]] monitors the resolution was possibly adjustable (still lower than what modern monitor achieve), while on some such monitors (or TV sets) the beam sweep rate was fixed, resulting in a fixed native resolution. Most CRT monitors do not have a fixed beam sweep rate, meaning they do not have a native resolution at all – instead they have a set of resolutions that are equally well supported. To produce the sharpest images possible on a flat-panel, e.g. OLED or LCD, the user must ensure the display resolution of the computer matches the native resolution of the monitor. ===Resolution of telescopes=== The pixel scale used in [[astronomy]] is the angular distance between two objects on the sky that fall one pixel apart on the detector (CCD or infrared chip). The scale {{math|''s''}} measured in [[radian]]s is the ratio of the pixel spacing {{math|''p''}} and [[focal length]] {{math|''f''}} of the preceding optics, {{math|''s'' {{=}} ''p / f''}}. (The focal length is the product of the [[F-number|focal ratio]] by the diameter of the associated lens or mirror.) Because {{math|''s''}} is usually expressed in units of [[Arcsecond#Symbols and abbreviations|arcseconds]] per pixel, because 1 radian equals (180/π) × 3600 ≈ 206,265 arcseconds, and because focal lengths are often given in millimeters and pixel sizes in micrometers which yields another factor of 1,000, the formula is often quoted as {{math|''s'' {{=}} 206 ''p / f''}}. ===Bits per pixel=== {{Main|Color depth}} The number of distinct colors that can be represented by a pixel depends on the number of bits per pixel (bpp). A 1 bpp image uses 1 bit for each pixel, so each pixel can be either on or off. Each additional bit doubles the number of colors available, so a 2 bpp image can have 4 colors, and a 3 bpp image can have 8 colors: * 1 bpp, 2<sup>1</sup> = 2 colors ([[binary image|monochrome]]) * 2 bpp, 2<sup>2</sup> = 4 colors * 3 bpp, 2<sup>3</sup> = 8 colors * 4 bpp, 2<sup>4</sup> = 16 colors * 8 bpp, 2<sup>8</sup> = 256 colors * 16 bpp, 2<sup>16</sup> = 65,536 colors ("[[Highcolor]]" ) * 24 bpp, 2<sup>24</sup> = 16,777,216 colors ("[[24-bit color|Truecolor]]") For color depths of 15 or more bits per pixel, the depth is normally the sum of the bits allocated to each of the red, green, and blue components. [[Highcolor]], usually meaning 16 bpp, normally has five bits for red and blue each, and six bits for green, as the human eye is more sensitive to errors in green than in the other two primary colors. For applications involving transparency, the 16 bits may be divided into five bits each of red, green, and blue, with one bit left for transparency. A 24-bit depth allows 8 bits per component. On some systems, 32-bit depth is available: this means that each 24-bit pixel has an extra 8 bits to describe its [[Opacity (optics)|opacity]] (for purposes of combining with another image). ===Subpixels=== [[Image:Pixel geometry 01 Pengo.jpg|thumb|upright=0.9|Geometry of color elements of various CRT and LCD displays]] Many display and image-acquisition systems are not capable of displaying or sensing the different [[Channel (digital image)|color channels]] at the same site. Therefore, the pixel grid is divided into single-color regions that contribute to the displayed or sensed color when viewed at a distance. In some displays, such as LCD, LED, and plasma displays, these single-color regions are separately addressable elements, which have come to be known as '''subpixels''', mostly [[RGB]] colors.<ref>{{cite dictionary|url=http://dictionary.reference.com/browse/pixel|title=''Subpixel'' in Science|dictionary=[[dictionary.com]]|access-date=4 July 2015|url-status=live|archive-url=https://web.archive.org/web/20150705170454/http://dictionary.reference.com/browse/pixel|archive-date=5 July 2015}}</ref> For example, [[LCD]]s typically divide each pixel vertically into three subpixels. When the square pixel is divided into three subpixels, each subpixel is necessarily rectangular. In display industry terminology, subpixels are often referred to as ''pixels'', as they are the basic addressable elements in a viewpoint of hardware, and hence ''pixel circuits'' rather than ''subpixel circuits'' is used. [[File:Samsung TV subpixels..jpg|thumb|[[Samsung]] UA40M5860AKCHD TV subpixels]] Most digital camera [[image sensor]]s use single-color sensor regions, for example using the [[Bayer filter]] pattern, and in the camera industry these are known as ''pixels'' just like in the display industry, not ''subpixels''. For systems with subpixels, two different approaches can be taken: * The subpixels can be ignored, with full-color pixels being treated as the smallest addressable imaging element; or * The subpixels can be included in rendering calculations, which requires more analysis and processing time, but can produce apparently superior images in some cases. This latter approach, referred to as [[subpixel rendering]], uses knowledge of [[pixel geometry]] to manipulate the three colored subpixels separately, producing an increase in the apparent resolution of color displays. While [[cathode-ray tube|CRT]] displays use red-green-blue-masked phosphor areas, dictated by a mesh grid called the shadow mask, it would require a difficult calibration step to be aligned with the displayed pixel raster, and so CRTs do not use subpixel rendering. The concept of subpixels is related to [[Sample (graphics)|samples]]. ===Logical pixel<span class="anchor" id="Logical"></span>=== In graphic, web design, and user interfaces, a "pixel" may refer to a fixed length rather than a true pixel on the screen to accommodate different [[pixel densities]]. A typical definition, such as in [[CSS]], is that a "physical" pixel is {{convert|1/96|in|mm}}. Doing so makes sure a given element will display as the same size no matter what screen resolution views it.<ref>{{cite web|url=https://www.w3.org/Style/Examples/007/units.en.html|publisher=w3.org|title=CSS: em, px, pt, cm, in...|date=8 November 2017|access-date=21 December 2017|url-status=live|archive-url=https://web.archive.org/web/20171106223130/http://www.w3.org/Style/Examples/007/units.en.html|archive-date=6 November 2017}}</ref> There may, however, be some further adjustments between a "physical" pixel and an on-screen logical pixel. As screens are viewed at difference distances (consider a phone, a computer display, and a TV), the desired length (a "reference pixel") is scaled relative to a reference viewing distance ({{convert|28|in|cm}} in CSS). In addition, as true screen pixel densities are rarely multiples of 96 dpi, some rounding is often applied so that a logical pixel is an integer amount of actual pixels. Doing so avoids render artifacts. The final "pixel" obtained after these two steps becomes the "anchor" to which all other absolute measurements (e.g. the "centimeter") are based on.<ref>{{cite web |title=CSS Values and Units Module Level 3 |url=https://www.w3.org/TR/css-values-3/#ref-for-px② |website=www.w3.org}}</ref> Worked example, with a {{convert|30|in|cm|adj=on}} 2160p TV placed {{convert|56|in|cm}} away from the viewer: * Calculate the scaled pixel size as {{math|1={{frac|1|96}} in × (56/28) = {{convert|1/48|in|mm}}}}. * Calculate the DPI of the TV as {{math|1=2160 / (30 in / {{sqrt|9^2 + 16^2}} × 16) ≈ 82.61 dpi}}. * Calculate the real-pixel count per logical-pixel as {{math|1={{frac|1|48}} in × 82.61 dpi ≈ 1.721 pixels}}. A browser will then choose to use the 1.721× pixel size, or round to a 2× ratio.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)