DIP Lec1
DIP Lec1
DIP Lec1
LECTURE # 1
INTRODUCTION
Email: [email protected]
Website: http://fms.uettaxila.edu.pk/Profile/ali.javed
Contact No: +92-51-9047747
Office hours:
Monday, 11:00 - 12:00, Office # 7 S.E.D
Wednesday, 02:10 - 03:10, Office # 7 S.E.D
http://www.mathworks.com/index.html
http://opencv.willowgarage.com/wiki/
http://sourceforge.net/projects/opencvlibrary/
Grading
Mid Exam - 30%
Final Exam - 50%
Quiz - 10 %
Assignment - 10 %
Quiz- 4 quizzes
2 before mid exam
2 after mid exam
Assignment- 4 assignments
2 before mid exam
2 after mid exam
3. devise and evaluate algorithms for real-time problem solving using tools
like MATLAB and MS Visual Studio with OpenCV by conducting
independent/ group study.
C4 2 3
2. analyze and design various
transformation functions/filters for
image enhancement, compression,
morphology for binary, grayscale and C5, 3 3
color images. A2
When x,y and the amplitude values of f are all finite, discrete quantities, we call
the image a Digital Image.
These elements are referred to as Picture Elements, Image Elements, Pels or Pixels.
Pixels are normally arranged in a regular 2-dimensional grid, and are often
represented using dots or squares
The intensity of each pixel is variable; in grayscale images we have one color value
while in color systems, each pixel has typically three or four components such as red,
green, and blue, or cyan, magenta, yellow, and black
Image Processing deals with algorithms that transform an input image into a
new image (processed image)
DIP is the field of processing digital images by means of a digital computer
Binary Image
1 Sample per point
Color Image
3 or 4 Samples per point
It can be considered as a matrix whose row column indices specify a point in the
image and the element value identifies the gray level value at that point
A digital video consists of frames that are presented to the viewer's eye in rapid succession to
create the impression of movement. "Digital" in this context means both that a single frame
consists of pixels and the data is present as binary data, such that it can be processed with a
computer. Each frame within a digital video can be uniquely identified by its frame index, a
serial number.
A shot is a sequence of frames shot uninterruptedly by one camera. In the context of shot
transition detection they are usually group into two types:
Abrupt Transitions
Gradual Transitions
Abrupt Transitions (Cuts) - This is a sudden transition from one shot to another, i. e.
one frame belongs to the first shot, the next frame belongs to the second shot. They
are also known as hard cuts or simply cuts.
Gradual Transitions - In this kind of transitions the two shots are combined using
chromatic, spatial or spatial-chromatic effects which gradually replace one shot by
another. These are also often known as soft transitions and can be of various types,
e.g., wipes, dissolves, fades...
Acquisition
Digital cameras, scanners
Infrared and microwave imaging etc
Transmission
Internet, satellite and wireless communication
Storage
CD/DVD, Blu-ray
Flash memory
Display
CRT monitors, LCD monitor, LED Monitors
PDAs, smart phones, smart watches
Image Restoration
Image Compression
Image Segmentation
Image Recognition
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Representation
Image
&
Acquisition Description
Object
Problem Domain Recognition
Color Image Image
Processing Compression
Dr. Ali Javed
Key Stages in Digital Image Processing
28
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Representation
Image
&
Acquisition Description
The first stage of any vision system is the image acquisition stage.
An image is captured by a sensor (such as a monochrome or color TV
camera) & digitized
If the output of the camera or sensor is not already in digital form, an ADC
converter digitizes it
Images are processed after acquisition.
However, if the image has not been acquired satisfactorily then the intended
tasks may not be achievable
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Representation
&
Acquisition
Description
The aim of image enhancement is to improve the perception of information in images for
human viewers, or to provide better input for other automated image processing
techniques.
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Representation
Image
&
Acquisition Description
Image enhancement : process image to emphasize features of the image that make the image
more pleasing to the observer or to process image so that the result is more suitable for a
specific application, is largely a subjective process.
Image restoration : recover image from distortions to its original image, is largely an objective
process.
Image enhancement is the improvement of digital image quality without knowledge about the
source of degradation. If the source of degradation is known, one calls the process image
restoration
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain &
Description
Color
ColorImage
Image Image
Processing
Processing Compression
Dr. Ali Javed
Morphological Image Processing
37
Deals with Tools for extracting image components that are useful in the
representation & description of shape
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Representation
Image
&
Acquisition Description
Object
Problem Domain
Recognition
Color Image Image
Processing Compression
Dr. Ali Javed
Image Segmentation
39
Image Segmentation algorithms generally are based on one of two basic properties
of intensity values:: Discontinuity and Similarity
Through Similarity the approach is based on partitioning an image into regions that
are similar according to a set of predefined criteria. Thresholding, region growing,
region splitting and merging are examples of methods in this category
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Representation
Acquisition & Description
Object
Problem Domain
Recognition
Color Image Image
Processing Compression
Dr. Ali Javed
Representation and Description
42
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Representation
Image
&
Acquisition Description
Recognition is the process that assigns a label to an object based on its descriptors
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Representation
Image
&
Acquisition Description
The reduction in file size allows more images to be stored in a given amount of disk
or memory space. It also reduces the time required for images to be sent over the
Internet or downloaded from Web pages.
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Representation
Image
&
Acquisition Description
Object
Problem Domain
Recognition
Color Image Image
Processing Compression
Dr. Ali Javed
50 Image Processing Components
Storage Media
Processing Systems
Displays [5]
Communication Media
Frame Grabber
Pixel count
Front Illumination
Back Illumination
Dr. Ali Javed
Camera Lens
53
The function of the lens in the camera is to direct the light source to the camera
sensor to help focusing the image.
The main difference of the different lens brands will be the coating that they use.
Different lens coating will give varying results from sharpness to color
reproduction.
Camera filters alter the properties of light entering the camera lens for the purpose of
improving the image being recorded.
The filter can be a square or oblong shape mounted in a holder accessory, or, more commonly,
a glass or plastic disk with a metal or plastic ring frame, which can be placed in front of the
lens
Filters can affect contrast, sharpness, color, and light intensity, either individually, or in various
combinations.
The negative aspects of using filters, though often negligible, include the possibility of loss of
image definition if using dirty or scratched filters
For example, a camera that is 2.1 gross/2.0 effective means that the
CCD is comprised of a total of 2.1 million pixels, but the image it captures is
actually using only 2.0 million pixels to create the photo.
Optical Zoom
Optical zoom is when the lens actually moves in and out and gets you
closer to the object. An optical zoom is a “real zoom”.
Digital Zoom
PC based
General purpose PCs
Servers
Industrial PCs
A component of a computer vision system, in which video frames are captured in digital form and
then displayed, stored or transmitted in raw or compressed digital form.
Early frame grabbers had only enough memory to acquire (i.e., "grab") and store a single
digitized video frame
Modern frame grabbers are typically able to store multiple frames and compress the frames in
real time using algorithms such as MPEG2 & JPEG
Frame grabbers that perform compression on the video frames are referred to as Active Frame Grabbers.
Frame grabbers that simply capture the raw video data are referred to as Passive Frame Grabbers.