我必须在VB中模糊一个选定的矩形? [英] I have to blur a selected rectangle from an image in VB?

查看:99
本文介绍了我必须在VB中模糊一个选定的矩形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从图像中检测车牌并模糊该矩形部分。我已经检测到车牌号和模糊,我对所选矩形有问题。

整个图像变得模糊,但我只想选择部分。



我尝试了什么:



i尝试过高斯模糊功能。

i want to detect number plate from an image and blur that rectangle part. i have already detected number plate and for blurring, i have a problem with the selected rectangle.
whole image is getting blurred, but i want only selected part.

What I have tried:

i have tried Gaussian blur function.

推荐答案

看一下这些例子:

使用VB.NET创建高斯模糊 [ ^ ]

Gausian和Alpha Blurring [ ^ ]



两个都使用2个循环,将像素从0更改为图像的宽度/高度:

Take a look at these examples:
Creating a Gaussian Blur with VB.NET[^]
Gausian and Alpha Blurring[^]

Both uses 2 loops, which changes pixels from 0 to Width/Height of Image:
' Loop the rows of the image
For PixelY = 0 To bmp.Width - 1
    ' Loop the cols of the image
    For PixelX = 0 To bmp.Height - 1





所有你需要做的就是模糊车牌占用的像素;)





All what you need to do is to blur pixels occupied by number plate ;)

|----------------------------| <--- image
|                            |
|                            |
|    |--------|              |
|    |--------| <------------------ number plate
|                            |
|                            |
|----------------------------|


这篇关于我必须在VB中模糊一个选定的矩形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆