Ignore:
Timestamp:
Aug 13, 2014, 2:47:15 AM (10 years ago)
Author:
g7moreau
Message:
  • Add license
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_col_vec.m

    r654 r809  
    1010%INPUT
    1111% colcode: struture setting the colorcode for vectors
    12             % colcode.CName: 'ima_cor','black','white',...
    13             % colcode.ColorCode ='black', 'white', 'rgb','brg', '64 colors'
    14             % colcode.CheckFixVecColor =0; thresholds scaling relative to min and max, =1 fixed thresholds
    15             % colcode.MinVec; min
    16             % colcode.MaxVec; max
    17             % colcode.ColCode1: first threshold for rgb, relative to min (0) and max (1)
    18             % colcode.ColCode2: second threshold for rgb, relative to min (0) and max (1),
    19             % rmq: we need min <= ColCode1 <= ColCode2 <= max, otherwise
    20             % ColCode1 and ColCode2 are adjusted to the bounds
     12%    colcode.CName: 'ima_cor','black','white',...
     13%    colcode.ColorCode ='black', 'white', 'rgb','brg', '64 colors'
     14%    colcode.CheckFixVecColor =0; thresholds scaling relative to min and max, =1 fixed thresholds
     15%    colcode.MinVec; min
     16%    colcode.MaxVec; max
     17%    colcode.ColCode1: first threshold for rgb, relative to min (0) and max (1)
     18%    colcode.ColCode2: second threshold for rgb, relative to min (0) and max (1),
     19%    rmq: we need min <= ColCode1 <= ColCode2 <= max, otherwise
     20%    ColCode1 and ColCode2 are adjusted to the bounds
    2121% vec_C: matlab vector representing the scalar setting the color
     22
     23%=======================================================================
     24% Copyright 2008-2014, LEGI UMR 5519 / CNRS UJF G-INP, Grenoble, France
     25%   http://www.legi.grenoble-inp.fr
     26%   Joel.Sommeria - Joel.Sommeria (A) legi.cnrs.fr
     27%
     28%     This file is part of the toolbox UVMAT.
     29%
     30%     UVMAT is free software; you can redistribute it and/or modify
     31%     it under the terms of the GNU General Public License as published
     32%     by the Free Software Foundation; either version 2 of the license,
     33%     or (at your option) any later version.
     34%
     35%     UVMAT is distributed in the hope that it will be useful,
     36%     but WITHOUT ANY WARRANTY; without even the implied warranty of
     37%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     38%     GNU General Public License (see LICENSE.txt) for more details.
     39%=======================================================================
     40
    2241function [colorlist,col_vec,colcode_out]=set_col_vec(colcode,vec_C)
    2342col_vec=ones(size(vec_C));%all vectors at color#1 by default
Note: See TracChangeset for help on using the changeset viewer.