Share on Facebook

A binary image is a digital image that has only two possible values for each pixel. [1] Typically the two colors used for a binary image are black and white though any two colors can be used. [1] The color used for the object(s) in the image is the foreground color while the rest of the image is the background color. [1] In the document scanning industry this is often referred to as bi-tonal.

Binary Star System CH Cyg (NASA, Chandra, Hubble, 05/09/10) Project 365 Day 1: Binary Day 71/365 338/365:File corrupted... Motorola MC68705 25Megapixel Composite Small Companion to Brown Dwarf Splitting doubles #1.1: epsilon Lyrae, addendum et erratum Oldest Recorded Supernova (NASA, Chandra, Spitzer, 10/26/11) Fox IT mural in "Het Vossenhol" (Secondary Phase) Splitting doubles #1: epsilon Lyrae Fox IT mural in "Het Vossenhol" (work in progress) From Cash To Digital Wine Glass Globular Cluster 47 Tucanae (NASA, Chandra, 03/06/13) Spectrum of a Black Hole (NASA, Chandra, 05/07/01) Text mode: binary image! Binary Derek B0003450 Binary fission in desmid Micrasterias rotata Binary Derek 2 Binary Wedding Cake Accendo - binary Binary candle E3 2011 - Binary Domain (Sega) E3 2011 - Binary Domain robot statue (Sega) E3 2011 - Binary Domain robot statue (Sega) E3 2011 - Binary Domain robot statue (Sega) Shuffle Gray Chord Enumeration E3 2011 - female soldier from Binary Domain (Sega) binary Duality Determining Number of Subnets and Hosts text 2 images Screen Shot 2013-04-10 at 2.16.34 AM 1024x512 29 order Binary Hippo Gnu Ear - 010111 binary_pops_final binary_pops_02_final Blue Pearl boullee_cenotaphe_model The Bits are Leaking. (96/365) 0x32 0x20 0x32 874 - Techno iPhone Wallpaper - Squiggle Hidden code in AC2 256kbit/16kbit EPROM/SRAM Wafer Scale Integration PSD311 OOOooo... Matrixy. GlitchClock - comp1 Digital Quinn Maya Roos, "Portrait by Speed Disc: Malcolm" (McLaren), at GSK Contemporary, Burlington Gardens, London
Images Source: Flickr. Images licensed under the Creative Commons CC-BY-SA
From Wikipedia, the free encyclopedia
Jump to: navigation, search
A photograph of a Neighborhood Watch sign in black and white (binary)

A binary image is a digital image that has only two possible values for each pixel. [1] Typically the two colors used for a binary image are black and white though any two colors can be used. [1] The color used for the object(s) in the image is the foreground color while the rest of the image is the background color. [1] In the document scanning industry this is often referred to as bi-tonal.

Binary images are also called bi-level or two-level. This means that each pixel is stored as a single bit (0 or 1). The names black-and-white, B&W, monochrome or monochromatic are often used for this concept, but may also designate any images that have only one sample per pixel, such as grayscale images. In Photoshop parlance, a binary image is the same as an image in "Bitmap" mode.

Binary images often arise in digital image processing as masks or as the result of certain operations such as segmentation, thresholding, and dithering. Some input/output devices, such as laser printers, fax machines, and bilevel computer displays, can only handle bilevel images.

A binary image can be stored in memory as a bitmap, a packed array of bits. A 640×480 image requires 37.5 KiB of storage. Because of the small size of the image files, fax machine and document management solutions usually use this format. Most binary images also compress well with simple run-length compression schemes.

Binary images can be interpreted as subsets of the two-dimensional integer lattice Z2; the field of morphological image processing was largely inspired by this view.

Contents

Operations on binary images[edit]

An entire class of operations on binary images operates on a 3×3 window of the image. This contains nine pixels, so 512 possible values. Considering only the central pixel, it is possible to define whether it remains set or unset, based on the surrounding pixels. Examples of such operations are thinning, dilating, finding branchpoints and endpoints, removing isolated pixels, shifting the image a pixel in any direction, and breaking H-connections. Conway's Game of Life is also an example of a 3×3 window operation.

Another class of operations is based on the notion of filtering with a structuring element. The structuring element is binary image, usually small, which is passed over the target image, in a similar manner to a filter in greyscale image processing. Since the pixels can only have two values, the morphological operations are erosion (any unset pixels within the structuring element cause the pixel to be unset) and dilation (any set pixels within the structuring element cause the pixel to be set). Important operations are morphological opening and morphological closing which consist of erosion followed by dilation and dilation followed by erosion, respectively, using the same structuring element. Opening tends to enlarge small holes, remove small objects, and separate objects. Closing retains small objects, removes holes, and joins objects.

A very important characteristic of a binary image is the distance transform. This gives the distance of every set pixel from the nearest unset pixel. The distance transform can be efficiently calculated. It allows efficient computation of Voronoi diagrams, where each pixel in an image is assigned to the nearest of a set of points. It also allows skeletonization, which differs from thinning in that skeletons allow recovery of the original image. The distance transform is also useful for determining the centre of the object, and for matching in image recognition.

Another class of operations is gathering orientation-free metrics. This is often important in image recognition where the orientation of the camera needs to be removed. Orientation-free metrics of a group of connected or surrounded pixels include the Euler number, the perimeter, the area, the compactness, the area of holes, the minimum radius, the maximum radius.

Image segmentation[edit]

Binary images are produced from color images by segmentation. Segmentation is the process of assigning each pixel in the source image to two or more classes. If there are more than two classes then the usual result is several binary images. The simplest form of segmentation is probably Otsu thresholding which assigns pixels to foreground or background based on greyscale intensity. Another method is the watershed algorithm. Edge detection also often creates a binary image with some pixels assigned to edge pixels, and is also a first step in further segmentation.

Skeletons[edit]

Thinning or skeletonization produces binary images which consist of pixel-wide lines. The branchpoints and endpoints can then be extracted, and the image converted to a graph. This is important in image recognition, for example in optical character recognition.

Interpretation[edit]

The interpretation of the pixel's binary value is also device-dependent. Some systems interprets the bit value of 0 as black and 1 as white, while others reversed the meaning of the values. In the TWAIN standard PC interface for scanners and digital cameras, the first flavor is called vanilla and the reversed one chocolate.

Dithering is often used for displaying halftone images.

Image sensor capture binary images[edit]

Oversampled binary image sensor is a new image sensor that is reminiscent of traditional photographic film. Each pixel in the sensor has a binary response, giving only a one-bit quantized measurement of the local light intensity.

See also[edit]

References[edit]

  1. ^ a b c "Conversion of a Color Image to a Binary Image". CoderSource.net. 2005-04-18. Archived from the original on 2008-06-10. Retrieved 2008-06-11. 

External links[edit]

Wikipedia content is licensed under the GNU Free Document License or Creative Commons CC-BY-SA
Loading...
Loading...