Sunteți pe pagina 1din 3

Wednesday, November 13, 2019

BMEN.1200 BME Applications Image Analysis Workshop 1 Section: 202


Page 1 of 3
First Name: Nina Last Name: Vrankic Student ID: 01842520

RGB images
1. use imread to read in the image 'coloredChips.png' and store it in a variable called
coloredChipsImage.
rgb = imread('coloredChips.png');

2. Use imfinfo to determine the following information:


a. when was the image created

'20 Apr 2012 20:35:59 +0000'

b. when was the image last modified

'04-May-2012 15:35:42'

c. What are the physical dimensions of the image


Width: 518
Height: 391

d. What is the bitdepth of the image


24
3. Use the class function to determine the class (or data-type) of the image?
Character
4. use imtool to inspect the image
a. Provide pixel information of a pixel on a red chip (257,199) [254 76 36]
b. Provide pixel information of a pixel on a green chip(309,188) [5 166 94]
c. Provide pixel information of a pixel on a blue chip(267,174) [185 197 212]
d. Provide pixel information of a pixel on the background(280,154) [202 200 177]

5. Use figure, imshow to display the image, with the title 'coloredChips.png'
Figure, imshow(rgb)
6. Use File->Copy to copy the image and paste it into the space below
Red Slice
7. Use array indexing to obtain the red slice (image (:,:,1)) of the RGB image store it in a variable called
coloredChipsRedSlice
8. Use figure, imshow to display the image with the title 'coloredChips.png Red Slice'
9. Use File->Copy to copy the image and paste it into the space below
10. Provide a description of the image in comparison to the original image: coloredChipsImage.

Green Slice
11. Use array indexing to obtain the Green slice (image (:,:,2)) of the RGB image store it in a variable
called coloredChipsGreenSlice
12. Use figure, imshow to display the image with the title 'coloredChips.png Green Slice'
13. Use File->Copy to copy the image and paste it into the space below
14. Provide a description of the image in comparison to the original image: coloredChipsImage.

Blue Slice
15. Use array indexing to obtain the Blue slice (image (:,:,3)) of the RGB image store it in a variable
called coloredChipsBlueSlice
16. Use figure, imshow to display the image with the title 'coloredChips.png Blue Slice'
17. Use File->Copy to copy the image and paste it into the space below
18. Provide a description of the image in comparison to the original image: coloredChipsImage.

Gray Slice
19. Use rgb2gray function to obtain a gray-scale (black and white) version of the RGB image store it in a
variable called coloredChipsGrayScale
20. Use figure, imshow to display the image with the title 'coloredChips.png Gray Scale'
21. Use File->Copy to copy the image and paste it into the space below
22. Provide a description of the image in comparison to the original image: coloredChipsImage.

S-ar putea să vă placă și