Vērtējums:
Publicēts: 20.04.2005.
Valoda: Angļu
Līmenis: Vidusskolas
Literatūras saraksts: Nav
Atsauces: Nav
  • Eseja 'Matlab', 1.
Darba fragmentsAizvērt

Image Rotation
I used the size() function to determine the size of the input file's picture's matrix, and then used the inverse transformation matrix shown below to determine the source pixel for each destination pixel. My program determined whether the source pixel was within the 320 x 200 dimensions, and if so, painted the destination pixel into the output file and if not, left the value as 0, i.e. black.
Image Shearing
This program was very similar to the image rotation's code. Similarly, the program determined whether the source pixel of the picture was within the 320 x 200 frame…

Atlants