フィルターのクリア

how to convert some binary data to image in matlab

2 ビュー (過去 30 日間)
Aparna
Aparna 2011 年 5 月 31 日
編集済み: Walter Roberson 2017 年 1 月 17 日
hai iam doing my M.Tech prjct in matlab. i dont know hoe to give an image as input. so plz clarify my doubt
  1 件のコメント
Oleg Komarov
Oleg Komarov 2011 年 5 月 31 日
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

サインインしてコメントする。

採用された回答

Jan
Jan 2011 年 5 月 31 日
Try IMREAD.

その他の回答 (2 件)

KIRAN kumar
KIRAN kumar 2013 年 1 月 17 日
uigetfile can also be to read image from any directory
  1 件のコメント
Walter Roberson
Walter Roberson 2013 年 1 月 17 日
No, uigetfile() only returns the file name (and path). It does not read the file. You need imread() for that.

サインインしてコメントする。


Vijan Kaush
Vijan Kaush 2017 年 1 月 17 日
編集済み: Walter Roberson 2017 年 1 月 17 日
I = imread('image.jpg'); % read jpg image
Igray = rgb2gray(I); % convert rgb image to gray scale image
Ibinary = im2bw(Igray,graythresh(Igray)); % convert gray image to binary image

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by