Aspose.Imaging.AForge.Adapter 24.10.0

dotnet add package Aspose.Imaging.AForge.Adapter --version 24.10.0                
NuGet\Install-Package Aspose.Imaging.AForge.Adapter -Version 24.10.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspose.Imaging.AForge.Adapter" Version="24.10.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.Imaging.AForge.Adapter --version 24.10.0                
#r "nuget: Aspose.Imaging.AForge.Adapter, 24.10.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Aspose.Imaging.AForge.Adapter as a Cake Addin
#addin nuget:?package=Aspose.Imaging.AForge.Adapter&version=24.10.0

// Install Aspose.Imaging.AForge.Adapter as a Cake Tool
#tool nuget:?package=Aspose.Imaging.AForge.Adapter&version=24.10.0                

Aspose.Imaging.AForge.Adapter for .NET

Aspose.Imaging.AForge.Adapter is designed to extend the functionality of the Aspose.Imaging library by adding functions from FileFormat.AForge library. This association allows all raster formats supported by the Aspose.Imaging library to be covered by popular methods from the FileFormat.AForge library. The following methods from the FileFormat.AForge library are applicable to all raster formats of the Aspose.Imaging library:

  • EdgeDetector(Homogenity, Difference, Sobel, Canny)
  • BlobDetector (DetectBlobs, ExtractBiggestBlob, BlobsFiltering)
  • ExhaustiveTemplateMatching,
  • ExhaustiveBlockMatching,
  • CornersDetector (Moravec, Susan)

Platform dependence

Aspose.Imaging.AForge.Adapter for .NET can be used to develop applications on Windows Desktop (x86, x64), Windows Server (x86, x64), Windows Azure, Windows Embedded (CE 6.0 R2), as well as Linux x64. The supported platforms include .NetStandard2.0, .Net Core 3.1, .Net6.0, .Net7.0, .Net8.0.

Getting Started with Aspose.Imaging.AForge.Adapter for .NET

Are you ready to give Aspose.Imaging.AForge.Adapter for .NET a try? Simply execute

Install-Package Aspose.Imaging.AForge.Adapter

from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Imaging.AForge.Adapter for .NET and want to upgrade the version, please execute

Update-Package Aspose.Imaging.AForge.Adapter

to get the latest version.

Product dependencies

This product is dependent on :

Usage example

Edge Detector

Aspose.Imaging.License imagingLic = new License();
System.Drawing.AsposeDrawing.License drawingLic = new System.Drawing.AsposeDrawing.License();
imagingLic.SetLicense("license.lic");
drawingLic.SetLicense("license.lic");

using (var image = (RasterImage)Image.Load("polygons.cdr.png"))
{
    image.EdgeDetector(image.Bounds, EdgeDetectorType.Canny);
    image.Save("result.png");
}

Blob Detector

Aspose.Imaging.License imagingLic = new License();
System.Drawing.AsposeDrawing.License drawingLic = new System.Drawing.AsposeDrawing.License();
imagingLic.SetLicense("license.lic");
drawingLic.SetLicense("license.lic");
using (var image = (RasterImage)Image.Load("sample2.jpg"))
{
    var settings = new BlobCounterSettings
    {
        FilterBlobs = true,
        MinHeight = 10,
        MinWidth = 10,
        Order = BlobsOrder.Size
    };

    var blobs = image.DetectBlobs(settings, image.Bounds);
    var blob = blobs[0];
    using (var b = blob.GetImage(false))
    {
        b.Save("result.png");
    }
}

Corner Detector


    Aspose.Imaging.License imagingLic = new License();
    System.Drawing.AsposeDrawing.License drawingLic = new System.Drawing.AsposeDrawing.License();
    imagingLic.SetLicense("license.lic");
    drawingLic.SetLicense("license.lic");

    using (var image = (RasterImage)Image.Load("polygons.cdr.png"))
    {
        var bounds = image.Bounds;
        var points = image.CornersDetector(bounds, new MoravecCornerDetectorSettings());
        AddCornersToImage(image, points);
        image.Save("result.png");
    }

    void AddCornersToImage(RasterImage image, List<Point> points)
    {
        var graphics = new Graphics(image);
        var pen = new Pen(Color.Red, 1);
        for (var i = 0; i < points.Count; i++)
        {
            var point = points[i];
            var rect = new Rectangle(point.X - 1, point.Y - 1, 2, 2);
            graphics.DrawArc(pen, rect, 0, 360);
        }
    }

Exhaustive block matching


    using (var image = (RasterImage)Image.Load("polygons.cdr.png"))
    using (var tmp = (RasterImage)Image.Load("template.png"))
    {
        var similarity = image.ExhaustiveTemplateMatching(0.5f, tmp);
        Console.WriteLine(similarity);
    }
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.10.0 88 10/2/2024