Question

a) Briefly describe the two forms of quantization used in image processing 2 marks b) Consider the 1D image fragment below. G

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given 1-D Image                              = [210 210 90 90 210 210]

  1. 1x3 Mean Filter Output = Pi = (P(i-1) + P(i) + P(i+1) / 3

                  Therefore, Padding the 1-D Input Image with zeros =

                  [0        210,                     210,                    90,                   90,                     210,                      210         0      ]

                  [    (0+210+210)/3, (210+210+90)/3, (210+90+90)/3, (90+90+210)/3, (90+210+210)/3, (210+210+0)/3]

[         140                       170                       130                   170]                  170                        140    ]

  1. 1x3 median filter = Median of 3 Pixels

Therefore, Padding the 1-D Input Image with zeros =

                                                         [[0        210,                     210,                    90,                   90,                     210,                      210         0      ]

1x3 Median Filter Image = [(0, 210, 210), (210, 210, 90),     210, 90, 90),     (90, 90, 210),     (90, 210, 210),       (210, 210, 0) ]

                                        = [      210,                   210,                    90,                   90,                   210,                         210]

(iii)

Image boundaries are points where there is sharp change in pixel intensities. Therefore, the image boundaries exists at points (210, 90) and (90, 210) pixel intensity pairs.

Image Histogram is defined as the graph between Gray color intensity and corresponding no. of pixels. The image histogram is basically probability distribution function (PDF). Image histogram provides color profile of the image.

Below is the matlab code for extracting the image histogram:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

close all,
clear all,
clc,

ProjectPath = pwd;
ImagePath = strcat(ProjectPath,'\Coin.jpg');
Orig = imread(ImagePath);
GrayImg = rgb2gray(Orig);
subplot(2,1,1); imshow(Gray); title('Original Input Image');
subplot(2,2,2); imhist(GrayImg); title('Histogram');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Histogram Original Input Image 4000 3500 3000 2500 2000 1500 1000 500 250 200 150 100

Add a comment
Know the answer?
Add Answer to:
a) Briefly describe the two forms of quantization used in image processing 2 marks b) Consider...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Question 4: Image processing 12 marks 11) Briefly describe the quantization in a grey scale image....

    Question 4: Image processing 12 marks 11) Briefly describe the quantization in a grey scale image. 2 marks 12) Consider the 1D image fragment below. Filter this image with: 4marks (1 mark each) () 1x3 median filter (ii State how the image boundaries are handled. 60 180 180 60 180 180 (iv) Give an example of when it would be beneficial disadvantage median filter, but also state a use 13) What is an image histogram and what information does it...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT