CDS.ImageDisplay.OpenCvSharp4 1.0.14

dotnet add package CDS.ImageDisplay.OpenCvSharp4 --version 1.0.14
                    
NuGet\Install-Package CDS.ImageDisplay.OpenCvSharp4 -Version 1.0.14
                    
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="CDS.ImageDisplay.OpenCvSharp4" Version="1.0.14" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CDS.ImageDisplay.OpenCvSharp4" Version="1.0.14" />
                    
Directory.Packages.props
<PackageReference Include="CDS.ImageDisplay.OpenCvSharp4" />
                    
Project file
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 CDS.ImageDisplay.OpenCvSharp4 --version 1.0.14
                    
#r "nuget: CDS.ImageDisplay.OpenCvSharp4, 1.0.14"
                    
#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 CDS.ImageDisplay.OpenCvSharp4@1.0.14
                    
#: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=CDS.ImageDisplay.OpenCvSharp4&version=1.0.14
                    
Install as a Cake Addin
#tool nuget:?package=CDS.ImageDisplay.OpenCvSharp4&version=1.0.14
                    
Install as a Cake Tool

CDS.ImageDisplay.OpenCvSharp4

Windows Forms integration for displaying OpenCvSharp4 Mat images. Built on top of CDS.ImageDisplay.WinForms and its BitmapDisplayPanel control.

Stride alignment and pixel format conversion are handled automatically — you pass a Mat and it displays.

Supported image types

OpenCV type Format
CV_8UC1 8-bit grayscale
CV_8UC3 8-bit BGR colour
CV_8UC4 8-bit BGRA with alpha

Sub-mat ROIs (non-contiguous memory) are handled correctly.

Installation

dotnet add package CDS.ImageDisplay.OpenCvSharp4

Usage

Quick modal display

using OpenCvSharp;

Mat image = Cv2.ImRead("photo.jpg");
image.Show("My Image");

Mat.Show(title) opens a fit-to-window modal dialog and blocks until it is closed.

Display on a panel in your form

Add a BitmapDisplayPanel to your form via the designer (from the CDS.ImageDisplay.WinForms package), then:

using OpenCvSharp;

Mat processed = ApplyFilter(source);
bitmapDisplayPanel1.SetImage(processed);

SetImage can be called repeatedly to update the display (e.g. in a processing loop).

Requirements

  • .NET 10.0 Windows (Windows Forms)
  • OpenCvSharp4 runtime for your target platform (OpenCvSharp4.runtime.win for x64/ARM64)

License

MIT — see LICENSE.txt

Product Compatible and additional computed target framework versions.
.NET net10.0-windows10.0.19041 is compatible. 
.NET Framework net48 is compatible.  net481 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
1.0.14 39 6/11/2026
1.0.13 48 6/11/2026
1.0.12 37 6/11/2026
1.0.11 41 6/11/2026
1.0.10 41 6/10/2026
1.0.9 50 6/10/2026
1.0.7 47 6/9/2026