Lecture 5
Lecture 5
Lecture 5
1
Halftoning
Ref: https://people.ece.ubc.ca/irenek/techpaps/introip/manual04.html
2
3
Digital Halftoning
4
5
CMYK refers to the four ink plates
used: cyan, magenta, yellow, and key
(black)
6
Brother DCP-T226
Multifunction (Print Scan
Copy) Ink Tank Color
Printer
CMYK
Image Source: Amazon India 7
8
There are several methods for generating digital halftoning images:
9
1. Patterning
• Patterning is the Simplest of the three techniques for generating digital halftoning
images.
• It generates an image that is of Higher Spatial Resolution than the source image.
• The number of halftone cells of the output image is the same as the number of
pixels in the source image.
• However, each halftone cell is Subdivided into a NxN grid where N could be 2, 3,
4, and so on.
• Each input pixel value is represented by a different number of filled squares in the
halftone cell.
• Since a NxN grid can only represent fixed number (NxN+1) of different
intensity levels, the source image must be Quantized.
10
Patterning
Fixed Pattern Size: The size of the patterns (blocks) is
predefined and repeated throughout the image.
11
2. Ordered Dithering
• Unlike patterning, dithering creates an output image with the Same number of dots
as the number of pixels in the source image.
• Dithering can be thought of as thresholding the source image with a dither matrix.
• The matrix is laid repeatedly over the source image.
• Wherever the pixel value of the image is lesser than the value in the matrix, a dot
on the output image is filled.
• A well-known problem of dithering is that it produces artifacts of patterns
introduced by fixed thresholding matrices.
Bayer Matrix Dithering is one of the most common ordered dithering techniques.
12
Input Image
Dithering Matrix
Source: https://www.youtube.com/watch?v=9zsaegcL_84 13
Source: https://www.youtube.com/watch?v=9zsaegcL_84 14
3. Error Diffusion
Ref: https://www.geeksforgeeks.org/image-formats/
16
17
Common Vector Image
formats: .svg .eps .pdf
18
19
Common Bitmap Image formats: .jpg .gif .png
.tif .bmp 20
21
22
•TIFF(.tif, .tiff) or Tagged Image File Format this format store
image data without losing any data. It does not perform any
compression on images, and a high-quality image is obtained but the
size of the image is also large, which is good for printing, and
professional printing.
•JPEG (.jpg, .jpeg) or Joint Photographic Experts Group is a
loss-prone (lossy) format in which data is lost to reduce the size of
the image. Due to compression, some data is lost but that loss is
very less. It is a very common format and is good for digital cameras,
nonprofessional prints, E-Mail, Powerpoint, etc., making it ideal for
web use.
•GIF (.gif) or Graphics Interchange Format files are used for
web graphics. They can be animated and are limited to only 256
colors, which can allow for transparency. GIF files are typically
small in size and are portable.
23
•PNG (.png) or Portable Network Graphics files are a
lossless image format. It was designed to replace gif format
as gif supported 256 colors unlike PNG which support 16
million colors.
•Bitmap (.bmp) Bit Map Image file is developed by Microsoft
for windows. It is same as TIFF due to lossless, no
compression property. Due to BMP being a proprietary
format, it is generally recommended to use TIFF files.
•RAW Image Files (.raw, .cr2, .nef, .orf, .sr2) These Files
are unprocessed and created by a camera or scanner.
Many digital SLR cameras can shoot in RAW, whether it be
a .raw, .cr2, or .nef. These images are the equivalent of a
digital negative, meaning that they hold a lot of image
information. These images need to be processed in an editor
such as Adobe Photoshop or Lightroom. It saves metadata and
is used for photography. 24
•EPS (.eps) Encapsulated PostScript file is a common vector
file type. EPS files can be opened in applications such as Adobe
Illustrator or CorelDRAW.
25
Earthrise is a photograph of Earth and part of the Moon's surface,
taken from lunar orbit by astronaut William Anders on December
24, 1968, during the Apollo 8 mission. Thank You
26