
图像处理
god 小文
c#的路上加油
展开
-
C#实现Matlab中的fft2函数和fftshift函数
Mat fft2( Mat src) { Mat Fourier = new Mat(); int mat_type = (int)src.Depth; if (mat_type>15) { Debug.Print("报错"); } if (mat_type < 7) { .原创 2020-05-24 19:24:56 · 1214 阅读 · 0 评论 -
C#实现Matlab中的padarray函数
public Matrix<byte> padarray(Matrix<byte> src, int RowPad, int ColPad) { int n = src.Rows; int m = src.Cols; Mat temp1 = new Mat(n, m + ColPad * 2, DepthType.Cv32F, 1); Matrix<byte>原创 2020-05-24 19:21:26 · 264 阅读 · 0 评论 -
C#实现图片平移
private void Button2_Click(object sender, EventArgs e) { Image<Gray, byte> src = new Image<Gray, byte>(ImagePath); src = ImagePan(src, 100, -100); pictureBox2.Image = src.Bitmap; } p原创 2020-05-09 16:26:07 · 1721 阅读 · 0 评论 -
C#实现图片放大缩小
//times需要放大或者缩小的倍数public Bitmap imresize(Bitmap Image, double times) { int width = Image.Width; int height = Image.Height; int IOwidth = (int)Math.Round(wi...原创 2020-05-03 16:40:25 · 5914 阅读 · 0 评论 -
C# 实现gabor滤波
string ImagePath; private void Button1_Click(object sender, EventArgs e) { OpenFileDialog openfile = new OpenFileDialog(); if (openfile.ShowDialog() ==...原创 2020-05-03 15:39:26 · 604 阅读 · 4 评论