Dip Unit2
Dip Unit2
Image Transformation :
G(x,y) = T{ f(x,y) }
In this equation,
This relation between input image and the processed output image can also be
represented as.
s = T (r)
where r is actually the pixel value or gray level intensity of f(x,y) at any point. And s is the
pixel value or gray level intensity of g(x,y) at any point.
It shows that for each pixel, there is a same intensity value of output image. That means the
output image is exact replica of the input image.
g(x,y) = f(x,y)
Intensity transformation :
is a fundamental operation in digital image processing (DIP) that modifies the pixel values
of an image to enhance its visual quality or to prepare it for further analysis.
This process involves applying mathematical functions to the intensity values of the
pixels in an image, which can lead to various e ects such as contrast enhancement,
brightness adjustment, and thresholding.
1. Pixel Intensity:
2. Transformation Functions:
1. Linear Transformations:
Histogram :
Spatial Filtering :
It involves applying a filter (or kernel) to an image, where the filter is a small matrix that
defines how the pixel values in the neighborhood of a target pixel should be combined to
produce a new pixel value.
Key Concepts
1. Kernel/Filter: A small matrix (e.g., 3x3, 5x5) that defines the operation to be
performed on the image. Each element of the kernel corresponds to a weight that is
applied to the pixel values in the neighborhood.
2. Convolution: The process of applying the kernel to the image. For each pixel in the
image, the kernel is centered on that pixel, and the weighted sum of the pixel values
covered by the kernel is computed to produce the new pixel value.
Linear Filters:
Non-Linear Filters:
Examples include median filters, which are used to remove noise from an
image by replacing each pixel with the median value of the pixels in its
neighborhood, and morphological filters, which are used to extract specific
shapes or structures from an image.
Median Filter: Replaces the pixel value with the median of the pixel
values in the neighborhood.
Noise Reduction: Smoothing filters are commonly used to reduce noise in images.
Edge Detection: Sharpening filters are used to detect edges and enhance features
in images.
Image Enhancement: Filters can be used to improve the visual quality of images for
better interpretation.
Fourier Transform:
Fourier transform is the input tool that is used to decompose an image into its sine and
cosine components.
Properties of Fourier Transform:
Linearity:
Addition of two functions corresponding to the addition of the two frequency
spectrum is called the linearity. If we multiply a function by a constant, the Fourier
transform of the resultant function is multiplied by the same constant. The Fourier
transform of sum of two or more functions is the sum of the Fourier transforms of
the functions.
Case I.
Case II.
If h(x) -> H(f) and g(x) -> G(f) then h(x)+g(x) -> H(f)+G(f)
Scaling:
Scaling is the method that is used to the change the range of the independent
variables or features of data. If we stretch a function by the factor in the time
domain then squeeze the Fourier transform by the same factor in the frequency
domain.
Di erentiation:
Di erentiating function with respect to time yields to the constant multiple of the
initial function.
Convolution:
It includes the multiplication of two functions. The Fourier transform of a
convolution of two functions is the point-wise product of their respective Fourier
transforms.
Frequency Shift:
Frequency is shifted according to the co-ordinates. There is a duality between the
time and frequency domains and frequency shift a ects the time shift.