Raster Graphics: Understanding the Foundations of Raster Graphics in Computer Vision
By Fouad Sabry
()
About this ebook
What is Raster Graphics
In computer graphics and digital photography, a raster graphic represents a two-dimensional picture as a rectangular matrix or grid of pixels, viewable via a computer display, paper, or other display medium. A raster is technically characterized by the width and height of the image in pixels and by the number of bits per pixel. Raster images are stored in image files with varying dissemination, production, generation, and acquisition formats.
How you will benefit
(I) Insights, and validations about the following topics:
Chapter 1: Raster graphics
Chapter 2: Pixel
Chapter 3: RGB color model
Chapter 4: Vector graphics
Chapter 5: Dot matrix
Chapter 6: Rasterisation
Chapter 7: Framebuffer
Chapter 8: Truevision TGA
Chapter 9: Dots per inch
Chapter 10: Color depth
(II) Answering the public top questions about raster graphics.
(III) Real world examples for the usage of raster graphics in many fields.
Who this book is for
Professionals, undergraduate and graduate students, enthusiasts, hobbyists, and those who want to go beyond basic knowledge or information for any kind of Raster Graphics.
Read more from Fouad Sabry
Related to Raster Graphics
Titles in the series (100)
Image Histogram: Unveiling Visual Insights, Exploring the Depths of Image Histograms in Computer Vision Rating: 0 out of 5 stars0 ratingsNoise Reduction: Enhancing Clarity, Advanced Techniques for Noise Reduction in Computer Vision Rating: 0 out of 5 stars0 ratingsGamma Correction: Enhancing Visual Clarity in Computer Vision: The Gamma Correction Technique Rating: 0 out of 5 stars0 ratingsUnderwater Computer Vision: Exploring the Depths of Computer Vision Beneath the Waves Rating: 0 out of 5 stars0 ratingsHuman Visual System Model: Understanding Perception and Processing Rating: 0 out of 5 stars0 ratingsColor Space: Exploring the Spectrum of Computer Vision Rating: 0 out of 5 stars0 ratingsRetinex: Unveiling the Secrets of Computational Vision with Retinex Rating: 0 out of 5 stars0 ratingsHomography: Homography: Transformations in Computer Vision Rating: 0 out of 5 stars0 ratingsInpainting: Bridging Gaps in Computer Vision Rating: 0 out of 5 stars0 ratingsAnisotropic Diffusion: Enhancing Image Analysis Through Anisotropic Diffusion Rating: 0 out of 5 stars0 ratingsComputer Vision: Exploring the Depths of Computer Vision Rating: 0 out of 5 stars0 ratingsActive Contour: Advancing Computer Vision with Active Contour Techniques Rating: 0 out of 5 stars0 ratingsTone Mapping: Tone Mapping: Illuminating Perspectives in Computer Vision Rating: 0 out of 5 stars0 ratingsContour Detection: Unveiling the Art of Visual Perception in Computer Vision Rating: 0 out of 5 stars0 ratingsVisual Perception: Insights into Computational Visual Processing Rating: 0 out of 5 stars0 ratingsAdaptive Filter: Enhancing Computer Vision Through Adaptive Filtering Rating: 0 out of 5 stars0 ratingsJoint Photographic Experts Group: Unlocking the Power of Visual Data with the JPEG Standard Rating: 0 out of 5 stars0 ratingsHistogram Equalization: Enhancing Image Contrast for Enhanced Visual Perception Rating: 0 out of 5 stars0 ratingsRadon Transform: Unveiling Hidden Patterns in Visual Data Rating: 0 out of 5 stars0 ratingsAffine Transformation: Unlocking Visual Perspectives: Exploring Affine Transformation in Computer Vision Rating: 0 out of 5 stars0 ratingsCanny Edge Detector: Unveiling the Art of Visual Perception Rating: 0 out of 5 stars0 ratingsComputer Stereo Vision: Exploring Depth Perception in Computer Vision Rating: 0 out of 5 stars0 ratingsFilter Bank: Insights into Computer Vision's Filter Bank Techniques Rating: 0 out of 5 stars0 ratingsColor Appearance Model: Understanding Perception and Representation in Computer Vision Rating: 0 out of 5 stars0 ratingsHough Transform: Unveiling the Magic of Hough Transform in Computer Vision Rating: 0 out of 5 stars0 ratingsColor Matching Function: Understanding Spectral Sensitivity in Computer Vision Rating: 0 out of 5 stars0 ratingsHadamard Transform: Unveiling the Power of Hadamard Transform in Computer Vision Rating: 0 out of 5 stars0 ratingsColor Model: Understanding the Spectrum of Computer Vision: Exploring Color Models Rating: 0 out of 5 stars0 ratingsRandom Sample Consensus: Robust Estimation in Computer Vision Rating: 0 out of 5 stars0 ratingsGeometric Hashing: Efficient Algorithms for Image Recognition and Matching Rating: 0 out of 5 stars0 ratings
Related ebooks
Digital Raster Graphic: Unveiling the Power of Digital Raster Graphics in Computer Vision Rating: 0 out of 5 stars0 ratingsRaster Graphics Editor: Transforming Visual Realities: Mastering Raster Graphics Editors in Computer Vision Rating: 0 out of 5 stars0 ratingsVector Graphics Editor: Empowering Visual Creation with Advanced Algorithms Rating: 0 out of 5 stars0 ratingsVolume Rendering: Exploring Visual Realism in Computer Vision Rating: 0 out of 5 stars0 ratingsVector Graphics: Mastering Vector Graphics in Computer Vision Rating: 0 out of 5 stars0 ratingsScanline Rendering: Exploring Visual Realism Through Scanline Rendering Techniques Rating: 0 out of 5 stars0 ratingsTexture Mapping: Exploring Dimensionality in Computer Vision Rating: 0 out of 5 stars0 ratingsComputer Stereo Vision: Exploring Depth Perception in Computer Vision Rating: 0 out of 5 stars0 ratingsShader: Exploring Visual Realms with Shader: A Journey into Computer Vision Rating: 0 out of 5 stars0 ratingsHeightmap: Exploring Terrain Representation through Computer Vision Rating: 0 out of 5 stars0 ratingsGeometric Primitive: Exploring Foundations and Applications in Computer Vision Rating: 0 out of 5 stars0 ratingsVertex Computer Graphics: Exploring the Intersection of Vertex Computer Graphics and Computer Vision Rating: 0 out of 5 stars0 ratingsMesh Generation: Advances and Applications in Computer Vision Mesh Generation Rating: 0 out of 5 stars0 ratingsProcedural Surface: Exploring Texture Generation and Analysis in Computer Vision Rating: 0 out of 5 stars0 ratingsRay Tracing Graphics: Exploring Photorealistic Rendering in Computer Vision Rating: 0 out of 5 stars0 ratingsPolygon Computer Graphics: Exploring the Intersection of Polygon Computer Graphics and Computer Vision Rating: 0 out of 5 stars0 ratingsColor Profile: Exploring Visual Perception and Analysis in Computer Vision Rating: 0 out of 5 stars0 ratingsDigital Image Processing: Fundamentals and Applications Rating: 0 out of 5 stars0 ratingsComputer Vision Graph Cuts: Exploring Graph Cuts in Computer Vision Rating: 0 out of 5 stars0 ratingsImage Compression: Efficient Techniques for Visual Data Optimization Rating: 0 out of 5 stars0 ratingsLine Drawing Algorithm: Mastering Techniques for Precision Image Rendering Rating: 0 out of 5 stars0 ratingsArchitecture-Aware Optimization Strategies in Real-time Image Processing Rating: 0 out of 5 stars0 ratingsRendering Computer Graphics: Exploring Visual Realism: Insights into Computer Graphics Rating: 0 out of 5 stars0 ratingsColor Management System: Optimizing Visual Perception in Digital Environments Rating: 0 out of 5 stars0 ratingsHuman Visual System Model: Understanding Perception and Processing Rating: 0 out of 5 stars0 ratingsBump Mapping: Exploring Depth in Computer Vision Rating: 0 out of 5 stars0 ratingsImage Based Modeling and Rendering: Exploring Visual Realism: Techniques in Computer Vision Rating: 0 out of 5 stars0 ratingsImage Segmentation: Unlocking Insights through Pixel Precision Rating: 0 out of 5 stars0 ratingsContextual Image Classification: Understanding Visual Data for Effective Classification Rating: 0 out of 5 stars0 ratingsVoxel: Exploring the Depths of Computer Vision with Voxel Technology Rating: 0 out of 5 stars0 ratings
Intelligence (AI) & Semantics For You
101 Midjourney Prompt Secrets Rating: 3 out of 5 stars3/5Midjourney Mastery - The Ultimate Handbook of Prompts Rating: 5 out of 5 stars5/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5ChatGPT For Dummies Rating: 0 out of 5 stars0 ratingsThe Secrets of ChatGPT Prompt Engineering for Non-Developers Rating: 5 out of 5 stars5/5Killer ChatGPT Prompts: Harness the Power of AI for Success and Profit Rating: 2 out of 5 stars2/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5ChatGPT Rating: 3 out of 5 stars3/5A Quickstart Guide To Becoming A ChatGPT Millionaire: The ChatGPT Book For Beginners (Lazy Money Series®) Rating: 4 out of 5 stars4/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratings10 Great Ways to Earn Money Through Artificial Intelligence(AI) Rating: 5 out of 5 stars5/5What Makes Us Human: An Artificial Intelligence Answers Life's Biggest Questions Rating: 5 out of 5 stars5/5AI for Educators: AI for Educators Rating: 5 out of 5 stars5/5Dancing with Qubits: How quantum computing works and how it can change the world Rating: 5 out of 5 stars5/5Chat-GPT Income Ideas: Pioneering Monetization Concepts Utilizing Conversational AI for Profitable Ventures Rating: 4 out of 5 stars4/5TensorFlow in 1 Day: Make your own Neural Network Rating: 4 out of 5 stars4/5Artificial Intelligence: A Guide for Thinking Humans Rating: 4 out of 5 stars4/5ChatGPT For Fiction Writing: AI for Authors Rating: 5 out of 5 stars5/5The Business Case for AI: A Leader's Guide to AI Strategies, Best Practices & Real-World Applications Rating: 0 out of 5 stars0 ratings
Reviews for Raster Graphics
0 ratings0 reviews
Book preview
Raster Graphics - Fouad Sabry
Chapter 1: Raster graphics
In computer graphics and digital photography, a raster graphic portrays a two-dimensional image as a rectangular matrix or grid of square pixels that can be viewed on a computer monitor, paper, or other display medium. Technically, a raster is defined by the image's width and height in pixels and the number of bits per pixel. Raster pictures are stored in image files whose distribution, creation, generation, and acquisition formats vary.
In the printing and prepress industries, raster images are referred to as contones (from continuous tones). In digital systems, however, line art is typically implemented as vector graphics.
Numerous raster manipulations transfer directly onto the mathematical formalisms of linear algebra, where the structure of mathematical matrices is of major significance.
The term raster
comes from the Latin rastrum (a rake), which is derived from the verb radere (to sweep) (to scrape). It derives from the raster scan of cathode ray tube (CRT) television monitors, which paint the image one line at a time by magnetically or electrostatically guiding a focussed electron beam. It can also be used to refer to a rectangular grid of pixels. Currently, the term rastrum refers to a tool for making musical staff lines.
The tessellation of a plane into a two-dimensional array of squares, each called a cell or pixel, is the fundamental approach underpinning the raster data model (from picture element
). In digital photography, the plane is the projected visual field onto the image sensor; in computer art, it is a virtual canvas; and in geographic information systems, it is a projection of Earth's surface. The resolution or support, the size of each square pixel, remains consistent across the grid. A gridding method could provide raster or grid-based data.
For each pixel, a single numeric value is then saved. This value is a visible color for the majority of photos, but alternative measurements are possible, including numerical codes for qualitative categories. Each raster grid has a unique pixel format, which specifies the data type of each integer. Common pixel formats include binary, grayscale, paletted, and full-color, where color depth controls the accuracy of the colors displayed and color space determines the range of color coverage (which is often less than the full range of human color vision). The majority of contemporary color raster formats express color with 24 bits (nearly 16 million different colors) and 8 bits (0–255) per color channel (red, green, and blue). Digital sensors used in remote sensing and astronomy are frequently capable of detecting and storing wavelengths beyond the visible spectrum; the large CCD bitmapped sensor at the Vera C. Rubin Observatory captures 3.2 gigapixels in a single image (6.4 GB raw) over six color channels that exceed the spectral range of human color vision.
The majority of computer images are saved in raster graphics formats or their compressed variants, such as GIF, JPEG, and PNG, which are widely used on the Internet. A raster data format is built on a (often rectangular, square-based) tessellation of the 2D plane into cells with a single value each. The two-dimensional array must be serialized to store the data in a file. In a row-major format, the cells along the first (typically top) row are listed from left to right, followed immediately by those of the second row, and so on.
In the illustration on the right, the cells of tessellation A are superimposed on the point pattern B, yielding an array C of quadrant counts reflecting the number of points in each cell. For visualization purposes, a lookup table was utilized to color each cell in image D. The numbers are presented as a serial row-major array:
1 3 0 0 1 12 8 0 1 4 3 3 0 2 0 2 1 7 4 1 5 4 2 2 0 3 1 2 2 2 2 3 0 5 1 9 3 3 3 4 5 0 8 0 2 4 3 2 8 4 3 2 2 7 2 3 2 10 1 5 2 1 3 7
To reconstruct the two-dimensional grid, the file must include a header section that specifies at least the number of columns and the pixel datatype (with the number of bits or bytes per value) so that the reader knows where each value stops and where to begin reading the next one. The number of rows, georeferencing parameters for geographic data, and other metadata elements, such as those provided by the Exif standard, may also be included in headers.
Raster grids with a high resolution include a big number of pixels and hence require a large quantity of memory. This has resulted in numerous techniques for compressing large data volumes into smaller files. The most prevalent approach is to search for patterns or trends in the pixel values and then save a parameterized version of the pattern in place of the original data. Run-length encoding (RLE), JPEG, LZ (the basis for PNG and ZIP), Lempel–Ziv–Welch (LZW) (the basis for GIF), and others are common raster compression algorithms.
Run length encoding, for instance, searches the array for repeated values and replaces them with the value and the number of times it appears. Therefore, the above raster would be represented as:
This technique is particularly effective when there are huge areas of equal values, such as in a line drawing; however, in an image, where pixels are typically slightly different from their neighbors, the RLE file could be up to twice as large as the original.
Some compression methods, including RLE and LZW, are lossless, meaning that the original pixel values may be completely reproduced from the compressed data. Other techniques, such as JPEG, are lossy since the parameterized patterns are merely an approximation of the original pixel values, and the latter can therefore only be approximated from the compressed data.
Software can rasterize (convert into pixels) vector images (line work) and vectorize (convert raster pictures into vector graphics) raster images. In both instances, some information is lost, although certain vectorization procedures, such as optical character recognition, can reconstruct pertinent information.
In the 1920s, the first mechanical televisions utilized rasterization concepts. Electronic television based on cathode-ray tube screens are raster scanned with horizontal rasters and raster lines painted left to right and top to bottom, respectively.
Modern flat-panel displays, such as LED monitors, continue to employ a raster technique. Each pixel on the screen correlates directly to a tiny number of bits in memory. Simply scanning through pixels and coloring them according to each set of bits refreshes the display. The refresh operation, which is time-sensitive, is frequently implemented by dedicated circuitry, which is frequently a component of a graphics processing unit.
Using this method, the computer is equipped with a section of memory that stores all the data to be presented. The central