Ca Dip
Ca Dip
1. What does the term "quantization" refer to in image processing? Answer: C. Reducing the number of intensity levels
2. The size of a digital image is 512 × 512 pixels, with 8 bits per pixel. What is the total size of the image in bytes? Calculation: 512 × 512 = 262144 pixels Each pixel =
8 bits = 1 byte Answer: B. 262144 bytes
3. Which operation is used in morphological image processing to remove small white noises? Answer: D. Opening
5. Which transform is most commonly used for image compression? Answer: C. Discrete Cosine Transform (DCT)**
a) Total number of pixels = 256 × 256 = 65536 pixels b) Total number of bits = 65536 × 4 = 262144 bits c) Image size in bytes = 262144 ÷ 8 = 32768 bytes (32 KB)
[ 0 -1 0 ]
[-1 5 -1 ]
[ 0 -1 0 ]
Image Patch:
[60 70 80]
[65 75 85]
[55 65 75]
= 0 - 70 + 0
-65 + 375 - 85
0 - 65 + 0
---
**Steps:**
1. Select a filter mask (e.g., 3×3 edge detection kernel).
2. Place the mask at each pixel location centered around that pixel.
3. Perform element-wise multiplication between mask and image patch.
4. Sum the result and assign to the center pixel in the output image.
5. Repeat for all pixels.
This mask detects vertical edges by highlighting intensity changes in the horizontal direction.
---
---
---
| Operation | Description |
|----------|-------------|
| **Dilation** | Expands white regions (adds pixels to object boundaries) |
| **Erosion** | Shrinks white regions (removes pixels from object boundaries) |
| **Opening** | Erosion followed by dilation – removes small white noise |
| **Closing** | Dilation followed by erosion – fills small black holes |
**b) Diagrams:**
After Erosion: [ 0 0 0 0 0 ] [ 0 1 1 1 0 ] [ 0 0 0 0 0 ]
After Dilation: [ 0 1 1 1 0 ] [ 1 1 1 1 1 ] [ 0 1 1 1 0 ]
---
Let me know if you want these compiled into a PDF or if you’d like diagram images included!