Digital Still Imaging: First Generation

Digital Still Imaging: First Generation

DIGITAL STILL IMAGING: FIRST GENERATION Fernando Pereira Instituto Superior Técnico Multimedia Communication, Fernando Pereira, 2020/2021 More than 2 billion photos shared on social media per day Over 100 million are “selfies” Multimedia Communication, Fernando Pereira, 2020/2021 Multilevel Photographic Image Coding (gray and colour) OBJECTIVE Efficient representation of multilevel photographic images (still pictures) for storage and transmission. Multimedia Communication, Fernando Pereira, 2020/2021 Applications Digital cameras Image databases, e.g. museums, maps Desktop publishing Colour fax Medical images ... and Digital cinema (!) Multimedia Communication, Fernando Pereira, 2020/2021 The Image Representation Problem ... A image is represented as a set of MN RGB or luminance and chrominance samples (spatial sampling and quantization) with a certain number of bits per sample, P (PCM coding). Thus, the total number of bits (3 M N P) - and so the memory and bandwidth – necessary to PCM digitally represent an image is HUGE !!! This is the so-called RAW / ORIGINAL image ! Multimedia Communication, Fernando Pereira, 2020/2021 Image (Source) Coding Objective Image coding deals with the efficient representation (compression) of images, satisfying the relevant requirements. And these requirements keep changing, e.g., compression efficiency, error resilience, random access, interaction, editing, to address new applications and functionalities ... Multimedia Communication, Fernando Pereira, 2020/2021 Where does Compression come from ? REDUNDANCY – Regards the similarities, correlation and predictability of samples and symbols corresponding to the image/audio/video data. -> redundancy reduction does not involve any information loss, implying it is a reversible process –> lossless coding IRRELEVANCY – Regards the part of the information which is imperceptible for the visual or auditory human systems. -> irrelevancy reduction involves removing non-redundant information, implying it is an irreversible process -> lossy coding Source coding exploits these two concepts: for this, it is necessary to know the source statistics and the human visual/auditory systems characteristics. Multimedia Communication, Fernando Pereira, 2020/2021 Source Coding: Original Data, Symbols and Bits Original Encoder digital data, (Compressed/ i.e. PCM Symbols samples fat) bits Data Model Entropy Coder Source Coding implies two main steps: Data modeling – By adopting a more powerful data representation model the raw PCM symbols are converted into more efficient and ‘sophisticated’ symbols, notably exploiting spatial and temporal redundancies as well as irrelevancy, targeting the relevant representation requirements. Entropy coding – By exploiting the statistical characteristics of the symbols produced by the data modeling process, a set of bits is produced. Multimedia Communication, Fernando Pereira, 2020/2021 Reduced Colour Sensitivity: Subsampling 4:4:4 – Luminance and each chrominance with the same number of samples; targets very high quality, professional applications, studios, etc. 4:2:2 – Luminance with twice the samples of each chrominance (chrominances with same number of lines but half the samples per line); still targets rather high-quality applications although it is not much used. 4:2:0 – Luminance with 4 times the samples of each chrominance (chrominances with half the number of lines and half the samples per line); targets all types of applications, notably digital TV, mobile video streaming, and Internet video. Multimedia Communication, Fernando Pereira, 2020/2021 Combining Luminance and Chrominance Luminance, Y Chrominances, U,V YUV or RGB Multimedia Communication, Fernando Pereira, 2020/2021 Image Coding: Multiple Solutions DCT-based transform coding, e.g. JPEG standard Fractal-based coding Vector quantization coding Wavelet-based coding, e.g. JPEG 2000 standard Lapped biorthogonal-based transform coding, e.g. JPEG XR standard … Multimedia Communication, Fernando Pereira, 2020/2021 ~1990 The JPEG Standard (Joint Photographic Experts Group, joint ISO & ITU-T) Multimedia Communication, Fernando Pereira, 2020/2021 Objective Definition of a generic compression standard for multilevel photographic images considering the requirements of most applications. Multimedia Communication, Fernando Pereira, 2020/2021 After 25 Years, JPEG Still Rocks … Source: KPCB Internet Trends 2016 (June 2016) Multimedia Communication, Fernando Pereira, 2020/2021 JPEG Standard Major Requirements ≈1985 Efficiency - The standard must be based on the most efficient compression techniques, notably for high quality (lowest rate for the target quality). Compression/Quality Tunable - The standard shall allow tuning the quality versus compression efficiency. Generic Content - The standard must be applicable to any type of multilevel photographic images without restrictions in resolution, aspect ratio, color space, content, etc. Low Complexity - The standard must be implementable with a reasonable complexity; notably, its software implementation on a large range of CPUs must be possible. Functional Flexibility - The standard must provide various relevant operation modes, notably sequential, progressive, lossless and hierarchical. Multimedia Communication, Fernando Pereira, 2020/2021 JPEG Elements Encoder Coded bitstream v Tables Original digital image Decoder Coded bitstream v Tables Decoded digital image Multimedia Communication, Fernando Pereira, 2020/2021 What Images can JPEG Encode ? Size between 1×1 and 65535×65535 1 to 255 colour components or spectral bands (typically 3, YCRCB or RGB) Each component, Ci, consists of a matrix with xi columns and yi lines 8 or 12 bits per sample for (lossy) DCT-based coding 2 to 16 bits per sample for lossless compression Multimedia Communication, Fernando Pereira, 2020/2021 Types of JPEG Coding LOSSLESS - The image is reconstructed with no losses, this means it is mathematically equal to the original; compression factors of about 2-3 may be achieved, depending on the image content. LOSSY - The image is reconstructed with losses but, if desired, with a very high fidelity to the original (transparent coding); this type of coding allows achieving higher compression factors, e.g. 10, 20 or more; in the JPEG standard, this type of coding is based on the Discrete Cosine Transform (DCT). Multimedia Communication, Fernando Pereira, 2020/2021 JPEG Baseline Process The most used JPEG coding solution is DCT-based (lossy), called BASELINE SEQUENTIAL PROCESS and it is appropriate to inumerous applications. This process is mandatory for all systems claiming JPEG compliance. Multimedia Communication, Fernando Pereira, 2020/2021 DCT-Based Coding bits symbols (0s and 1s) PCM samples Data Entropy Model Coder The joint action of the various JPEG Baseline encoder modules targets the reduction of the redundancy and irrelevancy contained in the images. The first encoder part (data modeling) targets the generation of a signal without memory (elimination of spatial redundancy) and without irrelevancy. The final entropy coding module targets the exploitation of the symbol statistics to minimize the rate to transmit (elimination of statistical redundancy). Multimedia Communication, Fernando Pereira, 2020/2021 DCT-Based Image Coding Statistical Redundancy Spatial Redundancy Quantization tables Coding tables Block DCT Quantization Entropy splitting coder ≠ Transmission Irrelevancy or storage Quantization Coding tables tables Inverse Block Entropy IDCT quantization assembling decoder Multimedia Communication, Fernando Pereira, 2020/2021 What is Really a 8×8 Block ... In terms of samples, all 8×8 blocks cost the same number of bits whatever its content ! Even if the block is totally uniform, it still costs 8×8×8 = 512 bits to say 64 times the same thing! Multimedia Communication, Fernando Pereira, 2020/2021 What is Transformed ? The Samples ! Transform is applied to each image component, block after block ... 87 89 101 106 118 130 142 155 85 91 101 105 116 129 135 149 86 92 96 105 112 128 131 144 Same process (in 92 88 102 101 116 129 135 147 parallel) for Y = 88 94 94 98 113 122 130 139 luminance and the 88 95 98 97 113 119 133 141 92 99 98 106 107 118 135 145 chrominances ! 89 95 98 107 104 112 130 144 Multimedia Communication, Fernando Pereira, 2020/2021 Redundancy: What is It ? 8×8 samples 8×8 samples 8×8 samples All blocks above have the same price (8×8×8=512) in the PCM/spatial/sample domain because redundancy is not exploited ! In the compressed domain, simpler, more redundant images/blocks will be cheaper and vice-versa because more ‘information’ has to be paid with more symbols and bits. Multimedia Communication, Fernando Pereira, 2020/2021 JPEG Block Coding/Decoding Sequence Multimedia Communication, Fernando Pereira, 2020/2021 The Block Effect … Multimedia Communication, Fernando Pereira, 2020/2021 Why do we Transform Blocks ? Basically, the transform represents the original signal in another domain where there is less spatial redundancy. The full exploitation of the spatial redundancy in the image would require applying the transform to blocks as big as possible, ideally to the full image; however, the redundancy is rather ‘local’ ... The computational effort associated to the transform grows quickly with the size of the block used … and the added spatial redundancy decreases … So some trade-off is needed ... Applying the transform to blocks, typically of 8×8 samples, was a good trade-off between the exploitation of the

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    101 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us