ow to save image from exes to database
Show older comments
I have generate a GUI to detect brain tumor . I want to save that image and patiet name in data base . kindly give me the solution
4 Comments
Sugar Daddy
on 4 Jul 2020
if GUI is a figure, use getframe or print.
create a structure and add two fileds in it, patient_ID and tumor_Image . Now index your structure and save patient name in patient_ID by accessing
my_struct(1).patient_ID = 'Rabia Ahmad';
my_struct(1).tumor_Image = getframe(ax);
%where ax is figure axes, you can use gca to access that
rabia ahmad
on 4 Jul 2020
Sugar Daddy
on 4 Jul 2020
Edited: Sugar Daddy
on 4 Jul 2020
I think (not sure) you can store image in a cell like
xyz = getframe;
xyz ={xyz.cdata};
Now if you feed this xyz to table (set its variabletype to cell) it will work fine
Answers (0)
Categories
Find more on Convert Image Type 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!