Opencv | Spatial Filters

Hello, everyone. Today, we are talking about spatial filters, a popular way to take object enhancement for special situations. For instance, there are lots of pictures of the moon in NASA, which is not so clear for us to analyse surface of the moon, so we are willing to make some enhancement in them. Let’s learn some sample theories.

Principal

The principal objective of enhancement is to process an image so that the result is more suitable than the original image for specific application.
Image enhancement approaches fall into two broad categories:
Spatial domain methods: directly on image pixels
Frequency-domain: on transform coefficients
There is no general theory of image enhancement.
The viewer is the ultimate judge of how well a particular method work, and visual evaluation is a highly subjective process.

Spatial domain enhancement processes will be denoted by the expression.
Enhancement usually involves a neighborhood about a point (x,y) which is a square or rectangular subimage centered at (x,y).
The simplest form of T is when the neighborhood is of size 1x1 (a single pixel).

Histogram Processing

The histogram of a digital image with gray-levels in the range [0, L-1] is a discrete function where h(k) is the kth gray level and r(k) is the number of pixels in the image having gray level .
It is common practice to normalize a histogram by dividing each of its values by the total number of pixels in the image, denoted by n.
The goal is to obtain a uniform histogram for the output image given any input image.
在这里插入图片描述
Obviously, four pictures with different histogram make a conclusion that if we make histogram more equal, it will have more clear appearance. That’s so useful for astronomy! Please look at these pictures!
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值