svd_faces_test(): MATLAB/Octave version 6.4.0 svd_faces() implements an SVD-based projection method for facial analysis. line_count_test() line_count() counts the lines in a file. Count the (10) lines in "s01_list.txt" Number of lines counted is 10 imshow_numeric_test(): imshow_numeric() displays a numeric MxN array as a grayscale image. In the best case, the array contains integers between 0 (black) and 255 (white). pgm_read_test(): Read a binary PGM file. pgm_display_test(): Read and display a binary PGM file. pgms_pack_test(): Pack multiple PGM files into a single array. Packing files from the list "s01_list.txt" 1 s0101.pgm 2 s0102.pgm 3 s0103.pgm 4 s0104.pgm 5 s0105.pgm 6 s0106.pgm 7 s0107.pgm 8 s0108.pgm 9 s0109.pgm 10 s0110.pgm Packed array contains 10 PGM files Each PGM has width 92 and height 112 svd_vectors_test(): svd_vectors() computes SVD vectors. Pack multiple PGM files into a single array. Do SVD analysis. Display the SVD vectors. Packing files from the list "s01_list.txt" 1 s0101.pgm 2 s0102.pgm 3 s0103.pgm 4 s0104.pgm 5 s0105.pgm 6 s0106.pgm 7 s0107.pgm 8 s0108.pgm 9 s0109.pgm 10 s0110.pgm Packed array contains 10 PGM files Each PGM has width 92 and height 112 Confirm that the vectors are orthonormal: V' * V = I? 1.0000e+00 -4.8572e-17 3.8424e-16 5.8113e-17 -4.2891e-16 -4.8572e-17 1.0000e+00 -1.6090e-16 3.0976e-16 -1.1970e-16 3.8424e-16 -1.6090e-16 1.0000e+00 3.6646e-17 1.2837e-16 5.8113e-17 3.0976e-16 3.6646e-17 1.0000e+00 2.4460e-16 -4.2891e-16 -1.1970e-16 1.2837e-16 2.4460e-16 1.0000e+00 pgm_project_test(): Pack multiple PGM files into a single array. Generate a set of principal component vectors. Given one of those PGM files, reconstruct the image as a sum of the average plus projections onto vectors. Repeat for a PGM file that is NOT in the database. PGM_PROJECT: Packing files from the list "s01_list.txt" Extracting average and 9 SVD vectors Projecting PGM data from file "s0103.pgm" 1 s0101.pgm 2 s0102.pgm 3 s0103.pgm 4 s0104.pgm 5 s0105.pgm 6 s0106.pgm 7 s0107.pgm 8 s0108.pgm 9 s0109.pgm 10 s0110.pgm Packed array contains 10 PGM files Each PGM has width 92 and height 112 Projections of image onto vectors: 1 -2106.1 2 -286.377 3 -1151.83 4 942.546 5 -1947.07 6 -618.825 7 197.054 8 34.8283 9 -38.4802 Vectors |error| 0 3308.82 1 2551.99 2 2535.88 3 2259.19 4 2053.18 5 651.513 6 203.775 7 51.9012 8 38.4802 9 6.37472e-12 PGM_PROJECT: Packing files from the list "s01_list.txt" Extracting average and 9 SVD vectors Projecting PGM data from file "s0203.pgm" 1 s0101.pgm 2 s0102.pgm 3 s0103.pgm 4 s0104.pgm 5 s0105.pgm 6 s0106.pgm 7 s0107.pgm 8 s0108.pgm 9 s0109.pgm 10 s0110.pgm Packed array contains 10 PGM files Each PGM has width 92 and height 112 Projections of image onto vectors: 1 -1151.3 2 -425.138 3 -1359.86 4 541.36 5 208.516 6 -209.41 7 -68.5654 8 -76.4807 9 -310.032 Vectors |error| 0 4257.67 1 4099.06 2 4076.95 3 3843.48 4 3805.16 5 3799.44 6 3793.67 7 3793.05 8 3792.28 9 3779.58 pgm_project_display_test(): Pack multiple PGM files into a single array. Generate a set of principal component vectors. Given one of those PGM files, reconstruct the image as a sum of the average plus projections onto vectors. Display the projections in a single plot. pgm_project_display(): Packing files from the list "s01_list.txt" Extracting average and 9 SVD vectors Projecting PGM data from file "s0103.pgm" 1 s0101.pgm 2 s0102.pgm 3 s0103.pgm 4 s0104.pgm 5 s0105.pgm 6 s0106.pgm 7 s0107.pgm 8 s0108.pgm 9 s0109.pgm 10 s0110.pgm Packed array contains 10 PGM files Each PGM has width 92 and height 112 Projections of image onto vectors: 1 -2106.1 2 -286.377 3 -1151.83 4 942.546 5 -1947.07 6 -618.825 7 197.054 8 34.8283 9 -38.4802 Vectors |error| 0 3308.82 1 2551.99 2 2535.88 3 2259.19 4 2053.18 5 651.513 6 203.775 7 51.9012 8 38.4802 9 6.37472e-12 pgm_project_display_test(): Pack multiple PGM files into a single array. Generate a set of principal component vectors. Given one of those PGM files, reconstruct the image as a sum of the average plus projections onto vectors. Display the projections in a single plot. pgm_project_display(): Packing files from the list "s01_list.txt" Extracting average and 9 SVD vectors Projecting PGM data from file "s0103.pgm" 1 s0101.pgm 2 s0102.pgm 3 s0103.pgm 4 s0104.pgm 5 s0105.pgm 6 s0106.pgm 7 s0107.pgm 8 s0108.pgm 9 s0109.pgm 10 s0110.pgm Packed array contains 10 PGM files Each PGM has width 92 and height 112 Projections of image onto vectors: 1 -2106.1 2 -286.377 3 -1151.83 4 942.546 5 -1947.07 6 -618.825 7 197.054 8 34.8283 9 -38.4802 Vectors |error| 0 3308.82 1 2551.99 2 2535.88 3 2259.19 4 2053.18 5 651.513 6 203.775 7 51.9012 8 38.4802 9 6.37472e-12 svd_faces_test(): Normal end of execution.