←Select platform

SpatialFilterCommand Constructor(SpatialFilterCommandPredefined)

Summary
Initializes a new SpatialFilterCommand class object with explicit parameters.
Syntax
C#
Objective-C
C++/CLI
Java
Python
- (instancetype)initWithPredefinedSpatialFilter:(LTSpatialFilterCommandPredefined)predefined NS_DESIGNATED_INITIALIZER; 
public SpatialFilterCommand( 
   SpatialFilterCommandPredefined predefined 
); 
public: 
SpatialFilterCommand(  
   SpatialFilterCommandPredefined predefined 
) 
__init__(self,predefined) # Overloaded constructor 

Parameters

predefined
Value that represents a predefined spatial filters.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Effects; 
 
 
public void SpatialFilterCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "ImageProcessingDemo\\NaturalFruits.jpg")); 
 
   // Prepare the command 
   SpatialFilterCommand command = new SpatialFilterCommand(SpatialFilterCommandPredefined.PrewittHorizontal); 
   //Apply a Prewitt edge detection filter. 
   command.Run(image); 
 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

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

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