Photoshop and matlab (photoshop extended), About photoshop and matlab (photoshop extended), Set up matlab and photoshop (photoshop extended) – Adobe Photoshop CS4 User Manual

Page 622: Verify matlab integration, Optional) set access to photoshop from matlab

Advertising
background image

615

USING PHOTOSHOP CS4

3D and technical imaging

Last updated 1/10/2010

Photoshop and MATLAB (Photoshop Extended)

About Photoshop and MATLAB (Photoshop Extended)

MATLAB is a high-level technical computing language and interactive environment for algorithm development, data
visualization, data analysis, and numeric computation. With Photoshop Extended you can view MATLAB image-
processing results in Photoshop, and combine MATLAB commands with Photoshop image-editing features.

Once you connect to Photoshop from MATLAB, typing commands into the MATLAB command prompt performs
operations in Photoshop. You can run MATLAB algorithms and view the results in your image in Photoshop.

Note: Communication between Photoshop and MATLAB uses the Photoshop JavaScript interface and the MATLAB
library interface.

Set up MATLAB and Photoshop (Photoshop Extended)

Install Photoshop and MATLAB on your computer. Once you have installed Photoshop Extended and MATLAB, you
should verify the MATLAB integration.

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 (Photoshop Extended)

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).

Advertising