Q1
Q1
Ideal for photographic images with Suitable for images with sharp edges,
Best Use Case
gradients and complex color variations. text, and graphics like logos.
Smaller file sizes due to lossy Larger file sizes because of lossless
File Size
compression. compression.
Transparency Does not support transparency (alpha Fully supports transparency through an
Support channel). alpha channel.
Computational Lower computational cost, faster Higher computational cost, slower than
Demand encoding and decoding. JPEG.
Quality Loss in Quality degrades with repeated saves No quality loss even with repeated
Edits (generation loss). saves.
Q2. Explain the concepts of Dilation and erosion in morphological image processing.
Ans
Morphological image processing is a set of image processing operations that process images based
on shapes. Two fundamental operations in this domain are dilation and erosion, which are widely
used in image segmentation, boundary detection, and noise removal.
1. Dilation
Dilation is a morphological operation that expands the boundaries of objects in a binary image. It
adds pixels to the edges of objects, increasing their size.
• How It Works:
o If at least one pixel in the neighborhood (defined by the structuring element) is part
of the object, the output pixel becomes part of the object (set to 1).
• Effect:
• Formula:
Where AAA is the input image, BBB is the structuring element, and zzz is the translation vector.
• Applications:
2. Erosion
Erosion is a morphological operation that shrinks the boundaries of objects in a binary image. It
removes pixels on object boundaries, reducing their size.
• How It Works:
• Effect:
• Formula:
Where AAA is the input image, BBB is the structuring element, and zzz is the translation vector.
• Applications:
o Removing noise.
Ans-
Image Restoration
Image restoration is the process of reconstructing or recovering an image that has been degraded by
various factors, such as noise, blur, or distortion, to achieve a version that is as close as possible to
the original image. It aims to reverse the degradation process, often requiring mathematical models
and algorithms.
3. Correct Distortions: Address issues like geometric distortions caused by camera lenses.
1. Noise:
3. Geometric Distortion:
4. Environmental Effects:
5. Compression Artifacts:
1. Noise Reduction:
2. Deblurring:
3. Geometric Corrections:
4. Model-Based Restoration:
o Neural networks and deep learning models are now widely used for tasks like super-
resolution and removing noise/artifacts.
2. Noise Complexity:
o Real-world noise often deviates from ideal models like Gaussian or uniform noise,
making it difficult to remove.
3. Under-Defined Problems:
o Restoration problems are often ill-posed, meaning there might not be a unique or
stable solution.
5. Computational Complexity:
Q4. Explain the use of region growing algorithm for region based image Segmentation.
Ans-
1. Initialization:
o Select one or more seed points as the starting locations for segmentation. These
points are chosen based on prior knowledge or criteria like intensity values.
2. Growing Criteria:
o Define a set of conditions that determine whether a neighboring pixel should be
added to the region. Common criteria include:
3. Region Growth:
o Iteratively add neighboring pixels to the region if they meet the growing criteria.
o Update the region's properties (e.g., mean intensity) after adding new pixels.
4. Termination:
o Stop growing when no more pixels satisfy the criteria or when a predefined stopping
condition (e.g., region size) is met.
1. Input:
2. Region Initialization:
o Start with the seed point (x,y)(x, y)(x,y), and initialize the region RRR with SSS.
3. Iterative Growth:
4. Output:
1. Simplicity:
2. Connectivity:
3. Flexible Criteria:
o Can be tailored to specific applications by adjusting the similarity criteria.
o Performs well when the regions have clear and distinct properties.