DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / IColourConverter Interface / RGBToCIELab Method
An array of 3 values. Although made as Int32 values for CLS complicance, the range should be confined to the ushort range (0 - 0xFFFF)






In This Topic
    RGBToCIELab Method
    In This Topic
    Converts integer RGB values to CIELab floating point results
    Syntax
    'Declaration
     
    
    Function RGBToCIELab( _
       ByVal RGB() As System.Integer _
    ) As System.Single()
    'Usage
     
    
    Dim instance As IColourConverter
    Dim RGB() As System.Integer
    Dim value() As System.Single
     
    value = instance.RGBToCIELab(RGB)
    System.float[] RGBToCIELab( 
       System.int[] RGB
    )
    function RGBToCIELab( 
        RGB: System.Integerarray of
    ): System.array of Single; 
    function RGBToCIELab( 
       RGB : System.int[]
    ) : System.float[];
    System.float[]* RGBToCIELab( 
       System.int[]* RGB
    ) 
    System.array<float>^ RGBToCIELab( 
       System.array<int>^ RGB
    ) 

    Parameters

    RGB
    An array of 3 values. Although made as Int32 values for CLS complicance, the range should be confined to the ushort range (0 - 0xFFFF)

    Return Value

    CIELab values in range 0-100.0 for L (first value) and -128.0 to +127.0 for a and b (second and theird values)
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also