←Select platform

AutoColorLevelCommandType Enumeration

Summary

Enumeration flags that identify the type of leveling to perform.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public enum AutoColorLevelCommandType   
Public Enum AutoColorLevelCommandType  
    
    
public enum AutoColorLevelCommandType    
typedef NS_ENUM(NSInteger, LTAutoColorLevelCommandType) 
public enum AutoColorLevelCommandType 
Leadtools.ImageProcessing.Color.AutoColorLevelCommandType = function() { }; 
Leadtools.ImageProcessing.Color.AutoColorLevelCommandType.prototype = {<br/> 
  None = 0, 
    Level = 1, 
    Contrast = 2, 
    Intensity = 3, 
     
 }; 
public enum class AutoColorLevelCommandType   

Members

ValueMemberDescription
0None No change.
1Level Perform leveling on the individual R, G and B channels, treating each of the R, G and B channels as a separate entity. It introduces color cast on the image.
2Contrast Perform leveling on the Master channel (the grayscale values of the pixels). No color cast will be introduced.

In order to speed up widely used image processing filters in LEADTOOLS, the grayscale value (master channel) of a colored image is calculated using the following formulas:

        #define CalcGrayValue(r, g, b) ((L_UCHAR)(((L_UCHAR) (((2 * (L_UINT) (r)) + (5 * (L_UINT) (g)) + (L_UINT) (b) + 4) / 8))))
        #define CalcGrayValue16(r, g, b) ((L_UINT16) (((2 * (L_UINT32) (r)) + (5 * (L_UINT32) (g)) + (L_UINT32) (b) + 4) / 8))
        #define CalcGrayValue32(r, g, b) ((L_UINT32) (((2 * (L_UINT32) (r)) + (5 * (L_UINT32) (g)) + (L_UINT32) (b) + 4) / 8))

3Intensity Perform leveling on the RGB channel (the sum of the R, G, and B channels). No color cast will be introduced.
Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Color Assembly