CDS.ImageDisplay.OpenCvSharp4
1.1.7
dotnet add package CDS.ImageDisplay.OpenCvSharp4 --version 1.1.7
NuGet\Install-Package CDS.ImageDisplay.OpenCvSharp4 -Version 1.1.7
<PackageReference Include="CDS.ImageDisplay.OpenCvSharp4" Version="1.1.7" />
<PackageVersion Include="CDS.ImageDisplay.OpenCvSharp4" Version="1.1.7" />
<PackageReference Include="CDS.ImageDisplay.OpenCvSharp4" />
paket add CDS.ImageDisplay.OpenCvSharp4 --version 1.1.7
#r "nuget: CDS.ImageDisplay.OpenCvSharp4, 1.1.7"
#:package CDS.ImageDisplay.OpenCvSharp4@1.1.7
#addin nuget:?package=CDS.ImageDisplay.OpenCvSharp4&version=1.1.7
#tool nuget:?package=CDS.ImageDisplay.OpenCvSharp4&version=1.1.7
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.3.14)
- OpenCvSharp4 (>= 4.13.0.20260627)
-
net10.0-windows7.0
- CDS.ImageDisplay.WinForms (>= 3.3.14)
- OpenCvSharp4 (>= 4.13.0.20260627)
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.7 | 37 | 8/12/2026 |
| 1.1.6 | 86 | 8/5/2026 |
| 1.1.5 | 110 | 7/13/2026 |
| 1.1.4 | 125 | 6/30/2026 |
| 1.1.3 | 111 | 6/24/2026 |
| 1.1.2 | 111 | 6/19/2026 |
| 1.1.0 | 113 | 6/15/2026 |
| 1.0.14 | 108 | 6/11/2026 |
| 1.0.13 | 117 | 6/11/2026 |
| 1.0.12 | 105 | 6/11/2026 |
| 1.0.11 | 113 | 6/11/2026 |
| 1.0.10 | 111 | 6/10/2026 |
| 1.0.9 | 114 | 6/10/2026 |
| 1.0.7 | 114 | 6/9/2026 |