フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How do you write a FUNTION-M file?

2 ビュー (過去 30 日間)
Esther
Esther 2012 年 9 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Please give me an example of a FUNCTION code whereby image is convert to greyscale and to binary scale and going through salt & pepper filtering. thank you:)

回答 (1 件)

Wayne King
Wayne King 2012 年 9 月 17 日
編集済み: Wayne King 2012 年 9 月 17 日
Your title is not an accurate description of your post. Your post is asking somebody to write specific code for you, not a general question about how to write a function.
If you have the Image Processing Toolbox, please look at imread.m, imnoise.m, and medfilt2.m.
There are examples there of filtering salt & pepper noise. medfilt2.m will handle various classes of input image.
  3 件のコメント
Image Analyst
Image Analyst 2012 年 9 月 17 日
Jan
Jan 2012 年 9 月 17 日
@Esther: Please read the "Getting Started" chapters of the documentations, which is displayed by tyoing "doc" in the command window. Creating and calling a function belong to the very basics and a forum cannot replace a deep study of the documentation.

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by