[go: up one dir, main page]

0% found this document useful (0 votes)
21 views2 pages

DIP Questions and Answers

The document provides an overview of digital image processing, defining digital images and their manipulation for enhancement and machine perception. It discusses common image formats, major tasks in digital image processing, and includes code snippets for loading and processing images in both Processing and MATLAB. Additionally, it describes MATLAB's capabilities and differentiates between specific commands used within the environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

DIP Questions and Answers

The document provides an overview of digital image processing, defining digital images and their manipulation for enhancement and machine perception. It discusses common image formats, major tasks in digital image processing, and includes code snippets for loading and processing images in both Processing and MATLAB. Additionally, it describes MATLAB's capabilities and differentiates between specific commands used within the environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Digital Image Processing - Q&A Based

on Lecture Files
1. Define Digital Image and Digital Image Processing
A digital image is a representation of a two-dimensional image as a finite set of digital
values known as pixels. These pixel values represent characteristics like gray levels, colors,
heights, or opacities. Since it is digitized, it’s always an approximation of the real-world
scene.

Digital Image Processing (DIP) refers to the manipulation of digital image data using
computers to:
- Enhance pictorial information for human interpretation.
- Process image data for storage, transmission, and representation for machine perception.

2. Identify common image formats or types of images we can process


Common image formats mentioned include:
- 1 sample per point: Black & White or Grayscale.
- 3 samples per point: Red, Green, Blue (RGB).
- 4 samples per point: Red, Green, Blue, and Alpha (Opacity).
Most exercises focus on grayscale images.

3. What are two major tasks that digital image processing focuses on?
1. Improvement of pictorial information for human interpretation (e.g., enhancing medical
or satellite images).
2. Processing of image data for storage, transmission, and representation for machine
perception (e.g., object recognition, automated inspection).

4. Write Processing code to load an image into a sketch


PImage hog1;

void setup(){
size(700, 500);
hog1 = loadImage("hog.jpg");
}

void draw(){
image(hog1, 0, 0);
fill(0, 255, 0);
ellipse(300, 200, 10, 10);
}

5. Write MATLAB code to read and write an image


img = imread('image.jpg');
imwrite(img, 'new_image.jpg');

6. Write the code to create image matrix in MATLAB and show the image
A = uint8(255 * rand(256, 256));
imshow(A);

7. Describe MATLAB
MATLAB is a high-level programming language and interactive environment used for:
- Numerical computation
- Data visualization
- Algorithm development

It is widely applied in fields such as signal and image processing, control systems, and
computer vision.

8. Differentiate between CLC, CLEAR, WHO and WHOS in MATLAB


- clc: Clears the Command Window.
- clear: Removes variables from the workspace.
- who: Lists variable names in memory.
- whos: Provides detailed information (size, type, etc.) of variables in memory.

You might also like