Operation Manual

564
USING PHOTOSHOP
Technical imaging
Last updated 12/5/2011
Set up MATLAB and Photoshop
Install Photoshop and MATLAB on your computer. Once you have installed Photoshop Extended and MATLAB, you
should verify the MATLAB integration.
For 64-bit systems, install the appropriate compiler
To use the Photoshop interface on a 64-bit system, a C compiler must be installed:
In Windows, install Microsoft Developer Studio.
In Mac OS, install XCode.
For more information, see the MATLAB Photoshop Read Me in the Photoshop application folder.
Note: In Windows, use 64-bit Photoshop with 64-bit MATLAB, and 32-bit Photoshop with 32-bit MATLAB.
Verify MATLAB integration
1 Start Photoshop Extended and then MATLAB.
2 From MATLAB, add the path Photoshop/MATLAB, including subfolders.
3 At the MATLAB prompt, open the MATLAB folder, locate and open the Tests folder, and then type testall.
4 Photoshop and MATLAB run a series of tests to ensure integration between the two programs and display a
summary report.
(Optional) Set access to Photoshop from MATLAB
You can set up a path to Photoshop Extended to allow direct access to Photoshop commands from MATLAB.
1 From MATLAB, choose File > Set Path.
2 Click Add Folder and select the MATLAB folder where Photoshop Extended is installed.
3 Click Save and then Close.
4 From the MATLAB menu, choose File > Preferences.
5 In the Preferences dialog box, click the General tree (upper-left).
6 Click the Update Toolbox Path Cache button.
7 Click Apply and then OK.
Connect/disconnect to Photoshop from MATLAB
In MATLAB, do one of the following:
To launch or connect to Photoshop, type pslaunch, and then press Enter (Windows) or Return (Mac OS).
To disconnect from Photoshop and quit, type psquit and press Enter (Windows) or Return (Mac OS).
Using MATLAB Help
MATLAB’s Help system includes examples of a MATLAB/Photoshop workflow.
1 Choose Help > Full Product Family Help.
You see a Photoshop Toolbox with submenu items, including Examples for getting started. If you don’t see the
Photoshop Toolbox, try the following steps.
2 Click the Start Button.