This header contains private IO functions for ColorToLabelMap types. 
- Author
 - Stefan Reinhold 
 
- Copyright
 - Copyright (C) 2018 Stefan Reinhold – All Rights Reserved. You may use, distribute and modify this code under the terms of the AFL 3.0 license; see LICENSE for full license details. 
 
 
      
        
          | CustomMap CortidQCT::ColorToLabelMaps::IO::loadCustomMapFromYAMLNode  | 
          ( | 
          YAML::Node const &  | 
          node | ) | 
           | 
        
      
 
Reads a custom color to label map from the given yaml node. 
The YAML format is as follows: [[R1, G1, B1], L1], [R2, G2, B2, L2]], where Rx, Gx, Bx, L, are the x-th red, green, blue color components and label values, respectively. The color components must be given as unsigned 8-bit integers in the range [0, 255]. Optional the color map can be specified as a map type. Then the data specification above will go under the 'map' key and optionally, a undefinedLabel can be set.
- Parameters
 - 
  
    | node | The YAML node to read the map from  | 
  
   
- Exceptions
 - 
  
    | YAML::Exception | on failure.  | 
    | std::invalid_argument | if the YAML node is malformed  | 
  
   
- Returns
 - A ColorToLabelMaps::CustomMap object.