TheMathWorksMATLAB®andAdobe®Photoshop®ReadMeTheMATLABfilesinthisfoldercreateaPhotoshopToolboxinMATLAB.ThistoolboxcreatesaneasytouseworkflowforscientistandresearchersusingMATLABandPhotoshopincombination.ThisisasetofMATLABmfilesthatexpandMATLABfunctionsandallowMATLABuserstocallPhotoshopcommandsdirectlyfromtheMATLABcommandprompt.ThisenablestheabilitytogetandsetpixelvaluesdirectlyinMATLABandthenviewineitherMATLABorPhotoshop.MATLABisahigh-levellanguageandinteractiveenvironmentthatenablesyoutoperformcomputationallyintensivetasksfasterthanwithtraditionalprogramminglanguagessuchasC,C++,andFortran.FormoreinformationaboutTheMathWorksandtheMATLABproductpleasefindtheirhomepagehere:http://www.mathworks.comSystemrequirementsThisprojectrequiresanoperatingsystemthatcanrunbothPhotoshopandMATLABsimultaneously.Howtoinstall?AddingPathsinMATLABThefollowingstepswillallowyoutocallthePhotoshopmethodswithouthavingtobeinthePhotoshopfolder.1.FromtheMATLABmenugototheFile�SetPathdialog2.ClickonAddwithSubfolders…andselecttheMATLABfolderthatispartofyourAdobePhotoshopinstall3.ClickSaveandthenClose4.FromtheMATLABmenugototheFile�Preferencesdialog5.ClickontheGeneraltree(atthetopontheleft)6.ClickontheUpdateToolboxPathCache7.ClickApplyandthenOKHowtouse?1.LaunchPhotoshopandthenMATLAB.2.AttheMATLABpromptnavigatetothetestssubfolderofMATLABfolderinthepathyouaddedabove.3.Typetestall;4.PhotoshopandMATLABwillrunaseriesoftestsandgiveyouafinalreport.IntegratedHelpinMATLABAfterfollowingthe“Howtoinstall”instructionsabove,aPhotoshopToolboxisnowinyourMATLABhelp.ClickHelp->FullProductFamilyHelp.YouwillseeaPhotoshopToolboxwithsubmenuitems.KnownIssues1.LargedocumentsmaycausetheMacintoshtocrash.BothPhotoshopandMATLABconsumealotofmemorysowatchoutforlargePhotoshopfiles.2.pslaunchisnotworkingontheMacintosh(ItisrecommendedtostartPhotoshopandthenstartMATLAB.)SeethePhotoshopToolboxhelpformoreinformationonmanuallyfixingthisproblem.3.QuittingPhotoshopwithoutquittingMATLABwillloosetheconnectiontoMATLAB.(Typeunloadlibrary(‘psmatlab’)inMATLABtoforceadisconnect.Anyps*commandwillstartafreshconnection.4.Gettingpixelsfromlayerswithadjustmentsonthemdoesnotwork.FlattenyourPhotoshopdocumentorrasterizeyourPhotoshoplayerisaworkaround.5.The64bitversionofMATLABmustbeusedwiththe64bitversionofPhotoshop.6.The32bitversionofMATLABmustbeusedwiththe32bitversionofPhotoshop.7.MATLABVersion7.5(R2007b)orlaterrequired.7.6(R2008a)for64bit.8.ACcompilerisrequiredtousethePhotoshopinterface.a.WindowsuserswillneedtoinstallMicrosoftDeveloperStudiob.MacintoshuserswillneedtoinstallXCodeJapaneseUsersJapaneseuserscanfindthereadmeandHTMLfilesintheMATLAB/Required/Japanesefolder.©AdobeSystemsIncorporated07/10/2008