<<

SUBJECT FORENSIC SCIENCE

Paper No. and Title PAPER No. 7: Criminalistics & Forensic Physics

Module No. and Title MODULE No. 28: Digital

Module Tag FSC_P7_M28

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28:

TABLE OF CONTENTS 1. Learning Outcomes 2. Introduction- Digital Photography 3. Advantages of Digital Photography over Conventional Photography 4. Digital Sensors 5. Characteristics and Types of Digital Images 6. Resolution 7. Scaling/ Re-sampling 8. Bit Depth 9. Floating Point 10. Image Compression 11. File Format and Application 12. Levels and Curves 13. Image Noise 14. Lens 15. Important Factors in 16. Summary

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

1. Learning Outcomes After studying this module, you shall be able to know –  What is Digital Photography  What are the characteristics in Digital Photography  Learn about Image compression, file format and its application

2. Introduction- Digital Photography Digital Photography is in no way different or separate from conventional film or as we sometime say analog photography except for the following things:-

 The image capturing medium.  The image capturing principle or technique.  The image storage device. A digital camera also consists of a light constricted camera body as a film camera with a lens, an mechanism and a control to control . There are various models of Compact Digital as well as Digital SLR Cameras with varying features. But whatever be the model of the digital camera or the manufacturer, it works on the basis of same principle of an analog or a film camera. So, someone familiar in using a film camera can very well depict good pictures with a digital camera. Therefore, as we have explained the basic principles of photography in earlier lessons, we need not repeat them as they are true for digital photography also. The deviations will be clarified as we go into the details of the topic afterwards in this lesson. 3. Advantage of Digital Photography over Conventional Photography In modern world of imaging, digital photography certainly have some advantages over conventional photography. The major among them are as follows:-

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

Film Photography Digital Photography

Films have limited exposure capacity like 24 or Digital Memory Cards can store much more 36 frames in a roll of film number of images. This gives us an opportunity to shoot more pictures and since the card can be reused, the cost of divulging is reduced to minimal. Images exposed through films could not be seen Digital Images can be seen instantly on the unless the film is developed or printed. camera LCD display. Since we have an immediate feedback of the image, we can correct the focusing, exposure or composition if required. Once a particular film is loaded, the Film speed can be changed easily in a digital cannot be changed and exposure should be made camera just by pressing buttons or rotating a dial accordingly. as desired. Films are manufactured for a particular colour Colour temperature can be adjusted on a digital temperature (daylight type or tungsten light camera according to external light condition or type). requirement. Video is not possible in a film camera. Video can be shot with a digital camera. Preserving a film properly is not easy and editing Cataloging and editing digital is much easier on an analog image in a needs great digital media. amount of expertise.

4. Digital Camera Sensors Digital Cameras are the most popular devices used to expose and capture a . Although we can capture digital images by scanning also but understanding the functioning of the digital sensor which is a CCD or CMOS is the first step towards learning digital photography. Fundamentally, a charge coupled device (CCD) is an integrated circuit etched onto a silicon surface, forming a grid of several million tiny dots (photo sites) or light sensitive elements called . Photons incident on this surface generate charge that can be read electronically and turned into a digital copy of the light patterns falling on the device. CCDs come in a wide variety of sizes and types and are used in many applications from cell phone cameras to high-end scientific applications.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

Each in a CCD can remember how much light it received in a given period of time. When a cameras shutter is pressed to expose a , each of these picture elements are uncovered to collect and store photons. As the exposure completes, the camera closes at each photo site and assess the contents. The comparative amount of photons in each cavity is organized into different intensity stages. There are three significant qualities to each sensor: resolution, size and quality.

CCD of different sizes Light Cavities

The function of a Charged Coupled Device can be seen as a selection of pixels collecting photons. 5. Characteristics and Type of Digital Image A digital image is an exemplification of a 2D image using binary numbers i.e., 0 and 1. Dependent on image resolution, it is fixed or not, it may perhaps be of vector or raster type. The word "digital image" generally denotes to raster images also called as bitmap images.

 In digital imaging, a pixel, or picture component is a solitary point in a raster image, or the minimum addressable screen element. It is the least unit of picture that can be demonstrated or controlled.  Each pixel has its own address like x/y axis of a graph.  More pixels characteristically offer more exact representation of the original.  The strength of each pixel is inconstant.  In Image Systems, a color is characteristically signified by 3-4 component intensities such as RBG, or CMYK.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

6. Resolution Resolution is a dimension of sample concentration, resolution of bitmap images gives a connection between pixel dimensions and physical magnitudes. The most commonly used measurement is ppi, pixels per inch. The difference between ppi and dpi, is the variance between pixels and dots - pixels can denote manifold values, at the same time as a dot is a monochrome spot of ink or toner of a single pigment as produced by a printer. Printers use a method called half toning to make a uniform configuration that imitates a variety of intensity stages. Resolution is simply the number of pixels. As more pixels we have, then the fine grained details we can theoretically record. Any resolution above 2 or 3 megapixels (i.e. billions of pixels) will be enough for displaying on a screen, but higher resolutions come into play for two important applications: printing and cropping.

A rasterized form of the letter 'a' magnified 16 times, where each pixel is represented as a circle instead of a square.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

To have a good reproduction quality, it is usually estimated that between 240 and 300 pixels should be used for every inch of paper (dots per inch, or dpi), which will give a natural limitation to the biggest size one can print. For example, a 6MP image of sizes 2000x3000 pixels can be reproduced at a maximum size of 12.5x8.3" at 240dpi (2000/240 = 8.3, 3000/240 = 12.5). It is possible to print bigger by either lowering the dpi or artificially increasing the resolution, but the image quality will be poor. Having an advanced resolution permits us to print bigger. 7. Scaling/Re-sampling When we require generating an image with diverse dimensions that we possess then we can measure the image. A dissimilar name for Scaling is Re-sampling, when algorithms attempt to restructure the original uninterrupted image and produce a new sample grid. The method of reducing the raster dimensions is called decimation (Scaling Image down) this can be completed by averaging the values of source pixels contributing to each output pixel. When we intensify the image extent we essentially want to produce sample points among the original sample points in the original raster, this is done by interpolation (Scaling Image Up) the values in the sample grid, effectively guessing the values of the unknown pixels. By the digital zoom of a camera, the camera is using interpolating to guess the values that do not exist in the image. Capturing an image at the extreme analog zoom level and undertaking the post dispensation of cropping and rescaling on the computer will give equal or better results.

8. Bit Depth The values of the pixels must be stored in the computer’s memory. It means that the data eventually need to end up in a binary representation; the spatial continuity of the image is approximated by the spacing of the samples in the sample grid. The values we can represent for each pixel is determined by the sample format chosen. Bit Depth is determined by the integer of bits used to describe each pixel. So bit depth enumerates the number of unique available in an image's color palette in terms of the number of 0's and 1's, or "bits," which are used to postulate each color. This does not mean that the image essentially uses all of these colors, but that it can as an alternative specify colors with that level of accuracy. For a gray scale image, the bit depth measures the number of available unique shades. Images with greater bit depths can encrypt extra shades or colors since there are more permutations of 0's and 1's available. Bit Depth is proportional to the number of tones (grayscale or color) that can be represented. Digital images may be created in (bi-tonal), grayscale, or color. A bi-tonal image is represented by pixels consisting of 1 bit each, which can represent two tones (typically black and white), using the values 0 for black and 1 for white or vice versa. A grayscale image is composed of pixels signified by manifold bits of information, typically extending from 2 to 8 bits or more.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

9. Floating Point

Certain image formats used in research and by the movie industry store floating point values. Both "normal" 32bit floating point values and a special format called half which uses 16bits/sample. Floating point is advantageous as a working format because quantization and computational inaccuracies are retained to a minimum until the final render. Floating point demonstrations often include HDR or High . High Dynamic Range images are images that comprise sampling values that are whiter than white (advanced values than 255 for a normal 8bit image). HDR allows representing the light in a scene with a greater degree of precision than LDR, Low Dynamic Range images.

10. Image Compression Bitmap images yield up a lot of memory. Image compression moderates the amount of memory needed to store an image. For instance a 2.1 megapixel, 8bit RGB image (1600x1200) occupies 1600x1200x3 bytes = 5760000 bytes = 5.5 megabytes, this is the uncompressed size of the image.

Compression ratio is the ratio among the compressed image and the uncompressed image, if the example image quoted above was stored as a 512kb jpeg file the compression ratio would be 0.5mb: 5.5mb = 1:11.

1. Lossless Image Compression

When an image is losslessly compressed, recurrence and probability is used to characterize all the information by means of less memory. The original image can be restored. One of the unpretentious lossless image compression methods is run-length encoding. Run-length encoding encodes successive analogous values as one perfunctory in a data stream.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

In the above figure “Run-length encoding” a black and white image of a house has been compressed with run length encoding, the bitmap is considered as one long string of black/or white pixels, the encoding is how many bytes of the same color occur after each other. It will further reduce the amount of bytes taken up by these 72 numerical values by having a maximum span length of 15, and encoding longer spans by using multiple spans separated by zero length spans of the other color.

2. Lossy Image Compression Lossy image compression takes benefit of the human eyes capability to hide deficiency and the fact that certain types of information are more significant than others. Modifications in luminance are for example seen as more noteworthy by a human witness than change in hue. JPEG is a file format applying compression based on the Discrete Cosine Transform (DCT), collectively with lossless algorithms this delivers worthy compression ratios. The way JPEG works is superlatively matched for images with constant tonal ranges like , logos, scanned text and other images with lots of sharp contours / lines will get more compression artifacts than photographs.

Lossy compression algorithms should not be used as a working format, only final copies should be saved as jpeg since loss accumulates over generations.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

11. File Format & Application Several applications have their specific internal file format, whereas other formats are more appropriate for transaction of data. Table below lists some common image formats. Vector File Formats Extension Name Notes .ai Adobe Illustrator Document Native format of Adobe Illustrator (based on .eps) .eps Encapsulated Postscript Industry standard for containing vector graphics in print .ps PostScript Vector based printing language, used by many Laser printers, used as electronic paper for scientific purposes. .pdf Portable Document Format Modernized version of ps, adopted by the general public as 'electronic print version' .svg Scalable Vector Graphics XML based W3C standard, including animation, gaining adoption. .swf Shockwave Binary vector format, with animation and sound, supported by most major web browsers.

Raster File Formats Extension Name Notes .jpg or jpeg Joint Photographic Experts Lossy compression format well suited for Group photographic images .png Portable Network Graphics Lossless compression image, supporting 16bit sample depth, and Alpha channel .gif Graphics Interchange Format 8bit indexed bitmap format, is superseded by PNG on all accounts but animation .exr OpenEXR HDR, High Dynamic Range format, used by movie industry. .raw, Raw image file Direct memory dump from a digital camera, contains the direct imprint from the imaging sensor without processing with white point and corrections. Different cameras use different extensions, many of thederivatives of TIFF, examples are .nef, .raf and .crw .dgn Digital A subset/clarification of TIFF, created by Adobe to provide a standard for storing

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

RAW files, as well as exchanging RAW image data between applications. .tiff, .tif Tagged Image File Format .psd Photoshop Document Native format of Adobe Photoshop, allows layers and other structural elements .xcf Gimp Project File GIMP's native image format.

12. Levels and Curves Curves: It is simple information of layers and masks, this climbs to something like 80%. Even though curves are comparatively direct, there is a basic form of the tool which, while losing some power, is often sufficient. Levels: Levels and curves transform exposure and, by extension, contrast. In order to be used efficiently, it is essential to have a respectable understanding of the histogram. As you may recall, we said in the histogram lesson that a "perfect" histogram is one which has a bell shape, tapering off in both directions and ending exactly at the edges, which correspond to pure white and pure black. You don't want it to end after the right edge, for instance, because it would mean that you are losing information and getting pure white, it means that there are no really bright values in the image, which will make it appear dull and washed-out, lacking contrast. Levels essentially resize the box, so that the histogram fits into it perfectly. There are three controls: black, grey and white points. Let's forget about grey for now and focus on black and white. If you slide them around, they will describe the new edges of the box in which the histogram subsists. 13. Image Noise "Image noise" is the digital corresponding of film grain for analogous cameras. Alternatively, one can contemplate of it as analogous to the delicate background hiss perceived from the audio system at full volume. For digital images, this noise seems as random flecks on an otherwise smooth surface and can significantly destroy image quality. Even though noise regularly reduces from an image, it is occasionally required since it can increase an old-fashioned grainy look which is suggestive of early film. Some noise can also increase the apparent sharpness of an image. Noise rises with the sensitivity setting in the camera, length of the exposure, temperature, and even differs amongst different camera models.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

14. Lens The lens is the second constituent of any camera. It is an optical device which receives scattered light rays and focuses them precisely on the sensor. The quality of the glass and the accuracy of the lens will be particularly imperative in determining the quality of the final image. denotes roughly to the "zoom level", or , of the lens. It will have its own lesson in a few days, as it can be an unexpectedly complicated subject. A focal length is generally expressed in millimeters, and you should be cognizant that the resulting angle of view actually depends on the dimensions of the sensor of the camera on which the lens is used (this is called the crop factor). For this reason, we often give "35mm equivalent" focal lengths, which is the focal length that would offer the similar view on a 35mm camera (the historic film SLR format) allows us to make expressive comparisons. If there is a single length (e.g. 24mm), then the lens doesn't zoom, and it is often called a . If there are two numbers (e.g. 18-55mm), then you can use the lens at any focal in that range. Compact cameras often don't provide focal lengths but basically the range, for instance 8x, this means that the long end is 8 times longer than the wide one, so the lens could be a 18-144mm, or a 35-280mm, etc. The aperture is a very substantial concept which we will talk about in much detail later on. The aperture is an iris in the centre of the lens, which can close to gradually small sizes, restraining the amount of light which gets on the sensor. It is stated to as f-number, for instance f/2.8. To make things inferior, it is quite counter-intuitive, as the smaller the number, the bigger the aperture! For now, we don't have to worry about this too much. The significant number on a lens is the maximal aperture, the lower the better. Professional zoom lenses often have f/2.8 maximal , and economy consumer lenses have ranges such as f/3.5-5.6, meaning that at the wide end, the maximum aperture is f/3.5 and at the long end, it is f/5.6. Aperture can be closed to tiny levels, usually at least f/22.

15. Important factors in Digital Cameras SHUTTER The most essential is probably the shutter. Think of it as a curtain in front of the sensor. When we press the trigger, the curtain opens, exposes the sensor to light from the lens, then closes again after a very specific amount of time, often a tiny fraction of a second. Most shutters operate between 30 seconds and 1/4000s of a second. That duration (the ) is one of the three very significant exposure factors, along with aperture and ISO.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

The best place to see the shutter speed setting on the camera is in the viewfinder. Half-press the shutter button activated the camera & the viewfinder & we can see the shutter speed which is the first number at the bottom.

FOCUSSING A focus detector, used to drive the autofocus motor in the lens. There are two contending technologies, contrast detection and phase detection, with one at the moment an edge for the latter, which explains why DSLRs tend to focus faster than compact cameras. These systems have a habit to vary greatly between basic and advanced bodies, but it should be noted that they all need rational amounts of light to work appropriately.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

MEMORY CARDS An approach to store the image just generated. Back in the days of film, this was just a lever to advance the roll to the next unexposed frame. Now, it is a pipeline which ends up in the memory card that the camera is using. If we are shooting JPEG instead of RAW, there is an additional stage where the internal computer executes all sort of black magic on the image to output a ready-to-view jpg file.

VIEWFINDER

``Way to frame or compose the image. It can be an assembly of things, optical or electronic viewfinder, LCD screen or even ground glass. Here too, DSLRs have an edge, as an optical viewfinder allows "through-the-lens" viewing and immediate feedback, while electronic viewfinders ( a LCD screen inside a viewfinder) and LCDs often have limited resolution and slight updating delays.

Optical Viewfinder (OVF) Viewfinder Switch Lever Electronic Viewfinder (EVF)

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

EXPOSURE In order to keep things short, we can divide this vast subject into small parts. Here we will see what exactly exposure is, and how we can use three camera controls to modify it. Afterwards we will talk about a very important tool for revising exposure: the histogram. Consequently we will talk about each of the three controls (shutter speed, aperture and ISO) in more detail. Exposure basically, is the amount of light to which the sensor is exposed.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography

ISO The ISO speed, also occasionally known as sensitivity is alternative major factor to control exposure in any digital camera. ISO is one of the essential differences between film and digital. It is a physical property of the film we are exhausting, and the only way to modify it is to change to a new roll - not the most appropriate. With digital, we can easily change ISO between shots, merely by turning a wheel, which permits flawless adaptation to the current light conditions. For those who shot film a long time ago, you may have used diverse words for sensibility: ASA or DIN. The first is exactly the alike than our current ISO, it simply changed name when it became homogeneous. The latter uses another logarithmic scale and is absolutely outdated. Transformation between the two is quite straightforward, though.

16. Summary 1. A digital camera like a film camera also contains light body with a lens, an aperture mechanism and a shutter control to control exposure. 2. A digital image is a depiction of a two-dimensional (2D) image using ones and zeros (binary). 3. Bit Depth is determined by the number of bits used to explain each pixel. So bit depth computes how many unique colors are accessible in an image's color palette in terms of the number of 0's and 1's, or "bits," which are used to depict each color. 4. ISO is one of the important dissimilarities between film and digital cameras.

FORENSIC SCIENCE PAPER No.7: Criminalistics & Forensic Physics MODULE No.28: Digital Photography