←Select platform

Lambda Property

Summary
Gets or sets the lambda factor.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public int Lambda { get; set; } 
@property (nonatomic, assign) NSInteger lambda; 
public int getLambda(); 
public void setLambda( 
   int intValue 
); 
public: 
property int Lambda { 
   int get(); 
   void set (    int ); 
} 
Lambda # get and set (LambdaConnectednessCommand) 

Property Value

Valid values for Lambda range from 1 to 1000. By default, the value is 950.

Remarks

Small values of lambda can result in one region. Large values can result in an over-segmented image.

Example
C#
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:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.11.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.