←Select platform

AutoColorLevelCommandType Enumeration

Summary
Enumeration flags that identify the type of leveling to perform.
Syntax
C#
VB
Objective-C
C++
Java
public enum AutoColorLevelCommandType   
Public Enum AutoColorLevelCommandType  
typedef NS_ENUM(NSInteger, LTAutoColorLevelCommandType) 
public enum AutoColorLevelCommandType 
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 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Color Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.