From: Paul on 26 Apr 2010 05:47 Im aware of how to save an image, imwrite(finaleImage,FinalFileName,'jpg', 'Quality', 100); But how do i create/call a save file browser where i can browser the pc like most applications and type in the name desired. The chosen directory+file+.jpg would obviously become FinalFileName. Thanks
From: ImageAnalyst on 26 Apr 2010 06:33 uiputfile Open standard dialog box for saving files Syntax FileName = uiputfile [FileName,PathName] = uiputfile [FileName,PathName,FilterIndex] = uiputfile(FilterSpec) [FileName,PathName,FilterIndex] = uiputfile(FilterSpec,DialogTitle) [FileName,PathName,FilterIndex] = uiputfile(FilterSpec,DialogTitle,DefaultName) Description FileName = uiputfile displays a modal dialog box for selecting or specifying a file you want to create or save. The dialog box lists the files and folders in the current folder. If the selected or specified filename is valid, uiputfile returns it in FileName. [FileName,PathName] = uiputfile works the same as the first syntax, but also returns the path to FileName in PathName, or if you cancel the dialog, returns 0 for both arguments. If you do not provide any output arguments, the filename alone is returned in ans.
From: Paul on 26 Apr 2010 06:46 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <02ef4576-7ee1-4914-bfe4-e2f78da2127c(a)y17g2000yqd.googlegroups.com>... > uiputfile > > Open standard dialog box for saving files > Syntax > > FileName = uiputfile > [FileName,PathName] = uiputfile > [FileName,PathName,FilterIndex] = uiputfile(FilterSpec) > [FileName,PathName,FilterIndex] = uiputfile(FilterSpec,DialogTitle) > [FileName,PathName,FilterIndex] = > uiputfile(FilterSpec,DialogTitle,DefaultName) > Description > > FileName = uiputfile displays a modal dialog box for selecting or > specifying a file you want to create or save. The dialog box lists the > files and folders in the current folder. If the selected or specified > filename is valid, uiputfile returns it in FileName. > > [FileName,PathName] = uiputfile works the same as the first syntax, > but also returns the path to FileName in PathName, or if you cancel > the dialog, returns 0 for both arguments. If you do not provide any > output arguments, the filename alone is returned in ans. cheers, anyway to remove the file type choice? so that it doesnt display .m .fig .mat or so that it only displays .jpg p.s. do u work for the matlab team? because u answer alot of questions ;)
From: Paul on 26 Apr 2010 06:50 "Paul " <overclocked89(a)hotmail.co.uk> wrote in message <hr3nep$p7k$1(a)fred.mathworks.com>... > Im aware of how to save an image, > > > imwrite(finaleImage,FinalFileName,'jpg', 'Quality', 100); > > But how do i create/call a save file browser where i can browser the pc like most applications and type in the name desired. > > The chosen directory+file+.jpg would obviously become FinalFileName. > > Thanks ah nvm, googled ur answer, and its part of the filespec so for example: [FileName,PathName,FilterIndex] = uiputfile('.jpg') Thanks alot. :) !
From: ImageAnalyst on 26 Apr 2010 06:51 Not sure what you mean. Do you mean like how to set the FilterSpec to be "*.jpg"? To do that you'd do [FileName,PathName,FilterIndex] = uiputfile('*.jpg') ; fullFileName = fullfile(PathName, FileName); imwrite(fullFileName); No I don't work for the Mathworks, however if you think I'm doing such an extensive job helping their tech supports and users, then you can suggest to them that they can pay me. They know my real identity.
|
Pages: 1 Prev: loop optimizing Next: Trisurf with non-constant colors withing each triangle |