
% lyngby_uis_cons       - Script executed for consensus 
%
%       This script is executed when the Calculate button is pressed
%       for Consensus.
%
%       See also LYNGBY, LYNGBY_CONS_MAIN, LYNGBY_CONS_GLOBAL.
%
% $Id: lyngby_uis_cons.m,v 1.1 2002/03/12 01:48:40 fnielsen Exp $ 

    
    lyngby_cons_global

    % Build up data matrix with summary images
    XX = [];
    for n = 1:length(INIT_CONS.volumes)
      XX = [ XX ; eval(INIT_CONS.volumes{n}) ];
    end

    % Call main consensus function.
    RESULT_CONS = lyngby_cons_main(XX, ...
	'Labels', INIT_CONS.volumes, ...
	'Scaling', INIT_CONS.scaling);

