2015/utils/Atil/Inc/RgbColor.inl
/// <summary>
/// This inlined method is defined in RgbColor.h. <see cref="RgbColor">
/// </summary>
///


This inlined method is defined in RgbColor.h.
This inlined method is defined in RgbColor . h .
inline float RgbColor32f::asGray (DataModelAttributes::ChannelOrder format) const
{
    float gray;
    if (format == DataModelAttributes::kRedGreenBlueAlpha) {
        gray = static_cast<float> ( pixel.value.fl.a * RgbColorFactors::kLuminanceRedFactor
            + pixel.value.fl.b * RgbColorFactors::kLuminanceGreenFactor
            + pixel.value.fl.c * RgbColorFactors::kLuminanceBlueFactor + 0.5);
    }
    else {
        gray = static_cast<float> ( pixel.value.fl.c * RgbColorFactors::kLuminanceRedFactor
            + pixel.value.fl.b * RgbColorFactors::kLuminanceGreenFactor
            + pixel.value.fl.a * RgbColorFactors::kLuminanceBlueFactor + 0.5);
    }
    return gray;
}
inline float RgbColor32f :: asGray ( DataModelAttributes :: ChannelOrder format ) const { float gray ; if ( format == DataModelAttributes :: kRedGreenBlueAlpha ) { gray = static_cast < float > ( pixel . value . fl . a * RgbColorFactors :: kLuminanceRedFactor + pixel . value . fl . b * RgbColorFactors :: kLuminanceGreenFactor + pixel . value . fl . c * RgbColorFactors :: kLuminanceBlueFactor + 0.5 ) ; } else { gray = static_cast < float > ( pixel . value . fl . c * RgbColorFactors :: kLuminanceRedFactor + pixel . value . fl . b * RgbColorFactors :: kLuminanceGreenFactor + pixel . value . fl . a * RgbColorFactors :: kLuminanceBlueFactor + 0.5 ) ; } return gray ; }
<summary>
This inlined method is defined in RgbColor.h.
<summary > This inlined method is defined in RgbColor . h .