BSc CSIT (TU) Science Image Processing (BSc CSIT, CSC413) Question Paper 2077 Nepal
This is the official BSc CSIT (TU) (Science stream) Image Processing (BSc CSIT, CSC413) question paper for 2077, 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 2077 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Explain image enhancement in the spatial domain. Discuss point processing techniques (negative, log, power-law) and histogram processing.
Image Enhancement in the Spatial Domain
Spatial-domain enhancement operates directly on the pixels of an image. A general transformation is written as:
where is the input image, the output image, and an operator defined over a neighbourhood of . When the neighbourhood is a single pixel (), becomes an intensity (gray-level) transformation , where and are the input and output intensities.
Point Processing Techniques
1. Image Negative
Reverses the intensity levels, producing a photographic negative. Useful for enhancing white/grey detail embedded in dark regions (e.g. medical X-rays):
where is the number of gray levels (e.g. for 8-bit images).
2. Log Transformation
It maps a narrow range of low intensities into a wider range and compresses high intensities. It is used to expand dark pixel values and to display data with a large dynamic range (e.g. Fourier spectra). is a scaling constant.
3. Power-Law (Gamma) Transformation
- brightens the image (expands dark levels), similar to the log curve.
- darkens the image (expands bright levels).
Gamma transformations are used for contrast manipulation and gamma correction of display devices.
Histogram Processing
The histogram of an image plots the frequency of each intensity level (or the normalized probability ). It describes the global tonal distribution; dark images cluster at low levels, bright images at high levels, and high-contrast images spread across the full range.
Histogram Equalization redistributes intensities so the output histogram is approximately uniform, improving contrast. The transformation is the cumulative distribution function (CDF):
Histogram Specification (Matching) maps the histogram to a desired target shape rather than a flat one, giving finer control over the result.
Summary
Spatial enhancement improves visual quality directly on pixels. Point operations (negative, log, power-law) remap intensities by a fixed function, while histogram processing uses the image's own statistics to enhance contrast.
What is the Butterworth filter? Explain Butterworth high-pass and low-pass frequency-domain filters for image sharpening and smoothing.
Butterworth Filter (Frequency-Domain)
Filtering in the frequency domain multiplies the Fourier transform of an image by a filter transfer function :
The Butterworth filter is a smooth filter whose transfer function provides a gradual transition between passed and attenuated frequencies, controlled by an order . Unlike the ideal filter (sharp cut-off, causing ringing) and the Gaussian filter (no ringing), the Butterworth filter is a compromise: low ringing and a tunable sharpness via .
Let be the distance from the centre of the (centered) frequency rectangle, and the cut-off frequency.
Butterworth Low-Pass Filter (BLPF) — Smoothing
- Passes low frequencies and attenuates high frequencies.
- Low frequencies represent smooth, slowly varying intensity; high frequencies represent edges and noise. Removing high frequencies smooths/blurs the image and reduces noise.
- A larger order makes the filter approach the ideal LPF (more ringing); behaves like a Gaussian (no ringing).
Butterworth High-Pass Filter (BHPF) — Sharpening
- Passes high frequencies and attenuates low frequencies.
- Since edges and fine detail are high-frequency content, the BHPF sharpens the image by emphasizing edges and boundaries while suppressing the slowly varying background.
Comparison
| Property | Low-pass (BLPF) | High-pass (BHPF) |
|---|---|---|
| Passes | Low frequencies | High frequencies |
| Effect | Smoothing / blur / denoise | Sharpening / edge emphasis |
| At |
Summary
The Butterworth filter offers a smoothly controllable transition (order ) between ideal and Gaussian behaviour: the low-pass version smooths, and the high-pass version sharpens an image.
Explain image segmentation techniques. Discuss edge-based and region-based segmentation in detail.
Image Segmentation
Segmentation partitions an image into meaningful regions (objects and background) so that pixels in each region share some property. Formally the image is divided into regions such that:
- (complete coverage)
- Each is connected, for
- A predicate is TRUE for each region and FALSE for the union of any two adjacent regions.
Segmentation approaches rely on two basic properties of intensity: discontinuity (edge-based) and similarity (region-based, thresholding).
1. Edge-Based Segmentation (Discontinuity)
Detects boundaries where intensity changes abruptly.
- Gradient (first-derivative) operators detect edges as points of maximum gradient magnitude:
Implemented with Sobel, Prewitt, Roberts masks.
- Laplacian (second-derivative) detects edges at zero-crossings; the Laplacian of Gaussian (LoG / Marr-Hildreth) first smooths to reduce noise sensitivity.
- Canny edge detector is the optimal multi-stage method: Gaussian smoothing → gradient → non-maximum suppression → hysteresis (double) thresholding.
- Detected edge pixels are then linked (local processing, Hough transform) into continuous boundaries.
Pros: good for sharp boundaries. Cons: sensitive to noise; edges may be broken/incomplete.
2. Region-Based Segmentation (Similarity)
Groups pixels that satisfy a similarity predicate.
- Region Growing: start from seed pixels and append neighbouring pixels whose properties (intensity, colour, texture) satisfy , until no more pixels can be added.
- Region Splitting and Merging: start with the whole image; recursively split any region where is FALSE (e.g. quadtree), then merge adjacent regions whose union satisfies .
Pros: produces connected, closed regions; more robust to noise than pure edge detection. Cons: sensitive to seed selection and predicate; can be computationally expensive.
Comparison
| Edge-based | Region-based | |
|---|---|---|
| Basis | Discontinuity | Similarity |
| Output | Boundaries (may be open) | Closed connected regions |
| Noise | Sensitive | More robust |
Summary
Edge-based methods locate object boundaries via intensity discontinuities, while region-based methods group similar pixels into homogeneous regions; the two are often combined for reliable segmentation.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Define a digital image and a pixel.
Digital image: A digital image is a two-dimensional function where are spatial coordinates and the amplitude at any point is the intensity (gray level), with both the coordinates and amplitudes being finite, discrete quantities. It is obtained by sampling (discretizing coordinates) and quantization (discretizing intensity), and is represented as an matrix of numbers.
Pixel: A pixel (picture element) is a single element of that matrix — the smallest addressable unit of a digital image. Each pixel has a location and an intensity value (e.g. 0–255 for an 8-bit grayscale image, or an (R,G,B) triple for colour).
What is gamma correction?
Gamma correction is a nonlinear intensity transformation that follows the power-law:
where is the input intensity (normalized to ), the output, a constant, and the gamma exponent.
It compensates for the nonlinear response of display devices (CRT/LCD monitors), whose output luminance is approximately a power function of the input voltage. Without correction images appear too dark or too bright.
- : brightens the image / expands dark tones.
- : darkens the image / expands bright tones.
- : linear (no change).
Applying the inverse exponent corrects the display so the perceived brightness matches the intended values; it is also used for general contrast enhancement.
Explain the histogram equalization process briefly.
Histogram Equalization
Histogram equalization is a contrast-enhancement technique that redistributes pixel intensities so that the output histogram is approximately uniform, spreading values across the full available range.
Procedure:
- Compute the histogram: count pixels at each level for .
- Compute the normalized probability (PDF): , where is the total number of pixels.
- Compute the cumulative distribution function (CDF): .
- Map each level using:
- Round to the nearest integer and replace each pixel's value accordingly.
Result: intensities that were clustered in a narrow band are stretched across the range, increasing global contrast. It is automatic (no parameters) but applies globally and can over-enhance noise; adaptive (local) histogram equalization addresses this.
What is image sharpening? Which filters are used?
Image Sharpening
Image sharpening enhances fine detail, edges, and transitions in intensity, making an image appear crisper. It is the opposite of smoothing: smoothing averages (integration), whereas sharpening uses differentiation to emphasize regions of rapid intensity change.
Filters Used
Spatial domain (high-pass / derivative filters):
- Laplacian (second derivative):
The sharpened image is (or depending on mask sign). A common mask is:
0 -1 0
-1 5 -1
0 -1 0
- Gradient (first derivative): Sobel / Prewitt operators emphasize edges via .
- Unsharp masking & High-boost filtering: subtract a blurred (low-pass) version from the original to obtain a detail mask, then add it back: .
Frequency domain (high-pass filters): Ideal, Butterworth, and Gaussian high-pass filters pass high frequencies (edges) and attenuate low frequencies, sharpening the image.
In all cases, high-frequency / high-pass operators are used because edges correspond to high spatial frequencies.
Explain the Haar transform.
Haar Transform
The Haar transform is one of the simplest orthogonal (unitary) image transforms, derived from the Haar functions — the oldest known wavelet basis. It decomposes a signal/image into a low-frequency average (approximation) component and high-frequency difference (detail) components, making it a basic discrete wavelet transform.
Transform form: For an image , the transform is
where is the orthogonal Haar matrix ( a power of 2) whose rows are sampled Haar functions, and .
Basic Haar matrix:
The first row computes the sum/average (low-pass) and the second the difference (high-pass).
Properties / Uses:
- Real, orthogonal, and very fast to compute (only additions/subtractions, no multiplications by irrational numbers beyond scaling).
- Provides both spatial and frequency (multi-resolution) localization, unlike the Fourier transform.
- Used in image compression, edge detection, feature extraction, and as the simplest example of wavelet-based processing.
What is thresholding in segmentation?
Thresholding in Segmentation
Thresholding is a region-based segmentation technique that separates objects from the background based on intensity. A threshold value partitions pixels into classes:
Pixels above the threshold become foreground (object), the rest background, producing a binary image.
Types:
- Global thresholding: a single for the whole image (works when object and background have distinct, bimodal intensity peaks).
- Otsu's method: automatically selects by maximizing between-class variance.
- Adaptive / local thresholding: varies across the image to handle non-uniform illumination.
- Multiple thresholding: several thresholds separate more than two classes.
It is simple and fast but sensitive to noise and uneven lighting.
Differentiate between opening and closing in morphology.
Opening vs Closing (Morphology)
Both are compound morphological operations built from erosion () and dilation () using a structuring element on a binary image .
Opening — erosion followed by dilation:
Closing — dilation followed by erosion:
| Aspect | Opening | Closing |
|---|---|---|
| Order | Erode then dilate | Dilate then erode |
| Effect | Removes small objects, thin protrusions, and noise; smooths object contours from outside | Fills small holes, narrow gaps, and breaks; smooths contours from inside |
| Removes | Bright small specks / spurs | Small dark holes / thin gaps |
| Geometry | Breaks narrow connections | Joins narrow breaks |
Both are idempotent () and preserve overall object size, unlike plain erosion/dilation. Opening tends to remove foreground noise; closing tends to remove background holes.
What is run-length encoding in image compression?
Run-Length Encoding (RLE)
Run-Length Encoding is a simple lossless image-compression technique that exploits spatial (interpixel) redundancy — long runs of identical pixel values. Instead of storing each pixel, it stores each run as a pair: (value, run-length).
Example (a row of pixels):
Original: W W W W W B B W W W W W W W (14 pixels)
RLE: (W,5) (B,2) (W,7) (3 pairs)
For binary images, only the run lengths need be stored (the value alternates between 0 and 1). It is the basis of compression in formats such as BMP, TIFF, and fax (CCITT) standards, and is used as a stage in JPEG (encoding runs of zero AC coefficients).
Pros: simple, fast, lossless, very effective on images with large uniform areas (binary/graphics). Cons: poor on noisy or highly detailed natural images, where it can even increase size.
Write short notes on the Walsh transform.
Walsh Transform
The Walsh transform is a non-sinusoidal, orthogonal image transform whose basis functions are Walsh functions — square waves taking only the values and . It is closely related to the Hadamard transform (the Walsh-Hadamard transform), differing only in the ordering of the basis functions (Walsh ordering = sequency order, by number of sign changes).
1-D Walsh transform of a sequence of length :
where is the -th bit of . The kernel values are .
Properties / Uses:
- Real, symmetric, orthogonal; the inverse has the same form (separable and easily extended to 2-D as ).
- Computed using only additions and subtractions (no multiplications), so it is much faster than the Fourier transform.
- Basis functions are ordered by sequency (analogous to frequency).
- Applications: image compression, feature extraction, and signal/image coding where computational simplicity matters.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) question paper 2077?
- The full BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) 2077 (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) 2077 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) 2077 paper?
- The BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) 2077 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.