how to convert some binary data to image in matlab
4 次查看(过去 30 天)
显示 更早的评论
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
2011-5-31
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
采纳的回答
更多回答(2 个)
KIRAN kumar
2013-1-17
uigetfile can also be to read image from any directory
1 个评论
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
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!