how can i change normal image to grayscale from menu editor gui?
13 views (last 30 days)
Show older comments
[Filename,Pathname]=uigetfile({'*.jpg';'*.png'}, 'File Selector');
name=strcat(Pathname,Filename);
a=imread(name);
imshow(a);
........
this is to open file but i want to rgb2gray from this coding. how can i do? thank you for helping. im using menu editor gui and for rgb2gray that is another menu callback
0 Comments
Accepted Answer
KALYAN ACHARJYA
on 21 Mar 2019
[Filename,Pathname]=uigetfile({'*.jpg';'*.png'}, 'File Selector');
name=strcat(Pathname,Filename);
a=rgb2gray(imread(name));
imshow(a);
More Answers (0)
See Also
Categories
Find more on Debugging and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!