Changeset 4587 for trunk/utils


Ignore:
Timestamp:
10/31/08 13:22:42 (12 years ago)
Author:
curtis
Message:

Return metadata table as part of cell structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils/bfopen.m

    r4586 r4587  
    4444r.setId(id); 
    4545numSeries = r.getSeriesCount(); 
    46 result = cell(numSeries, 1); 
     46result = cell(numSeries, 2); 
    4747for s = 1:numSeries 
    4848    fprintf('Reading series #%d', s); 
     
    9898        imageList{i, 2} = label; 
    9999    end 
    100     % save the whole image list into our master series list 
    101     result{s} = imageList; 
     100    % extract metadata table for this series 
     101    metadataList = r.getMetadata(); 
     102    % save the list of images into our master series list 
     103    result{s, 1} = imageList; 
     104    result{s, 2} = metadataList; 
    102105    fprintf('\n'); 
    103106end 
     
    115118series2 = data{2, 1}; 
    116119series3 = data{3, 1}; 
     120metadataList = data{1, 2}; 
    117121% ...etc. 
    118122series1_numPlanes = size(series1, 1); 
     
    140144end 
    141145movie(M); 
     146 
     147% Query some metadata fields (keys are format-dependent) 
     148subject = metadataList.get('Subject'); 
     149title = metadataList.get('Title'); 
    142150%} 
Note: See TracChangeset for help on using the changeset viewer.