source: trunk/src/test_nom_type.m @ 318

Last change on this file since 318 was 318, checked in by gostiaux, 12 years ago

fileparts_uvmat should replace name2display

File size: 1.6 KB
Line 
1function test_name2display(name)
2
3
4fprintf([...
5    '######################################################\n'...
6    '               Test for Name2Display                  \n'...
7    '######################################################\n'...
8    ]);
9
10if exist('name','var')
11    filename_list={name};
12else
13    filename_list={...
14        'Image1a.png'...
15        'toto'...
16        'B001_1.png'...% does not work for Joel function !
17        'B001.png'...
18        'B008a.png'...
19        'B002B.png'...
20        'B_001.png'...
21        'B_001AB.png'...
22        'aa45_2.png'...
23        'B005.png'...
24        'Image_3.jpg'...
25        'Image_3-4.jpg'...
26        'Image_3-4_2.jpg'...
27        'Image_5_3-4.jpg'...
28        'Image_3-4_5-6.jpg'...
29        'Image_003-004_5-6.jpg'...
30        'Image_3-4_005-006.jpg'...
31        'Image_3-004_5-06.jpg'...
32        };
33end
34
35for filename=filename_list
36    [RootPath,RootFile,i1,i2,str_a,str_b,ext,NomType,SubDir]=name2display(filename{1});
37    [RootPath_bis,RootFile_bis,i1_bis,i2_bis,j1_bis,j2_bis,ext_bis,NomType_bis,SubDir_bis]=...
38        name2display2(filename{1});
39    fprintf([...
40        'File name  : ' filename{1}  '\n'...
41        '  NomType  : ' NomType '   //   ' NomType_bis '\n'...
42        '  RootFile : ' RootFile '   //   ' RootFile_bis '\n'...
43        '  i1       : ' i1 '   //   ' num2str(i1_bis) '\n'...
44        '  i2       : ' i2 '   //   ' num2str(i2_bis) '\n'...
45        '  str_a/j1 : ' str_a '   //   ' num2str(j1_bis) '\n'...
46        '  str_b/j2 : ' str_b '   //   ' num2str(j2_bis) '\n'...
47        ]);
48   
49end
50
Note: See TracBrowser for help on using the repository browser.