How to convert structure to gray image
3 views (last 30 days)
Hello, i'd like to ask something about converting data to image.
i have structure(xxx.mat file) and i'd like to convert it to grayimage.
when i use 'imshow' function, it comes to error. i think it is not double,single ... type. it's structure.
please help me..
this is my data file and i'd like to convert and save it to gray image file.
i want the binary image like this.
KALYAN ACHARJYA on 25 Oct 2022
Edited: KALYAN ACHARJYA on 25 Oct 2022
Read the individual cell array data element, apply image function
% axis off;
You might be required to use loop to call the individual cell array data element. Later it can be save as image in the directory or any other ways, you wish for.
Hope it helps!