Given 1-D Image = [210 210 90 90 210 210]
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 ]
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');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
a) Briefly describe the two forms of quantization used in image processing 2 marks b) Consider...
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...