ow to save image from exes to database

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

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
i have created a database and i want to save pateint name ,id and tumor image in that database
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

Sign in to comment.

Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Products

Release

R2019a

Asked:

on 4 Jul 2020

Edited:

on 4 Jul 2020

Community Treasure Hunt

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

Start Hunting!