chapter 11 Flashcards
(39 cards)
ndims
returns number of dimensions in input array
size
returns size of each dimension of input
size(array, 1)
returns number of rows
size(array, 2)
returns number of columns
pixel element
regions of uniform color
RGB image
stored as an n by 3 array, first two indices are the location of pixel and this is color plane (RGB triple)
RGB triple
set of red, green, and blue intensities
[1, 0, 0]
saturated red
[0, 1, 0]
saturated green
[0, 0, 1]
saturated blue
grayscale image
shows lightness of colors in image through shades ranging from white (lightest, 1.0) to black (darkest, 0.0)
hue
measurement of color
saturation
measurement of purity
lumination
measurement of intensity
rgb2gray(imageRGB)
eliminates situation and hue from RGB
ind2gray(imageIndexed, colorMap)
eliminate saturation and hue from indexed image of color map colors
mat2gray(matrix, [amin, amax])
returns array of luminance (0.0 black, 1.0 white)
[imageData, colorMap] = imread(‘file name’)
reads image stored in 8 bit to5 PNG
image(imagedata)
creates image graphics my interpreting input
imagesc(image)
scales data to full range of color map then displays image
iminfo(‘file’)
returns structure about image
imwrite(imageData, ‘file name’)
writes image into file
ind2rgb(imageIndexed, colormap)
convers indexed image with associated color map into rgb image
rgb2ind(imageRGB, colorMap)
converts rgb image to indexed image associated with color map