Convolution 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Convolution --version 1.0.0
NuGet\Install-Package Convolution -Version 1.0.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="Convolution" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Convolution" Version="1.0.0" />
<PackageReference Include="Convolution" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Convolution --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Convolution, 1.0.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.
#:package Convolution@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Convolution&version=1.0.0
#tool nuget:?package=Convolution&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Convolution
Contents
Types
ImageFile
The ImageFile class is used to store and process image files as matrices.
Properties
Bitmap MapBitmap of the image
Constructors
ImageFile(string path)Creates a bitmap from the image in the specified location.ImageFile(string path, Matrix<double> matrix, Colours colour=Colours.Grayscale)Creates a monochrome bitmap from the specified matrix and saves it to the specified path.ImageFile(string path, Matrix<double> A, Matrix<double> R, Matrix<double> G, Matrix<double> B)Creates an ARGB bitmap using the specified colour matrices and saves it to the specified path.ImageFile(string path, Matrix<double> R, Matrix<double> G, Matrix<double> B)Creates an ARGB bitmap using the specified colour matrices, with A being set to 255 for all pixels, and saves it to the specified path.
Static Methods
ImageFile Save(string path, Matrix<double> matrix, Colours colour=Colours.Grayscale)Returns a monochrome ImageFile of the specified colour saved to the specified path.
Methods
Matrix<double> ToMatrix()Returns a grayscale matrixMatrix<double> ToMatrix(Colours colour)Returns a monochrome matrix of the specified colour.(Matrix<double>, Matrix<double>, Matrix<double>, Matrix<double>) ToMatrices()Returns a matrix for all four ARGB channels.
Convolution Class
Static class used for performing convolution.
Methods
Matrix<double> OverlapAdd(Matrix<Complex> image, Matrix<Complex> kernel, int blockSize=0, int overlapSize=0)Returns the convolution of the complex matrices image and kernel using the overlap-add algorithm.Matrix<double> OverlapAdd(Matrix<double> image, Matrix<double> kernel, int blockSize=0, int overlapSize=0)Returns the convolution of the real matrices image and kernel using the overlap-add algorithm.OverlapAddNormalized(Matrix<Complex> image, Matrix<Complex> kernel, int peak, int blockSize=0, int overlapSize=0)Returns the convolution of the complex matrices image and kernel using the overlap-add algorithm normalized to the peak.Matrix<double> OverlapAddNormalized(Matrix<double> image, Matrix<double> kernel, int peak, int blockSize=0, int overlapSize=0)Returns the convolution of the real matrices image and kernel using the overlap-add algorithm normalized to the peak.
Extensions
Colours
Enum for describing the colour channels of an image.
Values
RedBlueGreenGrayscale
GrayscaleType
Enum describing the two grayscale algorithms.
Values
AverageWeighted
Extensions Class
Methods
int ToGrayScale(this Color color, GrayscaleType type = GrayscaleType.Weighted)Converts Color object to integer grayscale following the specified grayscale algorithm.double Sum(this Matrix<double> matrix)Returns the sum of all the elements of the matrix.Bitmap ToBitmap(this Matrix<double> matrix, Colours colour = Colours.Grayscale)Returns a monochrome Bitmap of the specified colour.Matrix<double> ToReal(this Matrix<Complex> m)Returns the real component matrix of the complex matrix.Matrix<double> Normalize(this Matrix<double> m, int peak=1)Returns the matrix normalized to the 0 to peak range.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- MathNet.Numerics (>= 5.0.0)
- system.drawing.common (>= 9.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.