CSE 7 Lecture Notes - Lecture 8: Matlab, Row And Column Vectors
Document Summary
Prod calculates product for each column. >> sum( mat) ans= 6 8 4 7. Nest calls to get the function for all elements of matrix. How computers store images images are stored as a mosaic of tiny squares. Square pixels are inherently rough this square is called a pixel like the ancient art form of tile mosaics. As a result, more and smaller pixels makes for a smoother image. To a computer, images are a matrix of pixels. A color is made up of red, green, blue values (rgb) In matlab rgb images are matrices of size [height x width x 3] first floor: 1 (red) Second floor: 2 (green) third floor: 3 (blue) Actors are filmed in front of a screen with a very specific shade of green. Pixels that match that exact shade of green are replaced with pixels from another later a computer program checks the color of each pixel of the movie image/ movie.