chapter 11 Flashcards

(39 cards)

1
Q

ndims

A

returns number of dimensions in input array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

size

A

returns size of each dimension of input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

size(array, 1)

A

returns number of rows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

size(array, 2)

A

returns number of columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

pixel element

A

regions of uniform color

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

RGB image

A

stored as an n by 3 array, first two indices are the location of pixel and this is color plane (RGB triple)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

RGB triple

A

set of red, green, and blue intensities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

[1, 0, 0]

A

saturated red

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

[0, 1, 0]

A

saturated green

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

[0, 0, 1]

A

saturated blue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

grayscale image

A

shows lightness of colors in image through shades ranging from white (lightest, 1.0) to black (darkest, 0.0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

hue

A

measurement of color

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

saturation

A

measurement of purity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

lumination

A

measurement of intensity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

rgb2gray(imageRGB)

A

eliminates situation and hue from RGB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

ind2gray(imageIndexed, colorMap)

A

eliminate saturation and hue from indexed image of color map colors

17
Q

mat2gray(matrix, [amin, amax])

A

returns array of luminance (0.0 black, 1.0 white)

18
Q

[imageData, colorMap] = imread(‘file name’)

A

reads image stored in 8 bit to5 PNG

19
Q

image(imagedata)

A

creates image graphics my interpreting input

20
Q

imagesc(image)

A

scales data to full range of color map then displays image

21
Q

iminfo(‘file’)

A

returns structure about image

22
Q

imwrite(imageData, ‘file name’)

A

writes image into file

23
Q

ind2rgb(imageIndexed, colormap)

A

convers indexed image with associated color map into rgb image

24
Q

rgb2ind(imageRGB, colorMap)

A

converts rgb image to indexed image associated with color map

25
indexed image
similar to paint by number, stores spatial and color info in two separate arrays, an image array and colormap array
26
image array
2D array where each element correspond to a location of pixel, has spatial info, class double, uint8 or uint16
27
color map array
color pallet of N colors, contains N rows and 3 columns, each row corresponds to a color and columns are the RGB combo for it (range [0, 1])
28
numel(inArray)
returns number of array elements
29
fliplr(A)
flips array left to right
30
flipud(A)
flips array ups down
31
rot90(A)
rotates array 90 degrees
32
tril(A)
returns lower triangle part of array
33
triu(A)
returns upper triangle part of array
34
isequal(array1, array2)
checks if arrays are equal, all NaN are inequal
35
isequaln(array1, array2)
checks if arrays are equal, all NaN are equal
36
isa(obj, className)
checks if object is of class
37
isprime
returns 1 for prime number
38
all(A)
returns 1 for all elements that aren't 0, 1 for row and 2 for column
39
any(A)
returns 1 for any elements that are 0