annotate matlab/MATLAB-Chroma-Toolbox_2.0/visualizeCRP.m @ 60:1ea2aed23d4a tip

Fix version
author Chris Cannam
date Thu, 13 Feb 2020 13:37:36 +0000
parents b54ee0a0be67
children
rev   line source
Chris@0 1 function visualizeCRP(f_crp,parameter)
Chris@0 2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Chris@0 3 % Name: visualizeCRP
Chris@0 4 % Date of Revision: 2011-03
Chris@0 5 % Programmer: Meinard Mueller, Sebastian Ewert
Chris@0 6 %
Chris@0 7 % Description:
Chris@0 8 % Visualization of CRP features (wrapper around visualize_chroma)
Chris@0 9 %
Chris@0 10 % Input:
Chris@0 11 % f_CRP
Chris@0 12 % parameter: is forwarded to visualizeChroma
Chris@0 13 %
Chris@0 14 % License:
Chris@0 15 % This file is part of 'Chroma Toolbox'.
Chris@0 16 %
Chris@0 17 % 'Chroma Toolbox' is free software: you can redistribute it and/or modify
Chris@0 18 % it under the terms of the GNU General Public License as published by
Chris@0 19 % the Free Software Foundation, either version 2 of the License, or
Chris@0 20 % (at your option) any later version.
Chris@0 21 %
Chris@0 22 % 'Chroma Toolbox' is distributed in the hope that it will be useful,
Chris@0 23 % but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@0 24 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@0 25 % GNU General Public License for more details.
Chris@0 26 %
Chris@0 27 % You should have received a copy of the GNU General Public License
Chris@0 28 % along with 'Chroma Toolbox'. If not, see <http://www.gnu.org/licenses/>.
Chris@0 29 %
Chris@0 30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Chris@0 31 if isfield(parameter,'imagerange')==0
Chris@0 32 parameter.imagerange = [-1 1];
Chris@0 33 end
Chris@0 34 if isfield(parameter,'colormap')==0
Chris@0 35 blueSepia = gray(64).^0.8;
Chris@0 36 blueSepia(:,1:2) = blueSepia(:,1:2) * 0.5;
Chris@0 37 parameter.colormap = [flipud(blueSepia) ; hot(64)];
Chris@0 38 end
Chris@0 39
Chris@0 40 visualizeChroma(f_crp,parameter);
Chris@0 41
Chris@0 42 end