I tried it now with this code, but I also get just a number when i dicomread the saved image again: if true
[FileName, PathName] = uiputfile('*dcm', 'Save As');
Name = fullfile(PathName,FileName);
names={handles.filesPerfusion.name};
PositionText=size(handles.dcmStack(:,:,1));
figure('name','Saving Process'),
colormap gray(256),
h1=imagesc(handles.dcmStack(:,:,1));
hold on;
h2=imagesc(handles.mPerfusion(:,:,:,1));
hold off;
axis off
set(h2, 'AlphaData', handles.maskTransparency);
text(1,PositionText(1)-10, 'NOT FOR DIAGNOSTIC USE')
fname = names{1};
metadata = dicominfo([handles.path2 '\' fname]);
dicomwrite(gcf,Name, metadata)
close(gcf);
end
I also tried now to saveas it as jpg, but I store then an image with a white frame (caused by the figure?) I also already asked the author of export_fig if I could use this function but because of the fact that I overlay to images (and I don't have a variable which cotains all the image info) this function is unfortunately useless... Please help me..