CDS.ImageDisplay.OpenCvSharp4
1.1.11
dotnet add package CDS.ImageDisplay.OpenCvSharp4 --version 1.1.11
NuGet\Install-Package CDS.ImageDisplay.OpenCvSharp4 -Version 1.1.11
<PackageReference Include="CDS.ImageDisplay.OpenCvSharp4" Version="1.1.11" />
<PackageVersion Include="CDS.ImageDisplay.OpenCvSharp4" Version="1.1.11" />
<PackageReference Include="CDS.ImageDisplay.OpenCvSharp4" />
paket add CDS.ImageDisplay.OpenCvSharp4 --version 1.1.11
#r "nuget: CDS.ImageDisplay.OpenCvSharp4, 1.1.11"
#:package CDS.ImageDisplay.OpenCvSharp4@1.1.11
#addin nuget:?package=CDS.ImageDisplay.OpenCvSharp4&version=1.1.11
#tool nuget:?package=CDS.ImageDisplay.OpenCvSharp4&version=1.1.11
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.winfor x64/ARM64)
License
MIT — see LICENSE.txt
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- CDS.ImageDisplay.WinForms (>= 3.5.3)
- OpenCvSharp4 (>= 4.13.0.20261107)
- System.Resources.Extensions (>= 10.0.15)
-
net10.0-windows7.0
- CDS.ImageDisplay.WinForms (>= 3.5.3)
- OpenCvSharp4 (>= 4.13.0.20261107)
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.1.11 | 52 | 11/18/2026 |
| 1.1.10 | 202 | 9/15/2026 |
| 1.1.9 | 116 | 9/15/2026 |
| 1.1.8 | 124 | 9/13/2026 |
| 1.1.7 | 225 | 8/12/2026 |
| 1.1.6 | 119 | 8/5/2026 |
| 1.1.5 | 147 | 7/13/2026 |
| 1.1.4 | 164 | 6/30/2026 |
| 1.1.3 | 144 | 6/24/2026 |
| 1.1.2 | 140 | 6/19/2026 |
| 1.1.0 | 141 | 6/15/2026 |
| 1.0.14 | 138 | 6/11/2026 |
| 1.0.13 | 148 | 6/11/2026 |
| 1.0.12 | 128 | 6/11/2026 |
| 1.0.11 | 148 | 6/11/2026 |
| 1.0.10 | 135 | 6/10/2026 |
| 1.0.9 | 138 | 6/10/2026 |
| 1.0.7 | 143 | 6/9/2026 |