Contrast Enhancement Estimation for Digital Image Forensics 00:3

Total Page:16

File Type:pdf, Size:1020Kb

Contrast Enhancement Estimation for Digital Image Forensics 00:3 1 Contrast Enhancement Estimation for Digital Image 2 Forensics 3 4 GE Global Research Center, USA 5 LONGYIN WEN, 6 HONGGANG QI, University of Chinese Academy of Sciences, China 7 SIWEI LYU, University at Albany, State University of New York, USA and Tianjin Normal University, China 8 Inconsistency in contrast enhancement can be used to expose image forgeries. In this work, we describe a 9 new method to estimate contrast enhancement operations from a single image. Our method takes advantage 10 of the nature of contrast enhancement as a mapping between pixel values, and the distinct characteristics it 11 introduces to the image pixel histogram. Our method recovers the original pixel histogram and the contrast 12 enhancement simultaneously from a single image with an iterative algorithm. Unlike previous works, our 13 method is robust in the presence of additive noise perturbations that are used to hide the traces of contrast 14 enhancement. Furthermore, we also develop an effective method to detect image regions undergone contrast 15 enhancement transformations that are different from the rest of the image, and use this method todetect composite images. We perform extensive experimental evaluations to demonstrate the efficacy and efficiency 16 of our method. 17 18 CCS Concepts: • Mathematics of computing → Convex optimization; • Computing methodologies → 19 Scene anomaly detection; • Applied computing → Evidence collection, storage and analysis; 20 Additional Key Words and Phrases: Media Forensics, Contrast Enhancement, Pixel Histogram 21 22 ACM Reference Format: 23 Longyin Wen, Honggang Qi, and Siwei Lyu. 2017. Contrast Enhancement Estimation for Digital Image 24 Forensics. ACM Trans. Multimedia Comput. Commun. Appl. 0, 0, Article 00 ( 2017), 18 pages. https://doi.org/ 25 0000001.0000001 26 27 1 INTRODUCTION 28 The integrity of digital images has been challenged by the development of sophisticated image 29 editing tools (e.g., Adobe Photoshop), which can modify contents of digital images with minimal 30 visible traces. Accordingly, the research field of digital image forensics [11] has experienced rapid 31 developments in the past decade. Important cues to authenticate digital images and detect tamper- 32 ing can be found from various steps in the image capture and processing pipeline, and one of such 33 operations is contrast enhancement. Contrast enhancement is a nonlinear monotonic function of 34 pixel intensity, and it is frequently exploited to enhance image details of over-or under-exposed 35 regions. Commonly used contrast enhancement transforms include gamma correction, sigmoid 36 37 Authors’ addresses: Longyin Wen, GE Global Research Center, 1 Research Circle, Niskayuna, NY, 12309, USA; Honggang Qi, 38 University of Chinese Academy of Sciences, School of Computer and Control Engineering, No.3, ZhongGuanCun NanYiTiao, Beijing, 100049, China; Siwei Lyu, University at Albany, State University of New York, Computer Science Department, 1400 39 Washington Avenue, Albany, NY, 12222, USA, Tianjin Normal University, School of Computer and Information Engineering, 40 No.393, Binshui XiDao, Tianjin, China. 41 42 Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee 43 provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice andthe 44 full citation on the first page. Copyrights for components of this work owned by others than the author(s) must behonored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires 45 prior specific permission and/or a fee. Request permissions from [email protected]. 46 © 2017 Copyright held by the owner/author(s). Publication rights licensed to the Association for Computing Machinery. 47 1551-6857/2017/0-ART00 $15.00 48 https://doi.org/0000001.0000001 49 ACM Transactions on Multimedia Computing, Communications and Applications, Vol. 0, No. 0, Article 00. Publication date: 2017. 00:2 Longyin Wen, Honggang Qi, and Siwei Lyu 50 stretching and histogram equalization [13]. In digital image forensics, recovering contrast enhance- 51 ment is useful to reconstruct the processing history of an image. Also, detecting regions undergone 52 different contrast enhancement can be used to expose a composite image. 53 There have been several methods to estimate contrast enhancement from an image [5, 6, 10, 16, 54 19, 20, 23]. However, these methods have two main limitations. First, most of these algorithms are 55 designed for a specific type of contrast enhancement transform (e.g., gamma correction). Second, 56 these algorithms in general lack robustness with regards to noise perturbations that are added to 57 hide the traces of contrast enhancement [1,7]. 58 In this work, we describe a general method to recover contrast enhancement from a single image. 59 Our method exploits the observations that: (i) although contrast enhancement is typically a nonlin- 60 ear function of pixel values, it is a linear transformation of pixel histogram; (ii) pixel histogram after 61 contrast enhancement tends to have more empty bins; and (iii) the effect of additive noise corre- 62 sponds to a convolution of pixel histogramwith the noise distribution. Accordingly, we formulate 63 the estimation of contrast enhancement as an optimization problem seeking recovered pixel his- 64 togram to be consistent with the observed pixel histogram after contrast enhancement transform 65 is applied, while with minimum number of empty bins. The original problem is intractable, so we 66 further provide a continuous relaxation and an efficient numerical algorithm to solve the relaxed 67 problem. Our formulation can handle the estimation of parametric and nonparametric contrast en- 68 hancement transforms, and is robust to additive noise perturbations. Furthermore, we also develop 69 an effective method to detect regions undergone contrast enhancement operation different from 70 the remaining of the image, and use this method to detect composite images generated by splicing. 71 A preliminary version of this work was published in [22]. The current work extends our pre- 72 vious method in several key aspects. First, this work uses a more stable property of contrast 73 enhancement on pixel histogram based on the number of empty bins, which leads to a new type 74 of regularizer in the optimization objective. Furthermore, we include a new optimization method 75 based on the Wasserstein distance and augmented the original algorithm to handle additive noises. 76 The optimization of the overall problem is solved with a more efficient projected gradient descent 77 method. 78 The rest of this paper is organized as follows. In Section2, we review relevant previous works. In 79 Section3, we elaborate on the relation of contrast enhancement and pixel histogram, and describe 80 our algorithm estimating parametric and nonparametric contrast enhancement transforms. In 81 section4, we present the experimental evaluations of the global contrast enhancement estimation 82 algorithm. Section5 focuses on a local contrast enhancement estimation algorithm based on the 83 global contrast enhancement estimation algorithm and graph cut minimization. Section6 concludes 84 the article with discussion and future works. 85 86 2 BACKGROUND AND RELATED WORKS 87 2.1 Contrast Enhancementas Linear Operator on Pixel Histogram 88 89 Our discussion is for gray-scale images of b bit-pixels. A (normalized) pixel histogram represents b 90 the fractions of pixels taking an individual value out of all 2 different grayscale values, and is b 91 usually interpreted as the probability distribution of a random variable X over f0; ··· ;n = 2 − 1g. 92 A contrast enhancement is a point-wise monotonic transform between pixel values i; j 2 93 f0; ··· ;ng, defined as i = ϕ¹jº := »m¹iº¼, where m¹·º : »0;n¼ 7! »0;n¼ is a continuous non-decreasing 94 function, and »·¼ is the rounding operation that maps a real number to its nearest integer. 95 There are two categories of contrast enhancement transforms. A parametric contrast enhance- 96 ment transform can be determined with a set of parameters. An example of parametric contrast 97 enhancement transform is gamma correction, 98 ACM Transactions on Multimedia Computing, Communications and Applications, Vol. 0, No. 0, Article 00. Publication date: 2017. Contrast Enhancement Estimation for Digital Image Forensics 00:3 γ 99 i j = ϕγ ¹iº := n ; (1) 100 n 101 where γ ≥ 0 is the parameter controlling the shape of the transform. Another often-used parametric 102 contrast enhancement transform is sigmoid stretching, − − 103 2 S i nµ − S nµ 3 104 6 © nα nα ª7 j = ϕα; µ ¹iº := 6n 7 ; (2) 6 ­ ¹ − º − ®7 105 6 ­S n 1 µ − S nµ ®7 6 nα nα 7 106 4 « ¬5 2 » ¼ ¹ º 1 107 where α > 0 and µ 0; 1 are two parameters, and S x = 1+exp(−xº is the sigmoid function. On 108 the other hand, a nonparametric contrast enhancement transform affords no simple parametric 109 form and has to be specified for all i 2 f0; ··· ;ng. An example of the nonparametric contrast 110 enhancement transform is histogram equalization, which maps the pixel histogram of an image to 111 match a uniform distribution over f0; ··· ;ng. ˜ ˜ 112 Consider two images I and I, with the pixels of I obtained from those of I using a contrast 113 enhancement transform ϕ. We introduce two random variables X;Y 2 f0; ··· ;ng as the pixels 114 of I and I˜, hence Y = ϕ¹Xº. Using the probability interpretation of pixel histogram, the contrast 115 enhancement transform between X and Y induces the conditional probability distribution Pr¹Y = 116 jjX = iº = 1j=ϕ¹iº, where 1c is the indicator function whose output is 1 if c is true and zero otherwise. As such, we have 117 Í Pr¹Y = jº = i 1j=ϕ¹iº Pr¹X = iº: (3) 118 We can model a pixel histogram as a vector on the n-dimensional probability simplex, i.e., h 2 119 n+1 T ∆ := fhjh ⪰ 0; 1 h = 1g with hi+1 = Pr¹X = iº for i = 0; ··· ;n, and a contrast enhancement ϕ 120 as an ¹n + 1º × ¹n + 1º matrix Tϕ : Tϕ = 1j=ϕ¹iº.
Recommended publications
  • Package 'Magick'
    Package ‘magick’ August 18, 2021 Type Package Title Advanced Graphics and Image-Processing in R Version 2.7.3 Description Bindings to 'ImageMagick': the most comprehensive open-source image processing library available. Supports many common formats (png, jpeg, tiff, pdf, etc) and manipulations (rotate, scale, crop, trim, flip, blur, etc). All operations are vectorized via the Magick++ STL meaning they operate either on a single frame or a series of frames for working with layers, collages, or animation. In RStudio images are automatically previewed when printed to the console, resulting in an interactive editing environment. The latest version of the package includes a native graphics device for creating in-memory graphics or drawing onto images using pixel coordinates. License MIT + file LICENSE URL https://docs.ropensci.org/magick/ (website) https://github.com/ropensci/magick (devel) BugReports https://github.com/ropensci/magick/issues SystemRequirements ImageMagick++: ImageMagick-c++-devel (rpm) or libmagick++-dev (deb) VignetteBuilder knitr Imports Rcpp (>= 0.12.12), magrittr, curl LinkingTo Rcpp Suggests av (>= 0.3), spelling, jsonlite, methods, knitr, rmarkdown, rsvg, webp, pdftools, ggplot2, gapminder, IRdisplay, tesseract (>= 2.0), gifski Encoding UTF-8 RoxygenNote 7.1.1 Language en-US NeedsCompilation yes Author Jeroen Ooms [aut, cre] (<https://orcid.org/0000-0002-4035-0289>) Maintainer Jeroen Ooms <[email protected]> 1 2 analysis Repository CRAN Date/Publication 2021-08-18 10:10:02 UTC R topics documented: analysis . .2 animation . .3 as_EBImage . .6 attributes . .7 autoviewer . .7 coder_info . .8 color . .9 composite . 12 defines . 14 device . 15 edges . 17 editing . 18 effects . 22 fx .............................................. 23 geometry . 24 image_ggplot .
    [Show full text]
  • The Rehabilitation of Gamma
    The rehabilitation of gamma Charles Poynton poynton @ poynton.com www.poynton.com Abstract Gamma characterizes the reproduction of tone scale in an imaging system. Gamma summarizes, in a single numerical parameter, the nonlinear relationship between code value – in an 8-bit system, from 0 through 255 – and luminance. Nearly all image coding systems are nonlinear, and so involve values of gamma different from unity. Owing to poor understanding of tone scale reproduction, and to misconceptions about nonlinear coding, gamma has acquired a terrible reputation in computer graphics and image processing. In addition, the world-wide web suffers from poor reproduction of grayscale and color images, due to poor handling of nonlinear image coding. This paper aims to make gamma respectable again. Gamma’s bad reputation The left-hand column in this table summarizes the allegations that have led to gamma’s bad reputation. But the reputation is ill-founded – these allegations are false! In the right column, I outline the facts: Misconception Fact A CRT’s phosphor has a nonlinear The electron gun of a CRT is responsible for its nonlinearity, not the phosphor. response to beam current. The nonlinearity of a CRT monitor The nonlinearity of a CRT is very nearly the inverse of the lightness sensitivity is a defect that needs to be of human vision. The nonlinearity causes a CRT’s response to be roughly corrected. perceptually uniform. Far from being a defect, this feature is highly desirable. The main purpose of gamma The main purpose of gamma correction in video, desktop graphics, prepress, JPEG, correction is to compensate for the and MPEG is to code luminance or tristimulus values (proportional to intensity) into nonlinearity of the CRT.
    [Show full text]
  • AN9717: Ycbcr to RGB Considerations (Multimedia)
    YCbCr to RGB Considerations TM Application Note March 1997 AN9717 Author: Keith Jack Introduction Converting 4:2:2 to 4:4:4 YCbCr Many video ICs now generate 4:2:2 YCbCr video data. The Prior to converting YCbCr data to R´G´B´ data, the 4:2:2 YCbCr color space was developed as part of ITU-R BT.601 YCbCr data must be converted to 4:4:4 YCbCr data. For the (formerly CCIR 601) during the development of a world-wide YCbCr to RGB conversion process, each Y sample must digital component video standard. have a corresponding Cb and Cr sample. Some of these video ICs also generate digital RGB video Figure 1 illustrates the positioning of YCbCr samples for the data, using lookup tables to assist with the YCbCr to RGB 4:4:4 format. Each sample has a Y, a Cb, and a Cr value. conversion. By understanding the YCbCr to RGB conversion Each sample is typically 8 bits (consumer applications) or 10 process, the lookup tables can be eliminated, resulting in a bits (professional editing applications) per component. substantial cost savings. Figure 2 illustrates the positioning of YCbCr samples for the This application note covers some of the considerations for 4:2:2 format. For every two horizontal Y samples, there is converting the YCbCr data to RGB data without the use of one Cb and Cr sample. Each sample is typically 8 bits (con- lookup tables. The process basically consists of three steps: sumer applications) or 10 bits (professional editing applica- tions) per component.
    [Show full text]
  • High Dynamic Range Image and Video Compression - Fidelity Matching Human Visual Performance
    HIGH DYNAMIC RANGE IMAGE AND VIDEO COMPRESSION - FIDELITY MATCHING HUMAN VISUAL PERFORMANCE Rafał Mantiuk, Grzegorz Krawczyk, Karol Myszkowski, Hans-Peter Seidel MPI Informatik, Saarbruck¨ en, Germany ABSTRACT of digital content between different devices, video and image formats need to be extended to encode higher dynamic range Vast majority of digital images and video material stored to- and wider color gamut. day can capture only a fraction of visual information visible High dynamic range (HDR) image and video formats en- to the human eye and does not offer sufficient quality to fully code the full visible range of luminance and color gamut, thus exploit capabilities of new display devices. High dynamic offering ultimate fidelity, limited only by the capabilities of range (HDR) image and video formats encode the full visi- the human eye and not by any existing technology. In this pa- ble range of luminance and color gamut, thus offering ulti- per we outline the major benefits of HDR representation and mate fidelity, limited only by the capabilities of the human eye show how it differs from traditional encodings. In Section 3 and not by any existing technology. In this paper we demon- we demonstrate how existing image and video compression strate how existing image and video compression standards standards can be extended to encode HDR content efficiently. can be extended to encode HDR content efficiently. This is This is achieved by a custom color space for encoding HDR achieved by a custom color space for encoding HDR pixel pixel values that is derived from the visual performance data. values that is derived from the visual performance data.
    [Show full text]
  • High Dynamic Range Video
    High Dynamic Range Video Karol Myszkowski, Rafał Mantiuk, Grzegorz Krawczyk Contents 1 Introduction 5 1.1 Low vs. High Dynamic Range Imaging . 5 1.2 Device- and Scene-referred Image Representations . ...... 7 1.3 HDRRevolution ............................ 9 1.4 OrganizationoftheBook . 10 1.4.1 WhyHDRVideo? ....................... 11 1.4.2 ChapterOverview ....................... 12 2 Representation of an HDR Image 13 2.1 Light................................... 13 2.2 Color .................................. 15 2.3 DynamicRange............................. 18 3 HDR Image and Video Acquisition 21 3.1 Capture Techniques Capable of HDR . 21 3.1.1 Temporal Exposure Change . 22 3.1.2 Spatial Exposure Change . 23 3.1.3 MultipleSensorswithBeamSplitters . 24 3.1.4 SolidStateSensors . 24 3.2 Photometric Calibration of HDR Cameras . 25 3.2.1 Camera Response to Light . 25 3.2.2 Mathematical Framework for Response Estimation . 26 3.2.3 Procedure for Photometric Calibration . 29 3.2.4 Example Calibration of HDR Video Cameras . 30 3.2.5 Quality of Luminance Measurement . 33 3.2.6 Alternative Response Estimation Methods . 33 3.2.7 Discussion ........................... 34 4 HDR Image Quality 39 4.1 VisualMetricClassification. 39 4.2 A Visual Difference Predictor for HDR Images . 41 4.2.1 Implementation......................... 43 5 HDR Image, Video and Texture Compression 45 1 2 CONTENTS 5.1 HDR Pixel Formats and Color Spaces . 46 5.1.1 Minifloat: 16-bit Floating Point Numbers . 47 5.1.2 RGBE: Common Exponent . 47 5.1.3 LogLuv: Logarithmic encoding . 48 5.1.4 RGB Scale: low-complexity RGBE coding . 49 5.1.5 LogYuv: low-complexity LogLuv . 50 5.1.6 JND steps: Perceptually uniform encoding .
    [Show full text]
  • Color Calibration Guide
    WHITE PAPER www.baslerweb.com Color Calibration of Basler Cameras 1. What is Color? When talking about a specific color it often happens that it is described differently by different people. The color perception is created by the brain and the human eye together. For this reason, the subjective perception may vary. By effectively correcting the human sense of sight by means of effective methods, this effect can even be observed for the same person. Physical color sensations are created by electromagnetic waves of wavelengths between 380 and 780 nm. In our eyes, these waves stimulate receptors for three different Content color sensitivities. Their signals are processed in our brains to form a color sensation. 1. What is Color? ......................................................................... 1 2. Different Color Spaces ........................................................ 2 Eye Sensitivity 2.0 x (λ) 3. Advantages of the RGB Color Space ............................ 2 y (λ) 1,5 z (λ) 4. Advantages of a Calibrated Camera.............................. 2 5. Different Color Systems...................................................... 3 1.0 6. Four Steps of Color Calibration Used by Basler ........ 3 0.5 7. Summary .................................................................................. 5 0.0 This White Paper describes in detail what color is, how 400 500 600 700 it can be described in figures and how cameras can be λ nm color-calibrated. Figure 1: Color sensitivities of the three receptor types in the human eye The topic of color is relevant for many applications. One example is post-print inspection. Today, thanks to But how can colors be described so that they can be high technology, post-print inspection is an automated handled in technical applications? In the course of time, process.
    [Show full text]
  • Color Spaces
    RGB Color Space 15 Chapter 3: Color Spaces Chapter 3 Color Spaces A color space is a mathematical representation RGB Color Space of a set of colors. The three most popular color models are RGB (used in computer graphics); The red, green, and blue (RGB) color space is YIQ, YUV, or YCbCr (used in video systems); widely used throughout computer graphics. and CMYK (used in color printing). However, Red, green, and blue are three primary addi- none of these color spaces are directly related tive colors (individual components are added to the intuitive notions of hue, saturation, and together to form a desired color) and are rep- brightness. This resulted in the temporary pur- resented by a three-dimensional, Cartesian suit of other models, such as HSI and HSV, to coordinate system (Figure 3.1). The indicated simplify programming, processing, and end- diagonal of the cube, with equal amounts of user manipulation. each primary component, represents various All of the color spaces can be derived from gray levels. Table 3.1 contains the RGB values the RGB information supplied by devices such for 100% amplitude, 100% saturated color bars, as cameras and scanners. a common video test signal. BLUE CYAN MAGENTA WHITE BLACK GREEN RED YELLOW Figure 3.1. The RGB Color Cube. 15 16 Chapter 3: Color Spaces Red Blue Cyan Black White Green Range Yellow Nominal Magenta R 0 to 255 255 255 0 0 255 255 0 0 G 0 to 255 255 255 255 255 0 0 0 0 B 0 to 255 255 0 255 0 255 0 255 0 Table 3.1.
    [Show full text]
  • Enhancement of Hazy Image Using Color Depth Estimation and Visibility Restoration G
    ISSN XXXX XXXX © 2017 IJESC Research Article Volume 7 Issue No.11 Enhancement of Hazy Image Using Color Depth Estimation and Visibility Restoration G. Swetha1, Dr.B.R.Vikram2, Mohd Muzaffar Hussain3 Assistant Professor1, Professor and Principal2, M.Tech Scholar3 Vijay Rural Engineering College, India Abstract: The hazy removal technique divided into three categories such additional information approaches, multiple image approaches, single- image approaches. The first two methods are expense one and high computational complexity. Recently single image approach is used for this de-hazing process because of its flexibility and low cost. The dark channel prior is to estimate scene depth in a single image and it is estimated through get at least one color channel with very low intensity value regard to the patches of an image. The transmission map will be estimated through atmospheric light estimation. The median filter and adaptive gamma correction are used for enhancing transmission to avoid halo effect problem. Then visibility restoration module utilizes average color difference values and enhanced transmission to restore an image with better quality. Keywords: Hazy Image, Contrast Stretching, Bi-orthogonal Wavelet Transform, Depth Estimation, Adaptive Gamma Correction, Color Analysis, Visibility Restoration I. INTRODUCTION: estimation. The median filter and adaptive gamma correction are used for enhancing transmission to avoid halo effect problem. The project presents visibility restoration of single hazy images using color analysis and depth estimation with enhanced on bi- orthogonal wavelet transformation technique. Visibility of outdoor images is often degraded by turbid mediums in poor weather, such as haze, fog, sandstorms, and smoke. Optically, poor visibility in digital images is due to the substantial presence of different atmospheric particles that absorb and scatter light between the digital camera and the captured object.
    [Show full text]
  • An Adaptive Gamma Correction for Image Enhancement Shanto Rahman1*, Md Mostafijur Rahman1, M
    Rahman et al. EURASIP Journal on Image and Video EURASIP Journal on Image Processing (2016) 2016:35 DOI 10.1186/s13640-016-0138-1 and Video Processing RESEARCH Open Access An adaptive gamma correction for image enhancement Shanto Rahman1*, Md Mostafijur Rahman1, M. Abdullah-Al-Wadud2, Golam Dastegir Al-Quaderi3 and Mohammad Shoyaib1 Abstract Due to the limitations of image-capturing devices or the presence of a non-ideal environment, the quality of digital images may get degraded. In spite of much advancement in imaging science, captured images do not always fulfill users’ expectations of clear and soothing views. Most of the existing methods mainly focus on either global or local enhancement that might not be suitable for all types of images. These methods do not consider the nature of the image, whereas different types of degraded images may demand different types of treatments. Hence, we classify images into several classes based on the statistical information of the respective images. Afterwards, an adaptive gamma correction (AGC) is proposed to appropriately enhance the contrast of the image where the parameters of AGC are set dynamically based on the image information. Extensive experiments along with qualitative and quantitative evaluations show that the performance of AGC is better than other state-of-the-art techniques. Keywords: Contrast enhancement, Gamma correction, Image classification 1 Introduction In global enhancement techniques, each pixel of an Since digital cameras have become inexpensive, people image is transformed following a single transformation have been capturing a large number of images in every- function. However, different parts of the image might day life.
    [Show full text]
  • Package 'Adimpro'
    Package ‘adimpro’ January 11, 2021 Version 0.9.3 Date 2021-01-11 Title Adaptive Smoothing of Digital Images Author Karsten Tabelow <[email protected]>, Joerg Polzehl <[email protected]> Maintainer Karsten Tabelow <[email protected]> Depends R (>= 3.2.0) Imports awsMethods (>= 1.1-1), grDevices, methods SystemRequirements Image Magick (for reading non PPM format), dcraw (for reading RAW images). Description Implements tools for manipulation of digital images and the Propagation Separation approach by Polzehl and Spokoiny (2006) <DOI:10.1007/s00440-005-0464-1> for smoothing digital images, see Polzehl and Tabelow (2007) <DOI:10.18637/jss.v019.i01>. License GPL (>= 2) Copyright This package is Copyright (C) 2006-2019 Weierstrass Institute for Applied Analysis and Stochastics. URL http://www.wias-berlin.de/software/imaging/ NeedsCompilation yes Repository CRAN Date/Publication 2021-01-11 22:50:02 UTC R topics documented: adimpro . .2 adimpro.options . .4 adjust.image . .5 awsimage . .6 awsraw ........................................... 10 clip.image . 11 1 2 adimpro colorspace . 12 combine . 14 develop.raw . 15 edges . 17 extract.image . 18 extract.info . 19 extract.ni . 20 imganiso2D . 20 mask.create . 21 plot.adimpro . 22 rimage . 24 rotate.image . 25 segment . 26 show.image . 29 shrink.image . 30 summary.adimpro . 31 write.image . 32 write.raw . 34 Index 35 adimpro I/O Functions Description Create image objects of class "adimpro" from arrays, RAW-format files and other image formats. Usage read.raw(filename, type="PPM", wb="CAMERA",cspace="Adobe",interp="Bilinear",maxrange=TRUE, rm.ppm=TRUE, compress=TRUE) read.image(filename, compress=TRUE) make.image(x,compress=TRUE, gammatype="None", whitep = "D65", cspace="Adobe", scale="Original",xmode="RGB") Arguments filename file name x Array or matrix containing RGB or greyscale values in the range (0,1) or (0,65535).
    [Show full text]
  • New Features in Mpdf V6.0
    NewNew FeaturesFeatures inin mPDFmPDF v6.0v6.0 Images Gamma correction in PNG images Some PNG images contain a source Gamma correction value to maintain consistent colour display between devices. mPDF will adjust for gamma correction if a PNG image has a source gAMA entry <> 2.2 Gamma correction is not supported in GIF files. For more information, and sample image files see http://www.libpng.org/pub/png/colorcube/gamma-consistency-test.html Below are some of the example images, displayed on a background of HTML colour, such that when displayed correctly they should appear as one solid block of the same colour: iCCP PNG images sRGB PNG image Unlabelled Unlabelled PNG image PNG image ("gamma 1.0" pixel ("absolute GIF image PNG image with gamma with gamma data, linear ICC colorimetric" (the usual (no gamma 1/1.6 1/2.2 profiles: rendering intent kind) info) (i.e. 0.625) (i.e. 0.4545) "iCCPGamma 1.0 "sRGB") profile") NB View this page as HTML in your browser and see the difference between browsers! Note that there are inconsistencies between browsers, so the image display varies considerably on the system you are using. There are also image errors which are not always apparent. The image below is taken from http://www.w3.org/TR/CSS21/intro.html and has the gAMA value set to 1.45454 This is probably unintentional and should be 0.45454 which is 1 / 2.2 The image appears differently on IE9/Safari versus Firefox/Opera. To quote from http://www.libpng.org/pub/png/spec/1.2/PNG-Encoders.html "If the source file's gamma value is greater than 1.0, it is probably a display system exponent,....and you should use its reciprocal for the PNG gamma." Some applications seem to ignore this, displaying the image how it was probably intended.
    [Show full text]
  • Lossless Compression of Mosaic Images with Convolutional Neural Network Prediction
    Lossless Compression of Mosaic Images with Convolutional Neural Network Prediction Seyed Mehdi Ayyoubzadeh Xiaolin Wu McMaster University McMaster University Hamilton, ON Hamilton, ON [email protected] [email protected] Abstract precedented restoration performances [16, 12, 11, 19]. But in order to produce the best results, these convolutional neu- We present a CNN-based predictive lossless compres- ral networks need to take the original mosaic image data as sion scheme for raw color mosaic images of digital cam- input; in other words, any information loss caused by DIP eras. This specialized application problem was previously has negative impact on the final inference result. For this understudied but it is now becoming increasingly impor- reason, professional SLR cameras and many of high end tant, because modern CNN methods for image restoration smartphones offer a lossless mode, in which users can ac- tasks (e.g., superresolution, low lighting enhancement, de- cess to raw mosaic sensor readings. However, if not com- blurring), must operate on original raw mosaic images to pressed, storing raw mosaic images is not practical due to obtain the best possible results. The key innovation of this their sheer size. This gives rise to the subject of this pa- paper is a high-order nonlinear CNN predictor of spatial- per, the lossless compression of CFA mosaic images. The spectral mosaic patterns. The deep learning prediction above stated problem has been hardly studied in any depth. can model highly complex sample dependencies in spatial- Technically, losslessly compressing mosaic images is much spectral mosaic images more accurately and hence remove more difficult than lossless compression of conventional im- statistical redundancies more thoroughly than existing im- ages, because the spatial-spectral interleaving of pixels gen- age predictors.
    [Show full text]