svd_faces_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 svd_faces() implements an SVD-based projection method for facial analysis. LINE_COUNT_TEST MATLAB version LINE_COUNT counts the lines in a file. Count the (10) lines in "s01_list.txt" Number of lines counted is 10 LINE_COUNT_TEST Normal end of execution. 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). IMSHOW_NUMERIC_TEST: Normal end of execution. PGM_READ_TEST: Read a binary PGM file. PGM_READ_TEST: Normal end of execution. PGM_DISPLAY_TEST: Read and display a binary PGM file. PGM_DISPLAY_TEST: Normal end of execution. 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 PGMS_PACK_TEST: Normal end of execution. 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.0000 0.0000 0.0000 0.0000 -0.0000 0.0000 1.0000 0.0000 -0.0000 0.0000 0.0000 0.0000 1.0000 -0.0000 -0.0000 0.0000 -0.0000 -0.0000 1.0000 -0.0000 -0.0000 0.0000 -0.0000 -0.0000 1.0000 SVD_VECTORS_TEST: Normal end of execution. 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 3.54879e-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_TEST: Normal end of execution. 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 3.54879e-12 PGM_PROJECT_DISPLAY_TEST: Normal end of execution. 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 3.54879e-12 PGM_PROJECT_DISPLAY_TEST: Normal end of execution. svd_faces_test(): Normal end of execution.