Initializes a new
TissueEqualizeCommand class object with explicit parameters.
Syntax
Parameters
- flags
- Flags that determine the behavior of Tissue Equalize process.
Example
Runs the TissueEqualizeCommand on an image.
Visual Basic | Copy Code |
---|
Public Sub TissueEqualizeConstructorExamples()
RasterCodecs.Startup()
Dim codecs As New RasterCodecs()
codecs.ThrowExceptionsOnInvalidImages = True
Dim leadImage As RasterImage = codecs.Load(LeadtoolsExamples.Common.ImagesPath.Path + "Master.jpg")
Dim command As TissueEqualizeCommand = New TissueEqualizeCommand(TissueEqualizeCommandFlags.UseIntensifyOption)
command.Flags = TissueEqualizeCommandFlags.UseIntensifyOption
command.Run(leadImage)
RasterCodecs.Shutdown()
End Sub |
C# | Copy Code |
---|
public void TissueEqualizeConstructorExample() { // Load an image RasterCodecs.Startup(); RasterCodecs codecs = new RasterCodecs(); codecs.ThrowExceptionsOnInvalidImages = true; RasterImage image =codecs.Load( "D:\\Lead15\\images2\\LEADTOOLS Images\\Master.jpg"); // Prepare the command TissueEqualizeCommand command = new TissueEqualizeCommand(TissueEqualizeCommandFlags.UseIntensifyOption); //Apply command.Run(image); RasterCodecs.Shutdown(); } |
Requirements
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
See Also