• 大小: 16.11M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-31
  • 语言: 其他
  • 标签: 其他  

资源简介


资源截图

代码片段和文件信息

using OpenCvSharp;

namespace OpenCVSharpSample01
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var src = new Mat(new Size(128 128) MatType.CV_8U Scalar.All(255)))
            using (var dst = new Mat())
            {
                for (var y = 0; y < src.Height; y++)
                {
                    for (var x = 0; x < src.Width; x++)
                    {
                        var color = src.Get(y x);
                        var temp = color.Item0;
                        color.Item0 = color.Item2; // B <- R
                        color.Item2 = temp;        // R <- B
                        src.Set(y x color);
                    }
                }

                src.CopyTo(dst);

                using (var windo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......      2518  2018-08-29 16:36  OpenCVSharp-Samples\.gitattributes

    .......       246  2018-08-29 16:36  OpenCVSharp-Samples\.github\issue_template.md

    .......      2850  2018-08-29 16:36  OpenCVSharp-Samples\.gitignore

    .......       164  2018-08-29 16:36  OpenCVSharp-Samples\.nuget\NuGet.Config

    .......   1664512  2018-08-29 16:36  OpenCVSharp-Samples\.nuget\NuGet.exe

    .......      7484  2018-08-29 16:36  OpenCVSharp-Samples\.nuget\NuGet.targets

    .......     11325  2018-08-29 16:36  OpenCVSharp-Samples\LICENSE.md

    .......      6916  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample01\OpenCVSharpSample01.csproj

    .......       152  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample01\packages.config

    .......      1517  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample01\Program.cs

    .......      1414  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample01\Properties\AssemblyInfo.cs

    .......     69870  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample02\Images\ocv02.jpg

    .......      6988  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample02\OpenCVSharpSample02.csproj

    .......       152  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample02\packages.config

    .......      2057  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample02\Program.cs

    .......      1414  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample02\Properties\AssemblyInfo.cs

    .......     69870  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample03\Images\ocv02.jpg

    .......      6988  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample03\OpenCVSharpSample03.csproj

    .......       152  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample03\packages.config

    .......      1995  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample03\Program.cs

    .......      1414  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample03\Properties\AssemblyInfo.cs

    .......     25753  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample04\Images\Car.jpg

    .......     46939  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample04\Images\Penguin.png

    .......      7031  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample04\OpenCVSharpSample04.csproj

    .......       152  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample04\packages.config

    .......      5496  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample04\Program.cs

    .......      1414  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample04\Properties\AssemblyInfo.cs

    .......      1697  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample04WinForms\FrmMain.cs

    .......      2160  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample04WinForms\FrmMain.Designer.cs

    .......      5698  2018-08-29 16:36  OpenCVSharp-Samples\OpenCVSharpSample04WinForms\FrmMain.resx

............此处省略3169个文件信息

评论

共有 条评论