You are on page 1of 5

DIP – Assignment # 1

(MS – 19 MTS)

©Dr J.Iqbal
Assignment
 Make Main Menu to select required action (Screen 1)
– Read 24-bit image and print information (Press I)
– Convert 24 bit to 8bit gray scale (Press G)
– Rotate image (Press R)
– Scale Image (Press S)
– Translate Image (Press T)
– Exit (Press X )

 Screen 2 (if I is pressed)


– Input File Name -> abc.bmp
– Reports success\failure and print following image information
– Image width
– Image height
– Resolution
– Image size
– [Pressing Enter should show Screen 1]

2 ©Dr J.Iqbal
Assignment
 Screen 3 (if G is pressed)*
– Enter name of output gray Image
– [File has been successfully converted to 8 bit gray scale]
– Press Enter to go back to main menu

 Screen 4 (if R is pressed)*


– Enter name of output rotated Image
– User must specify rotation angle.
– Use the gray scale image to rotate ( Take gray scale image from
previous screen ). Calculate new size according to rotation angle.
– Output: Image has been successfully rotated and show information of
new image. New image must be complete, not cropped image.
– Press Enter to go back to main menu

*It should take Image name from image reading part (screen 1)
and should not query again.

3 ©Dr J.Iqbal
Assignment
 Screen 5 (if S is pressed)*
– Enter name of output Image
– User must specify scaling factor for X and Y axis.
– Use the gray scale image to scale ( Take gray scale image from previous
screen ).
– Output: Image has been successfully scaled and show information of new
image.
– Press Enter to go back to main menu
 Screen 6 (if T is pressed)*
– Enter name of output Translated Image
– User must specify translation in X and Y axis.
– Use the gray scale image to translate ( Take gray scale image from previous
screen ).
– Output: Image has been successfully translated and show information of
new image.
– Press Enter to go back to main menu
*It should take Image name from image reading part (screen 1)
4
and should not query again. ©Dr J.Iqbal
Assignment

 Successful image rotation will give you 24% marks.


 Successful image translation will give you 23% marks
 Successful image scaling will give you 23% marks.
 Conversion to gray scale carries 20% marks
 Printing image information carries 10% marks.
 You have to do this assignment in Python, VC++ or Matlab
[No built-in function and No third party toolbox to be used]
 Email the zipped project to assignment.mts@gmail.com

 Deadline : 16th Nov, 2019

5 ©Dr J.Iqbal

You might also like