求matlab图像处理函数的详细介绍,包括参数的介绍,越详细越好
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了求matlab图像处理函数的详细介绍,包括参数的介绍,越详细越好相关的知识,希望对你有一定的参考价值。
RT,像filter2函数,其语法为B=filter2(h,A),B=filter2(h,A,shape),却没有介绍参数的类型和作用。
参考技术A Matlab Version 7.1.0.246 (R14)里面的Help:filter2
Two-dimensional digital filtering
Syntax
Y = filter2(h,X)
Y = filter2(h,X,shape)
Description
Y = filter2(h,X) filters the data in X with the two-dimensional FIR filter in the matrix h. It computes the result, Y, using two-dimensional correlation, and returns the central part of the correlation that is the same size as X.
Y = filter2(h,X,shape) returns the part of Y specified by the shape parameter. shape is a string with one of these values:
'full'Returns the full two-dimensional correlation. In this case, Y is larger than X.'same'(default) Returns the central part of the correlation. In this case, Y is the same size as X.'valid'Returns only those parts of the correlation that are computed without zero-padded edges. In this case, Y is smaller than X.
Remarks
Two-dimensional correlation is equivalent to two-dimensional convolution with the filter matrix rotated 180 degrees. See the Algorithm section for more information about how filter2 performs linear filtering.
Algorithm
Given a matrix X and a two-dimensional FIR filter h, filter2 rotates your filter matrix 180 degrees to create a convolution kernel. It then calls conv2, the two-dimensional convolution function, to implement the filtering operation.
filter2 uses conv2 to compute the full two-dimensional convolution of the FIR filter with the input matrix. By default, filter2 then extracts the central part of the convolution that is the same size as the input matrix, and returns this as the result. If the shape parameter specifies an alternate part of the convolution for the result, filter2 returns the appropriate part. 参考技术B 我告诉你一秘密,matlab中最好用的函数
help
你help filter2试试看本回答被提问者采纳 参考技术C 可以去看看一本书:
图像处理方面比较经典的:
<<数字图像处理>>和配套的matlab教学<<数字图像处理(matlab版)>>
尤其后者对图像处理方面的matlab都有很详细的介绍和教学
作者是: Gonzalez
前者中英文的Ebook版本都有, 后者只有英文的Ebook
不过两本在书店都有中文书卖的~~
给我一个实例,Matlab中用imread函数读取一个图像,求详细步骤
1、首先在电脑中打开Matlab,点击”新建脚本“,如下图所示。
2、输入读取并显示图片的代码:f=imread('E:\\鱼木混猪.jpg');imshow(f);,如下图所示。
3、点击“保存并运行”按钮,如下图所示。
4、需要保存文件才能运行,选择文件保存位置,并设置文件名,文件名必须以字母开头,且只能为字母、数字和下划线,如下图所示。
5、保存完成后,就会在Matlab中弹出一个对话框显示读取的图片。
参考技术A f=imread('D:\123.jpg'); %图像存在D盘,名字为123,jpg格式(或bmp...等)imshow(f); %显示图像 参考技术B 你是指图像矩阵的操作吧,比如:% By lyqmathclc; clear all; close all;
I = imread('rice.png');
I1 = I + 150;
figure;
subplot(1, 2, 1); imshow(I, []);
subplot(1, 2, 2); imshow(I1, []);
以上是关于求matlab图像处理函数的详细介绍,包括参数的介绍,越详细越好的主要内容,如果未能解决你的问题,请参考以下文章
Matlab数字图像处理,要求详细解释代码,每个函数都要解释.这个是对图像求幅值谱和相位谱,并对其进行重构.