.NET 10 Windows-only app (WinForms + WPF both enabled) with two small interop samples. Unlike Samples/, this isn't a menu-driven suite — Program.cs hardcodes which sample runs.
dotnet run --project Samples.WindowsBy default this runs MatToWriteableBitmap. To try WindowGUISample instead, edit Program.cs and swap the instantiated ISample.
MatToWriteableBitmap.cs— Loadsfruits.jpg(chosen because its width isn't a multiple of 4, to exercise stride/padding handling) into aMat, converts it to a WPFWriteableBitmapviaOpenCvSharp.WpfExtensions, and displays it in a bare WPF window.WindowGUISample.cs— Three demos using OpenCvSharp's own highgui-styleWindow(not WinForms/WPF controls):Windows_Example— opens aWindowshowing an image.MouseCallBack_Example— registers a native mouse callback and prints button/wheel events with coordinates.TrackBar_Example— two windows with a trackbar that live-adjusts morphology (Open/Close and Erode/Dilate); presse/r/cto switch the structuring-element shape, Esc to exit.
Data/Image/ (fruits.jpg, box_in_scene.png) is bundled; paths are centralized in FilePath.cs.
Windows only. No webcam or downloads needed.