LabSheet6

  • Upload
    hari

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

  • 7/23/2019 LabSheet6

    1/1

    Labsheet 6

    Histogram Processing

    1. Histogram Calculation: Given an image, Write a C program to compute the

    normalised histogram of the image and save it into a file hist.txt. Each row

    should contain two entries: the gray level intensity and frequency. Use gnuplot

    to view the histogram.

    2. Gray Level Slicing: Try to segment out the whitish tumour from the MRI

    image provided using gray level slicing specified by following graph.

    3. Contrast Stretching: Write a C program to improve the contrast of an image.

    The program should allow stretching the range of intensity values in the image

    to span a desired range specified by following graph.

    4. Histogram Equalization: Write a C program to equalise the histogram of the

    resulting image. Compare the histogram of the input and output images using

    gnuplot.

    5. Histogram Specification: Write a C program to change the histogram of the

    input image to a desired histogram. The desired histogram can be provided as atext file. Compare the histograms using gnuplot.

    1