中文说明:
设计一个程序,对一幅灰度图像的实现如下几何变换,1)放大为原图1.5倍 2)绕中心旋转30度(CW) 3)采用偏移量插值实现一个透视变换. 灰度差值用最近邻插值和双线性插值
绘制一幅灰度图像的梯度幅度图像(三点法求梯度),针对梯度幅度图像合理的选择一个阈值(通过试验即可)将其二值化,以获得图像边缘检测图像。
English Description:
A program is designed to realize the following geometric transformation for a gray image, 1) Zoom in to 1.5 times of the original image 2) rotate 30 degrees around the center (CW) 3) use offset interpolation to realize a perspective transformation Gray difference uses nearest neighbor interpolation and bilinear interpolation < / P > < / Li > < li > < p > to draw the gradient amplitude image of a gray image (three-point method for gradient). According to the gradient amplitude image, a reasonable threshold (through the experiment) is selected to binarize it, so as to obtain the image edge detection image.