dotnet new wpf -n ClipThreshold cd ClipThreshold dotnet add package OpenCvSharp4.Windows dotnet add package OpenCvSharp4.runtime.win dotnet add package OpenCvSharp4.WpfExtensions dotnet add package System.Drawing.Common code . <Window x:Class="ClipThreshold.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="