public enum AutoColorLevelCommandType
typedef NS_ENUM(NSInteger, LTAutoColorLevelCommandType) {
LTAutoColorLevelCommandTypeNone = 0x0000,
LTAutoColorLevelCommandTypeLevel = 0x00000001,
LTAutoColorLevelCommandTypeContrast = 0x00000002,
LTAutoColorLevelCommandTypeIntensity = 0x00000003,
};
public final class AutoColorLevelCommandType
extends java.lang.Enum<AutoColorLevelCommandType>
public enum class AutoColorLevelCommandType
class AutoColorLevelCommandType(Enum):
None = 0
Level = 1
Contrast = 2
Intensity = 3
Value | Member | Description |
---|---|---|
0 | None | No change. |
1 | Level | 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. |
2 | Contrast | 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)) |
3 | Intensity | Perform leveling on the RGB channel (the sum of the R, G, and B channels). No color cast will be introduced. |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document