BSc CSIT (TU) Science Image Processing (BSc CSIT, CSC413) Question Paper 2074 Nepal
This is the official BSc CSIT (TU) (Science stream) Image Processing (BSc CSIT, CSC413) question paper for 2074, as set in the regular annual examination. It carries 60 full marks and a time allowance of 180 minutes, across 12 questions. On Kekkei you can attempt this Image Processing (BSc CSIT, CSC413) past paper online with a timer, get instant AI feedback and step-by-step solutions, and track the topics where you lose marks — completely free. Whether you are revising for your BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) exam or solving previous years' question papers, this 2074 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
What is digital image processing? Explain the fundamental steps in digital image processing and the components of an image processing system with a block diagram.
Digital Image Processing
Digital image processing (DIP) is the use of computer algorithms to process a digital image (a 2-D function where are spatial coordinates and the amplitude is the intensity/gray level at that point, with both coordinates and amplitude being finite, discrete quantities). Its purposes include image enhancement, restoration, compression, segmentation, and machine perception.
Fundamental Steps in Digital Image Processing
- Image acquisition – capturing the image via a sensor (camera/scanner) and digitizing it (sampling + quantization).
- Image enhancement – adjusting an image so the result is more suitable for a specific application (e.g., contrast stretching, histogram equalization).
- Image restoration – improving an image by removing degradation using objective mathematical/probabilistic models (e.g., inverse, Wiener filtering).
- Colour image processing – handling images in colour models such as RGB, HSI, CMY.
- Wavelets and multiresolution processing – representing images at multiple resolutions; basis for compression.
- Image compression – reducing storage/bandwidth (JPEG, PNG) using lossy/lossless techniques.
- Morphological processing – tools for extracting image components (erosion, dilation, opening, closing).
- Segmentation – partitioning the image into regions/objects (thresholding, edge/region based).
- Representation and description – converting segmented data into a form suitable for computer processing (boundary/regional descriptors).
- Object recognition – assigning a label (class) to an object based on its descriptors.
A knowledge base guides and coordinates all the above steps.
Components of an Image Processing System (Block Diagram)
Described as a block diagram, the components connected around a common image processing software/computer are:
- Image sensors / acquisition device – sensor (e.g., CCD) plus a digitizer to produce the digital image.
- Specialized image-processing hardware – performs fast primitive operations (e.g., ALU/arithmetic-logic unit, frame grabber) at video rates.
- Computer – general-purpose computer that runs the processing.
- Image-processing software – specialized modules/library implementing the algorithms.
- Mass storage – short-term (frame buffers), on-line (disks), and archival storage for large images.
- Image displays – colour monitors to view results.
- Hardcopy devices – printers, film cameras for permanent records.
- Network / cloud – for transmitting and sharing images.
All components communicate through the computer and are coordinated by the image-processing software.
What is histogram equalization? Explain the procedure with the help of a mathematical formulation and a worked example.
Histogram Equalization
Histogram equalization is a contrast-enhancement technique that redistributes the gray levels of an image so that the output histogram is approximately uniform (flat), spreading intensities over the full available range. It improves the contrast of images that are too dark or too bright.
Mathematical Formulation
Let an image have gray levels (), with pixels at level and total pixels .
- Probability (normalized histogram):
- Cumulative distribution function (CDF):
- Round to the nearest integer to obtain the new gray level mapping.
The transformation is single-valued and monotonically increasing, so it is invertible and preserves order.
Worked Example
A image (16 pixels) with gray levels (–):
| CDF | round | ||||
|---|---|---|---|---|---|
| 0 | 2 | 0.125 | 0.125 | 0.875 | 1 |
| 1 | 3 | 0.1875 | 0.3125 | 2.1875 | 2 |
| 2 | 4 | 0.25 | 0.5625 | 3.9375 | 4 |
| 3 | 3 | 0.1875 | 0.75 | 5.25 | 5 |
| 4 | 2 | 0.125 | 0.875 | 6.125 | 6 |
| 5 | 1 | 0.0625 | 0.9375 | 6.5625 | 7 |
| 6 | 1 | 0.0625 | 1.0 | 7.0 | 7 |
| 7 | 0 | 0 | 1.0 | 7.0 | 7 |
Mapping: . Each original pixel is replaced by its mapped value, giving an image whose histogram is spread out and far more uniform, hence higher contrast.
Note: Because gray levels are discrete and rounding/merging occurs, the result is only approximately uniform.
Explain image segmentation. Discuss the region split-and-merge technique and adaptive thresholding for segmentation.
Image Segmentation
Image segmentation partitions an image into multiple regions (sets of connected pixels) that are homogeneous with respect to some property (intensity, colour, texture) and correspond to objects or meaningful parts. Formally, segmentation produces regions such that (the whole image), the regions are disjoint, each satisfies a homogeneity predicate , and adjacent regions fail it: . Approaches are based on discontinuity (edges) or similarity (thresholding, region growing, split-and-merge).
Region Split-and-Merge
This is a region-based technique using a quadtree representation.
Splitting:
- Start with the whole image as one region .
- If (region not homogeneous, e.g., gray-level variance/range exceeds a threshold), split into four equal quadrants.
- Recursively apply step 2 to each quadrant until every region satisfies or reaches the minimum block size.
Merging: 4. Merge any two adjacent regions for which . 5. Repeat merging until no further merges are possible.
The result is a set of homogeneous, connected regions. Splitting handles regions that are too coarse; merging fixes over-segmentation caused by the rigid quadtree boundaries.
Adaptive (Local) Thresholding
A single global threshold fails when illumination is uneven. Adaptive thresholding computes a threshold that varies across the image:
where depends on the local neighbourhood (sub-image/window) around . Typically the image is divided into blocks (or a sliding window is used) and a threshold is computed per block from local statistics, e.g.
where and are the local mean and standard deviation and are constants. This compensates for non-uniform lighting and shading, producing better object/background separation than a global threshold.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Define image sampling and quantization.
Sampling is the digitization of the spatial coordinates of a continuous image — selecting a finite grid of points (pixels) at which to record intensity. It determines the spatial resolution (number of rows columns); more samples give a sharper image.
Quantization is the digitization of the amplitude/intensity values — mapping the continuous intensity at each sampled point to one of a finite set of discrete gray levels ( bits). It determines the gray-level (intensity) resolution; more levels give smoother tonal transitions and avoid false contouring.
Together, sampling and quantization convert a continuous image into a digital image represented as an matrix of integer gray levels.
What is image enhancement? Differentiate between spatial and frequency domain enhancement.
Image enhancement is the process of adjusting/improving an image so that the result is more suitable than the original for a specific application or for human viewing — e.g., increasing contrast, sharpening edges, or removing noise. It is largely subjective (problem-oriented), not based on an objective degradation model.
Spatial vs Frequency Domain Enhancement
| Aspect | Spatial domain | Frequency domain |
|---|---|---|
| Operates on | Image pixels directly: | Fourier transform of the image: |
| Mechanism | Point operations and mask/kernel convolution | Multiply the spectrum by a filter , then inverse transform |
| Steps | Apply transform/filter mask over neighbourhoods | DFT filter inverse DFT |
| Examples | Contrast stretching, histogram equalization, averaging/median smoothing, Laplacian sharpening | Ideal/Butterworth/Gaussian low-pass and high-pass filtering, homomorphic filtering |
| Cost/intuition | Conceptually simple, fast for small masks; direct pixel control | Easier to design selective (frequency-band) filters; needs forward/inverse transforms |
By the convolution theorem, spatial convolution corresponds to multiplication in the frequency domain, so the two are mathematically linked.
Explain the concept of a histogram of an image.
Histogram of an Image
The histogram of a digital image with gray levels in the range is a discrete function
where is the -th gray level and is the number of pixels in the image having that gray level. Plotting (or the normalized histogram , where is the total number of pixels) against gives the histogram.
Interpretation:
- It shows the frequency/distribution of intensities in the image.
- Levels concentrated to the left dark image; to the right bright image; a narrow spread low contrast; a wide, even spread over the full range high contrast.
Uses: image analysis and statistics, thresholding/segmentation, and the basis for enhancement techniques such as histogram equalization and histogram specification (matching).
What is a low-pass filter? How is it used for smoothing?
Low-Pass Filter
A low-pass filter (LPF) is a filter that passes low spatial frequencies and attenuates high frequencies. Since high frequencies correspond to sharp transitions — edges, fine detail and noise — removing them blurs/smooths the image.
Frequency domain: , where is large near the origin (low frequencies) and small for high — e.g. the ideal, Butterworth, or Gaussian low-pass filter.
Spatial domain (smoothing): convolution with an averaging (mean) mask whose coefficients are positive and sum to 1, e.g. the averaging kernel
Each output pixel is the average of its neighbourhood, so abrupt intensity changes (noise) are smoothed out.
Use for smoothing: low-pass filtering is used for noise reduction and to remove small irrelevant detail before further processing. The trade-off is blurring of edges, which increases with filter (mask) size or a lower cutoff frequency.
Differentiate between lossy and lossless image compression.
Lossy vs Lossless Compression
| Aspect | Lossless compression | Lossy compression |
|---|---|---|
| Reversibility | Reconstructed image is identical to the original (no data lost) | Reconstructed image is an approximation; some data discarded |
| Compression ratio | Lower (typically –) | Higher (often or more) |
| Quality | No loss of quality | Quality degrades with higher compression |
| Redundancy removed | Coding & inter-pixel (statistical) redundancy only | Also removes psychovisual redundancy (info the eye cannot perceive) |
| Techniques | Run-Length Encoding, Huffman coding, LZW, arithmetic coding | Transform coding (DCT/JPEG), wavelet, quantization, predictive (DPCM) |
| Formats | PNG, GIF, TIFF (lossless), BMP | JPEG, MPEG, lossy WebP |
| Use cases | Medical/satellite imaging, archival, text/line art where exactness matters | Photographs, web images, video where small quality loss is acceptable |
Summary: Lossless trades lower compression for perfect fidelity; lossy trades some quality for much smaller file size.
What are the properties of the 2D Fourier transform?
Properties of the 2-D Fourier Transform
For a 2-D image with transform , key properties are:
- Linearity: .
- Separability: the 2-D DFT can be computed as two successive 1-D DFTs — first along rows, then along columns (greatly speeds computation with FFT).
- Translation (shift): a spatial shift only changes the phase, not the magnitude:
Multiplying by centres the spectrum at . 4. Periodicity: the 2-D DFT and its inverse are periodic with periods and : . 5. Conjugate symmetry: for a real image, , so (the magnitude spectrum is symmetric). 6. Rotation: rotating by an angle rotates by the same angle. 7. Scaling: — expansion in one domain compresses the other. 8. Convolution theorem: , and multiplication in space corresponds to convolution in frequency (basis of frequency-domain filtering). 9. Average value: equals the average gray level (DC component). 10. Distributivity over addition (but not over multiplication).
Explain edge detection using the Sobel operator.
Edge Detection with the Sobel Operator
Edges are locations of rapid intensity change, detected using the gradient of the image. The Sobel operator is a discrete derivative operator that estimates the gradient while smoothing (reducing noise) because of its weighted centre coefficients.
Sobel masks (horizontal and vertical):
Procedure:
- Convolve the image with to get the horizontal gradient and with to get the vertical gradient at each pixel.
- Compute the gradient magnitude:
- Optionally compute the gradient direction: .
- Threshold the magnitude: pixels with are marked as edge pixels.
The centre weight of gives the Sobel operator better noise smoothing and edge detection than the simpler Prewitt operator, making it widely used for detecting both horizontal and vertical edges.
What is image restoration?
Image Restoration
Image restoration is the process of recovering or reconstructing an image that has been degraded by using a priori knowledge of the degradation phenomenon and an objective mathematical/probabilistic model of it. Unlike enhancement (which is subjective), restoration is objective — it tries to undo a known/estimated degradation to obtain an estimate as close as possible to the original .
Degradation model:
or in the frequency domain , where is the degradation function (e.g., blur PSF) and is additive noise.
Goal: apply a restoration filter to to estimate .
Common techniques: inverse filtering, Wiener (least-squares) filtering, constrained least-squares filtering, and noise-removal spatial filters (mean, median, order-statistic filters). Typical degradations addressed include motion blur, out-of-focus blur, and various types of noise.
Write short notes on the RGB and HSI colour models.
RGB Colour Model
The RGB model represents a colour as an additive combination of three primaries — Red, Green, Blue. Each pixel is a triple , and any colour is a point in a unit colour cube with black at the origin and white at (or for 8-bit/channel). Equal R, G, B values lie on the gray (diagonal) line.
- Hardware-oriented: matches how monitors, cameras and scanners capture/display colour.
- Drawback: the three components are highly correlated and the model is not intuitive for humans — it is hard to specify a desired colour directly.
HSI Colour Model
The HSI model describes colour the way humans perceive it, using three components:
- Hue (H): the dominant colour / wavelength (e.g., red, green); an angle –.
- Saturation (S): purity of the colour — how much white is mixed in (0 = gray, 1 = pure colour).
- Intensity (I): brightness, .
Advantage: it decouples intensity (I) from colour (H, S), so grayscale-style processing (e.g., enhancement, edge detection) can be done on the intensity channel without distorting colour. This makes HSI ideal for image-processing algorithms based on human colour perception. RGB and HSI are inter-convertible by standard transformation equations.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) question paper 2074?
- The full BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) 2074 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
- Does the Image Processing (BSc CSIT, CSC413) 2074 paper come with solutions?
- Yes. Every question on this Image Processing (BSc CSIT, CSC413) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
- How many marks is the BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) 2074 paper?
- The BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) 2074 paper carries 60 full marks and is meant to be completed in 180 minutes, across 12 questions.
- Is practising this Image Processing (BSc CSIT, CSC413) past paper free?
- Yes — reading and attempting this Image Processing (BSc CSIT, CSC413) past paper on Kekkei is completely free.