U-1,2,3 Impanswers
U-1,2,3 Impanswers
TECHNOLOGY, DHARWAD
Department of Computer Science and Engineering
Digital Image Processing Assignment Questions
Course Instructors : Sem : VI A and B Div
Mar-July 2021
Dr. S. B. Kulkarni
UNIT – I
1. Write the fundamental steps in Digital Image Processing.
Ans:-
• Image acquisition
• Image enhancement
• Image restoration
• Morphological processing
• Segmentation
• Obj recognition
• Representation & description
14.Find the minimum path for the given image I for the vector v
= {1,2,3} by
considering unit distance between the connected pixels using 4,
8 and M
connectivity.
Image I
3 1 2 1 PointQ
2202
1211
Point P 1 0 1 2
s = cr^Gamma
Power-Law (Gamma) Transformations:-
• Power-law transformations have the basic form where c
and are positive constants.
• Sometimes is written as to account for an offset. However,
offsets typically are an issue of display calibration and as a
result they are normally ignored.
• Plots of s versus r for various values of shown. As in the case
of the log transformation, power-law curves with fractional
values of map a narrow range of dark input values into a
wider range of output values, with the opposite being true
for higher values of input levels.
2. Represent Rotation and Scaling of a point on a 2-D plain and
derive an
equation in matrix form.
Ans:-
In rotation, we rotate the object at particular angle θ from
its origin. From the following figure, we can see that the
point P is located at angle φ from the horizontal X
coordinate with distance r from the origin.
Let us suppose you want to rotate it at the angle θ. After
rotating it to a new location, you will get a new point P’
Using standard trigonometric the original coordinate of
point PX,Y can be represented as –
X=rcosϕ......(1)
Y=rsinϕ......(2)
x′=rcos(ϕ+θ)=rcosϕcosθ−rsinϕsinθ.......(3)
y′=rsin(ϕ+θ)=rcosϕsinθ+rsinϕcosθ.......(4)
Contrast stretching
One of the simplest piecewise linear functions is a contrast-
stretching transformation. Contrast stretching is a process that
expands the range of intensity levels in an image so that it spans
the full intensity range of the recording medium or display
device.
Intensity-level slicing
Highlighting a specific range of intensities in an image often is
of interest.Applicationsinclude enhancing features such as
masses of water in satellite imagery and enhancing flaws in X-
ray images. The process, often called intensity-level-slicing.
Bit-plane slicing
An 8-bit image may be considered as being composed of eight
1-bit planes, with plane 1 containing the lowest-order bit of all
pixels in the image and plane 8 all the highest-order bits. The
lower-order planes contribute to more subtle intensity details in
the image. The image can be sliced by any bit planes and
corresponding image will be resulted.
Given I=
44444
34543
35553
34543
44444
Gray-level 0 1 2 3 4 5 6 7
No.of pixels 0 0 0 6 14 5 0 0
Running sum 0 0 0 6 20 25 25 25
Normalization 0 0 0 6/25 20/25 1 1 1
Multiply by 0x7=0 0 0 42/25 140/25 7 7 7
max gray level
Max-gray-level 0 0 0 2 6 7 7 7
One to one 0 1 2 3 4 5 6 7
correspondence
0 0 0 2 6 7 7 7
New image I’=
6 6 6 6 6
2 6 7 6 2
2 7 7 7 2
2 6 7 6 2
6 6 6 6 6
Ans:-
Given 3-bit image (L=8) of size 64 × 64 pixels (MN =4096)
rk 0 1 2 3 4 5 6 7
nk 790 1023 850 656 329 245 122 81
Pr(rk)= nk/MN 0.19 0.25 0.21 0.16 0.08 0.06 0.03 0.02
Running sum 0.19 0.44 0.65 0.81 0.89 0.95 0.98 1
Pr(rk)x7 1.33 3.08 4.55 5.67 6.23 6.65 6.86 7
Max-gray-level 1 3 5 6 6 7 7 7
One to one 0 1 2 3 4 5 6 7
correspondence
1 3 5 6 6 7 7 7
****************************************************