01:198:111 Lecture Notes - Lecture 16: Digital Image
01:198:111 verified notes
16/28View all
Document Summary
Arrays are our first introduction to the concept data structures. A data structure is an arrangement of data that enables efficient processing by a program. 1 billion pixel in a digital image. An array is an indexed sequence of the values of the same type. Arrays can be of type int, strings, doubles, or a named variables like. Points or score, as long as the variables are of the same type. Conceptually speaking an example would be an array of ints. 0 index 1st index 2nd index 3rd index 4th index 5th index. The length of an index is n-1, so while the size of the array here is. 6, the index length is n-1 as interpreted by the computer. With an array: much more efficient and easier. Double[ ] a; // this declares the array, i. e. gives the array a space to have, but not use any memory as there is no data for the space to hold.