Visual Basic (Declaration) | |
---|---|
Public Class CombineCommand Inherits RasterCommand Implements IRasterCommand |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class CombineCommand : RasterCommand, IRasterCommand |
C++/CLI | |
---|---|
public ref class CombineCommand : public RasterCommand, IRasterCommand |
Run the CombineCommand on an image.
Visual Basic | Copy Code |
---|---|
Public Sub CombineCommandExample() |
C# | Copy Code |
---|---|
public void CombineCommandExample() |
For example, suppose you use the SpatialFilterCommand to apply an edge detection filter. You can then use this command to combine the resulting image with the original one to produce an image with hard edges. This method combines the data byte-by-byte. The two images can be any color resolution. Images that are 24-bits per pixel are the easiest and fastest to combine. This command uses Windows-style coordinates (with a top-left origin) to specify the areas to be combined. If the channel setting for one of the images is the master channel (CombineCommandFlags.SourceMaster, CombineCommandFlags.DestinationMaster, or CombineCommandFlags.ResultMaster) the settings for all the images will be set to master. If a region is defined for either the source or destination image, or both images, the combine applies only to the intersection of regions. For example, assume CombineCommandFlags.SourceRed is passed for the source image, CombineCommandFlags.DestinationBlue is passed for the destination image and CombineCommandFlags.ResultGreen is passed for the resulting image. In this case, the green channel of the resulting image is calculated as the result of the operations applied to the red channel of the source image and the blue channel of the destination image. The other channels of the resulting image are unchanged. This command supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits. This command does not support 32-bit grayscale images. All images must be either signed or unsigned.
For more information, refer to Removing Noise.
System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.Effects.CombineCommand
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Reference
CombineCommand MembersLeadtools.ImageProcessing.Effects Namespace
Flags for the CombineCommand
Detecting and Enhancing Edges and Lines
Removing Noise
SkeletonCommand Class
TextureAlphaBlendCommand Class
ApplyTransformationParametersCommand
GetRegistrationMarksCenterMass
SearchRegistrationMarksCommand
BricksTextureCommand
CanvasCommand
DisplacementCommand Class
VignnetCommand
FragmentCommand
HighPassCommand Class
UnsharpMaskCommand Class
DiffuseGlowCommand
MaskConvolutionCommand Class