←Select platform

LambdaConnectednessCommand Class

Summary

Performs image segmentation using a special region-growing algorithm called Lambda Connectedness.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public class LambdaConnectednessCommand : RasterCommand 
public sealed class LambdaConnectednessCommand : Leadtools.Imageprocessing.Leadtools.ImageProcessing.IRasterCommand   
@interface LTLambdaConnectednessCommand : LTRasterCommand 
public class LambdaConnectednessCommand extends RasterCommand 
function Leadtools.ImageProcessing.Core.LambdaConnectednessCommand() 

Remarks
  • Lambda-connectedness is a technique used to find the connectivity between an image's pixels and then clusters them into groups.
  • Low values for lambda can result in one region.
  • High values for lambda can result in an over-segmented image.
  • This function 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 in the Document/Medical Imaging toolkits.
  • This command supports signed/unsigned images.
Example

C#
VB
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Core; 
 
public void LambdaConnectednessCommandExample() 
{ 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   //Load an image 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, @"ImageProcessingDemo\NaturalFruits.jpg")); 
 
   //Prepare the command 
   LambdaConnectednessCommand command = new LambdaConnectednessCommand(); 
   command.Lambda = 985; 
 
   //Apply 
   command.Run(image); 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images"; 
} 
Imports Leadtools 
Imports Leadtools.Codecs 
Imports Leadtools.ImageProcessing.Core 
      Leadtools.Examples.Support.SetLicense() 
 
Public Sub LambdaConnectednessCommandExample() 
   Dim codecs As RasterCodecs = New RasterCodecs() 
   codecs.ThrowExceptionsOnInvalidImages = True 
 
   'Load an image 
   Dim image As RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "ImageProcessingDemo\\NaturalFruits.jpg")) 
 
   'Prepare the command 
   Dim command As LambdaConnectednessCommand = New LambdaConnectednessCommand() 
   command.Lambda = 950 
 
   'Apply 
   command.Run(image) 
End Sub 
 
Public NotInheritable Class LEAD_VARS 
   Public Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images" 
End Class 

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.Core Assembly