BSc CSIT (TU) Science Image Processing (BSc CSIT, CSC413) Question Paper 2078 Nepal
This is the official BSc CSIT (TU) (Science stream) Image Processing (BSc CSIT, CSC413) question paper for 2078, 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 2078 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Explain the Fourier transform application in digital image processing and discuss its different properties (separability, translation, periodicity, symmetry).
Fourier Transform in Digital Image Processing
The Fourier Transform (FT) converts an image from the spatial domain into the frequency domain , representing the image as a sum of sinusoids of different frequencies, amplitudes and phases. Low frequencies correspond to slowly varying intensities (smooth regions/background) and high frequencies correspond to rapid changes (edges, noise, fine detail).
The 2-D Discrete Fourier Transform (DFT) of an image is:
and its inverse:
Applications
- Frequency-domain filtering: low-pass (smoothing/noise removal), high-pass (sharpening/edge enhancement), band-reject (removing periodic noise).
- Image restoration via inverse and Wiener filtering of degradation/blur.
- Image compression (energy compaction into few frequency coefficients, basis of DCT/JPEG).
- Fast convolution using the convolution theorem ().
- Texture and pattern analysis, periodic-noise detection.
Properties of the 2-D DFT
1. Separability. The 2-D transform separates into two 1-D transforms (rows then columns):
This allows computing the 2-D DFT by successive 1-D DFTs, greatly reducing computation (and enables use of the FFT).
2. Translation (shifting). A spatial shift only adds a phase, leaving the magnitude unchanged:
Multiplying the image by shifts the spectrum so that the origin (DC term) moves to the centre — used for display and centering of the spectrum.
3. Periodicity. Both and the implied are periodic with periods and :
Hence the DFT describes one period of an infinite periodic function; this is why centering and proper windowing matter.
4. Symmetry / conjugate symmetry. For a real image :
The magnitude spectrum is symmetric about the origin, so only half the spectrum need be stored/computed.
Conclusion
The Fourier transform is fundamental to frequency-domain image processing; its separability makes computation efficient, while translation, periodicity and symmetry properties govern how filters are designed, how the spectrum is centered for display, and how storage is reduced.
What is image segmentation? Explain adaptive thresholding and the region split-and-merge technique with examples.
Image Segmentation
Image segmentation is the process of partitioning a digital image into multiple meaningful, non-overlapping regions (sets of pixels) such that pixels within a region are similar with respect to some property (intensity, colour, texture) while adjacent regions differ. It is a key step that bridges low-level processing and high-level analysis (object detection, recognition). Two broad approaches are discontinuity-based (edges) and similarity-based (thresholding, region growing, split-and-merge).
Adaptive (Local) Thresholding
A single global threshold classifies a pixel as object or background:
Global thresholding fails when illumination is non-uniform, because one cannot suit the whole image.
In adaptive thresholding the threshold varies with position, computed from a local neighbourhood around each pixel (e.g. local mean or median minus a constant , or Otsu applied per sub-block):
where is a window centred at .
Example. A document scanned with a shadow on one side: a global would turn the dark side fully black, but adaptive thresholding using a local mean correctly separates text from background across both bright and shaded areas.
Region Split-and-Merge
This is a region-based technique using a quadtree representation. A predicate tests homogeneity of region (e.g. variance below a limit, or intensity threshold).
Algorithm:
- Split: Start with the whole image as one region . If is FALSE (region not homogeneous), split into four equal quadrants. Repeat recursively for each quadrant until every region satisfies .
- Merge: Merge any two adjacent regions for which is TRUE.
- Stop when no further split or merge is possible.
Example. For an image with a uniform object on a uniform background, splitting recursively divides mixed blocks straddling the boundary into smaller homogeneous blocks (forming a quadtree); merging then groups all object blocks into one region and all background blocks into another, giving two final segments.
Comparison
- Adaptive thresholding handles uneven illumination but ignores spatial connectivity.
- Split-and-merge guarantees connected, homogeneous regions but is sensitive to the homogeneity predicate and can produce blocky boundaries.
Explain the Butterworth high-pass frequency domain filter for image sharpening. Derive its transfer function and discuss its effect.
Butterworth High-Pass Filter (BHPF) for Image Sharpening
Image sharpening highlights fine detail and edges, which correspond to high spatial frequencies. A high-pass filter passes high frequencies and attenuates low frequencies (smooth background). Sharpening in the frequency domain follows:
where is the DFT of the image and the filter transfer function; the result is obtained by inverse DFT.
An ideal HPF has a sharp cutoff and produces ringing artifacts. The Butterworth filter gives a smooth, gradual transition, reducing ringing.
Transfer Function (Derivation)
The Butterworth low-pass filter (BLPF) of order with cutoff is:
where is the distance from the centre of the (centered) frequency rectangle.
A high-pass filter is the complement of the corresponding low-pass filter:
Substituting:
Multiplying numerator and denominator by gives the standard BHPF form:
Effect / Behaviour
- At , (the half-power cutoff), regardless of order .
- For (low frequencies, near centre) → background/smooth areas are suppressed.
- For (high frequencies) → edges and fine detail are passed → sharpening.
- The order controls steepness: small gives a gentle transition (smooth result, almost no ringing); large approaches the ideal HPF (sharper cutoff, more ringing).
- Because the DC term is removed/attenuated, the output has near-zero average and edges appear on a dark background; adding a constant (high-frequency-emphasis filtering, ) restores overall brightness while keeping the sharpening.
Conclusion
The BHPF sharpens images by amplifying high-frequency edge content while smoothly attenuating low frequencies, offering a controllable trade-off (via ) between sharpness and ringing that the ideal HPF cannot provide.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Define histogram of an image and explain its uses.
Histogram of an Image
The histogram of a digital image is a discrete function that represents the frequency of occurrence of each intensity (gray) level. For an image with intensity levels ():
where is the number of pixels having intensity . The normalized histogram (with = total pixels) gives the probability of each gray level. Plotted as gray level (x-axis) vs. count/probability (y-axis), it summarizes the tonal distribution but contains no spatial information.
Uses
- Brightness/contrast assessment: a histogram clustered at low values = dark image; at high values = bright image; spread over the full range = high contrast.
- Histogram equalization / stretching to enhance contrast.
- Histogram matching (specification) to give an image a desired tonal distribution.
- Thresholding/segmentation: a bimodal histogram suggests a good threshold between object and background.
- Image analysis & comparison (texture, exposure correction, content-based retrieval).
Explain the different types of filters used in image processing.
Types of Filters in Image Processing
Filters modify pixel values using a neighbourhood (spatial domain) or frequency components (frequency domain). Main types:
By domain
- Spatial-domain filters – operate directly on pixels via convolution with a mask/kernel.
- Frequency-domain filters – multiply the image's Fourier transform by a transfer function .
By effect / pass-band
- Low-pass (smoothing) filters – attenuate high frequencies → blur, noise removal. Examples: averaging/mean filter, Gaussian filter, ideal/Butterworth LPF.
- High-pass (sharpening) filters – attenuate low frequencies, pass high → enhance edges/detail. Examples: Laplacian, ideal/Butterworth HPF, high-boost.
- Band-pass / band-reject filters – pass or remove a range of frequencies, e.g. notch filter to remove periodic noise.
By linearity
- Linear filters – output is a weighted (convolution) sum, e.g. mean, Gaussian, Laplacian.
- Non-linear filters – order/rank based, e.g. median filter (excellent for salt-and-pepper noise), max/min filters.
By purpose
- Smoothing (noise reduction), sharpening (edge enhancement), edge-detection (Sobel, Prewitt, Laplacian), and restoration (Wiener) filters.
What is the difference between smoothing and sharpening?
Smoothing vs. Sharpening
| Aspect | Smoothing | Sharpening |
|---|---|---|
| Goal | Blur the image, reduce noise and fine detail | Enhance edges and fine detail |
| Frequency content | Low-pass: attenuates high frequencies | High-pass: emphasizes high frequencies |
| Operation | Averaging / integration of neighbouring pixels | Differentiation of pixel values |
| Typical masks | Mean (box), Gaussian, median | Laplacian, Sobel/Prewitt gradient, high-boost |
| Effect on edges | Edges become blurred/softened | Edges become more pronounced |
| Use | Noise removal, reduce false contours | Highlight detail, improve perceived clarity |
Summary: Smoothing is a low-pass / averaging operation that suppresses rapid intensity changes (noise, detail), whereas sharpening is a high-pass / differencing operation that amplifies them to make edges crisper. They are conceptually opposite: smoothing integrates, sharpening differentiates.
Explain image negatives and their application.
Image Negatives
An image negative is a point (intensity) transformation that reverses the intensity levels of an image, so that dark areas become light and light areas become dark — like a photographic negative. For an image with intensity range , the transformation is:
where is the input intensity and the output. For an 8-bit image (), (e.g. , , ).
It is a linear, reversible transformation with a transformation curve that is a straight line of slope .
Applications
- Medical imaging: enhancing white/gray detail embedded in dark regions, e.g. examining tissue in X-rays / mammograms, where small bright structures are easier to see against a dark inverted background.
- Bringing out detail in the dark regions of an image where the eye perceives differences better after inversion.
- A pre-processing step in some enhancement and analysis pipelines, and for producing photographic-style negative effects.
What is the Discrete Fourier Transform (DFT)?
Discrete Fourier Transform (DFT)
The Discrete Fourier Transform transforms a finite, discrete (sampled) signal/image from the spatial domain to the frequency domain, expressing it as a sum of complex sinusoids. It is the discrete, computable counterpart of the continuous Fourier transform.
1-D DFT of a sequence , :
Inverse: .
2-D DFT of an image :
is generally complex; its magnitude is the frequency spectrum and is the phase. (the DC term) equals the average intensity times . The DFT is the basis of frequency-domain filtering and compression, and is computed efficiently using the Fast Fourier Transform (FFT) in instead of .
Define boundary and region in an image.
Boundary and Region in an Image
Region. A region is a connected set of pixels that share some common property (similar intensity, colour or texture). Formally, segmentation partitions an image into regions such that:
- (they cover the whole image),
- each is connected,
- for (disjoint),
- (each region is homogeneous), and for adjacent regions (different regions are dissimilar).
A region is described by its interior properties (area, mean intensity, texture).
Boundary (border/contour). The boundary of a region is the set of pixels of that region which have at least one neighbour belonging to a different region (or to the background). It forms a closed curve that separates the region from its surroundings and defines the region's shape/outline.
Relationship: A region is defined by what is inside (interior, similarity-based), while a boundary is defined by the edge between regions (discontinuity-based). Together they are dual ways of describing an object — region-based and boundary-based segmentation.
Explain Huffman coding for image compression.
Huffman Coding for Image Compression
Huffman coding is a lossless, variable-length, entropy coding technique that assigns shorter binary codes to more frequent intensity values and longer codes to rare ones, reducing coding redundancy. It produces an optimal prefix code (no code is a prefix of another, so decoding is unambiguous).
Algorithm
- Compute the probability/frequency of each gray level (from the image histogram).
- Treat each symbol as a leaf node; place all in a list.
- Repeatedly take the two lowest-probability nodes, combine them into a new node whose probability is their sum, and put it back. (Build the binary Huffman tree bottom-up.)
- Continue until a single root remains.
- Assign 0 to one branch and 1 to the other at each node; read root-to-leaf to obtain each symbol's codeword.
Example
Symbols with probabilities . Combining smallest pairs yields codes such as , , , . Average length bits/symbol, versus 2 bits for fixed-length coding — a saving.
Notes
- Compression efficiency approaches the entropy .
- It is lossless (exact reconstruction) and is used in JPEG (after DCT/quantization) and PNG.
- Requires the symbol probabilities (or a transmitted code table) to be known.
What is a structuring element in morphological operations?
Structuring Element in Morphological Operations
A structuring element (SE) is a small set / mask of pixels (with a defined shape and a designated origin) that is moved across the image to probe and interact with its features during morphological operations (erosion, dilation, opening, closing, hit-or-miss). It plays the role analogous to the kernel in convolution, but works with set operations rather than weighted sums.
Characteristics
- Has a shape (square, rectangle, disk, cross/diamond, line) and a size, chosen to match the features being extracted/removed.
- Has an origin (reference pixel, usually the centre) that is positioned at each image pixel.
- For binary morphology its elements are 0/1 (foreground positions); some entries may be "don't care".
- A flat SE has no height values; a non-flat SE (used in grayscale morphology) assigns intensity values.
Role
- In erosion, a pixel is kept only if the SE fits entirely inside the object → shrinks objects, removes small noise.
- In dilation, a pixel is set if the SE hits (overlaps) the object → grows objects, fills gaps.
- The choice of SE shape/size determines which structures are preserved, removed or detected (e.g. a horizontal line SE extracts horizontal features).
Write short notes on the Sine transform.
Short Note: Discrete Sine Transform (DST)
The Sine Transform is an orthogonal, real-valued unitary transform that represents a signal/image as a weighted sum of sine basis functions. It is closely related to the Fourier and cosine transforms but uses only sine terms, making it suitable for signals/images that are (approximately) odd-symmetric at the boundaries.
1-D Discrete Sine Transform
For a sequence of length :
The kernel is separable and symmetric, so the 2-D DST is obtained by applying the 1-D DST along rows then columns.
Properties / Uses
- Real, orthogonal transform (no complex arithmetic), so it is computationally convenient.
- Provides good energy compaction for certain signal statistics (low-correlation/first-order Markov sources with small correlation), where it can outperform the DCT.
- Used in image compression, transform coding, and fast solution of certain PDEs (it diagonalizes specific tridiagonal/Laplacian matrices).
- Being sine-based, it inherently assumes zero (odd) boundary values, which suits residual/difference images.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) question paper 2078?
- The full BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) 2078 (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) 2078 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) 2078 paper?
- The BSc CSIT (TU) Image Processing (BSc CSIT, CSC413) 2078 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.