Digital image processing
In computer science, digital image processing is the use of computer algorithms to perform image processing on digital images.^{[1]} As a subcategory or field of digital signal processing, digital image processing has many advantages over analog image processing. It allows a much wider range of algorithms to be applied to the input data and can avoid problems such as the buildup of noise and signal distortion during processing. Since images are defined over two dimensions (perhaps more) digital image processing may be modeled in the form of multidimensional systems.
Contents
History
Many of the techniques of digital image processing, or digital picture processing as it often was called, were developed in the 1960s at the Jet Propulsion Laboratory, Massachusetts Institute of Technology, Bell Laboratories, University of Maryland, and a few other research facilities, with application to satellite imagery, wirephoto standards conversion, medical imaging, videophone, character recognition, and photograph enhancement.^{[2]} The cost of processing was fairly high, however, with the computing equipment of that era.
That changed in the 1970s, when digital image processing proliferated as cheaper computers and dedicated hardware became available. Images then could be processed in real time, for some dedicated problems such as television standards conversion. As generalpurpose computers became faster, they started to take over the role of dedicated hardware for all but the most specialized and computerintensive operations. With the fast computers and signal processors available in the 2000s, digital image processing has become the most common form of image processing and generally, is used because it is not only the most versatile method, but also the cheapest.
Digital image processing technology for medical applications was inducted into the Space Foundation Space Technology Hall of Fame in 1994.^{[3]}
Tasks
Digital image processing allows the use of much more complex algorithms, and hence, can offer both more sophisticated performance at simple tasks, and the implementation of methods which would be impossible by analog means.
In particular, digital image processing is the only practical technology for:
Some techniques which are used in digital image processing include:
 Anisotropic diffusion
 Hidden Markov models
 Image editing
 Image restoration
 Independent component analysis
 Linear filtering
 Neural networks
 Partial differential equations
 Pixelation
 Point feature matching
 Principal components analysis
 Selforganizing maps
 Wavelets
Digital image transformations
Filtering
Digital filters are used to blur and sharpen digital images. Filtering can be performed by:
 convolution with specifically designed kernels (filter array) in the spatial domain^{[4]}
 masking specific frequency regions in the frequency (Fourier) domain
The following examples show both methods:^{[5]}
Filter type  Kernel or mask  Example 

Original Image  
Spatial Lowpass  
Spatial Highpass  
Fourier Representation  Pseudocode:
image = checkerboard F = Fourier Transform of image Show Image: log(1+Absolute Value(F)) 

Fourier Lowpass  
Fourier Highpass 
Image padding in Fourier domain filtering
Images are typically padded before being transformed to the Fourier space, the highpass filtered images below illustrate the consequences of different padding techniques:
Zero padded  Repeated edge padded 

Notice that the highpass filter shows extra edges when zero padded compared to the repeated edge padding.
Filtering Code Examples
MATLAB example for spatial domain highpass filtering.
img=checkerboard(20); % generate checkerboard
% ************************** SPATIAL DOMAIN ***************************
klaplace=[0 1 0; 1 5 1; 0 1 0]; % Laplacian filter kernel
X=conv2(img,klaplace); % convolve test img with
% 3x3 Laplacian kernel
figure()
imshow(X,[]) % show Laplacian filtered
title('Laplacian Edge Detection')
Affine transformations
Affine transformations enable basic image transformations including scale, rotate, translate, mirror and shear as is shown in the following examples:^{[6]}
Transformation Name  Affine Matrix  Example 

Identity  
Reflection  
Scale  
Rotate  where θ = π/6 =30°  
Shear 
To apply the affine matrix to an image, the image is converted to matrix in which each entry corresponds to the pixel intensity at that location. Then each pixel's location can be represented as a vector indicating the coordinates of that pixel in the image, [x, y], where x and y are the row and column of a pixel in the image matrix. This allows the coordinate to be multiplied by an affinetransformation matrix, which gives the position that the pixel value will be copied to in the output image.
However, to allow transformations that require translation transformations, 3 dimensional homogeneous coordinates are needed. The third dimension is usually set to a nonzero constant, usually 1, so that the new coordinate is [x, y, 1]. This allows the coordinate vector to be multiplied by a 3 by 3 matrix, enabling translation shifts. So the third dimension, which is the constant 1, allows translation.
Because matrix multiplication is associative, multiple affine transformations can be combined into a single affine transformation by multiplying the matrix of each individual transformation in the order that the transformations are done. This results in a single matrix that, when applied to a point vector, gives the same result as all the individual transformations performed on the vector [x, y, 1] in sequence. Thus a sequence of affine transformation matrices can be reduced to a single affine transformation matrix.
For example, 2 dimensional coordinates only allow rotation about the origin (0, 0). But 3 dimensional homogeneous coordinates can be used to first translate any point to (0, 0), then perform the rotation, and lastly translate the origin (0, 0) back to the original point (the opposite of the first translation). These 3 affine transformations can be combined into a single matrix, thus allowing rotation around any point in the image.^{[7]}
Applications
Digital camera images
Digital cameras generally include specialized digital image processing hardware – either dedicated chips or added circuitry on other chips – to convert the raw data from their image sensor into a colorcorrected image in a standard image file format.
Film
Westworld (1973) was the first feature film to use the digital image processing to pixellate photography to simulate an android's point of view.^{[8]}
See also
 Computer graphics
 Computer vision
 CVIPtools
 Digitizing
 Free boundary condition
 GPGPU
 Homomorphic filtering
 Image analysis
 IEEE Intelligent Transportation Systems Society
 Multidimensional systems
 Remote sensing software
 Standard test image
 Superresolution
References
This article needs additional citations for verification. (January 2009) (Learn how and when to remove this template message)

 ^ Pragnan Chakravorty, "What Is a Signal? [Lecture Notes]," IEEE Signal Processing Magazine, vol. 35, no. 5, pp. 175177, Sept. 2018. https://doi.org/10.1109/MSP.2018.2832195
 ^ Azriel Rosenfeld, Picture Processing by Computer, New York: Academic Press, 1969
 ^ "Space Technology Hall of Fame:Inducted Technologies/1994". Space Foundation. 1994. Archived from the original on 4 July 2011. Retrieved 7 January 2010.
 ^ quora : Whatisspatialdomaininimageprocessing
 ^ Gonzalez, Rafael (2008). Digital Image Processing, 3rd. Pearson Hall. ISBN 9780131687288.
 ^ Gonzalez, Rafael (2008). Digital Image Processing, 3rd. Pearson Hall. ISBN 9780131687288.
 ^ House, Keyser (6 December 2016). "Affine Transformations" (PDF). Clemson. Foundations of Physically Based Modeling & Animation. A K Peters/CRC Press. ISBN 9781482234602. Retrieved 26 March 2019.
 ^ A Brief, Early History of Computer Graphics in Film Archived 17 July 2012 at the Wayback Machine, Larry Yaeger, 16 August 2002 (last update), retrieved 24 March 2010
Further reading
 Solomon, C.J.; Breckon, T.P. (2010). Fundamentals of Digital Image Processing: A Practical Approach with Examples in Matlab. WileyBlackwell. doi:10.1002/9780470689776. ISBN 9780470844731.
 Wilhelm Burger; Mark J. Burge (2007). Digital Image Processing: An Algorithmic Approach Using Java. Springer. ISBN 9781846283796.
 R. Fisher; K DawsonHowe; A. Fitzgibbon; C. Robertson; E. Trucco (2005). Dictionary of Computer Vision and Image Processing. John Wiley. ISBN 9780470015261.
 Rafael C. Gonzalez; Richard E. Woods; Steven L. Eddins (2004). Digital Image Processing using MATLAB. Pearson Education. ISBN 9788177588989.
 Tim Morris (2004). Computer Vision and Image Processing. Palgrave Macmillan. ISBN 9780333994511.
 Milan Sonka; Vaclav Hlavac; Roger Boyle (1999). Image Processing, Analysis, and Machine Vision. PWS Publishing. ISBN 9780534953935.
 Alhadidi, Basim; Zu'bi, Mohammad H.; Suleiman, Hussam N. (2007). "Mammogram Breast Cancer Image Detection Using Image Processing Functions". Information Technology Journal. 6 (2): 217–221. doi:10.3923/itj.2007.217.221.
External links
 Lectures on Image Processing, by Alan Peters. Vanderbilt University. Updated 7 January 2016.
 IPRG Open group related to image processing research resources
 Processing digital images with computer algorithms
 IPOL Open research journal on image processing with software and web demos.