小编Chr*_*son的帖子

C#中人脸检测的图像侵蚀

我正在尝试在C#中实现面部检测.我目前有一张带有脸的照片的黑色+白色轮廓(这里).然而,我现在正试图去除噪声,然后扩大图像,以便在我实施检测时提高可靠性.

我到目前为止的方法是:

           using System;
using System.Collections.Generic
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;

namespace ImageErosion
{
    public partial class Form1 : Form
    {
        public int CompareEmptyColor { get; set; }

        public Form1()
        {
            InitializeComponent();
        }

        private void btErodeImage_Click(object sender, EventArgs e)
        {
            Image inputImage = pbInputImage.Image;

            Image result = Process(inputImage);

            pbInputImage.Image = result;
        }

        unsafe public Image Process(Image input)
        {
            Bitmap bmp = (Bitmap)input;
            Bitmap bmpSrc = (Bitmap)input;

            BitmapData bmData = …
Run Code Online (Sandbox Code Playgroud)

c# image-processing computer-vision

6
推荐指数
1
解决办法
2718
查看次数

标签 统计

c# ×1

computer-vision ×1

image-processing ×1