←Select platform

LambdaConnectednessCommand Class

Summary

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

Syntax
C#
VB
Java
Objective-C
C++
public class LambdaConnectednessCommand : RasterCommand 
Public Class LambdaConnectednessCommand  
   Inherits RasterCommand 
@interface LTLambdaConnectednessCommand : LTRasterCommand 
public class LambdaConnectednessCommand extends RasterCommand 
public ref class LambdaConnectednessCommand : public RasterCommand   

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 
 
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 20.0.2019.3.12
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly