Photoshop Toolbox

# Photoshop Toolbox

Photoshop integration enables communication between Photoshop and MATLAB, by letting you access images in Photoshop directly from the MATLAB command line. This is relevant for anyone wanting to run image processing routines in MATLAB and see results or combine with image processing functionality in Photoshop. Communication between Photoshop and MATLAB is enabled via the Photoshop JavaScript interface and the MATLAB library interface. Users will type commands into the MATLAB command line (i.e. Photoshop runs in the background) and the basic workflow is: (1) Get pixels from Photoshop (2) run MATLAB algorithms (3) place the pixels back in Photoshop to see the results visually (including ICC profiles).

There are known issues when trying to launch Photoshop from MATLAB. I will list some work arounds and possible solutions here. If you have multiple versions of Photoshop installed, the wrong version may launch. The solution is to launch Photoshop before running any MATLAB commands. On Windows, the pslaunch command will pick the last version of Photoshop that was running. Simply launch and quit the version you want and pslaunch will pick that version. If you get errors about a libtiff problem, you can remove the links to the libtiff libraries. This is a Macintosh only problem. The libraries can be found in your MATLAB installation /bin/mac folder. Place a '~' as the first character for libtiff.3.dylib, and libtiff.3.7.1.dylib, and their aliases. The numbers for your installation may be different but all files starting with libtiff need the '~' as the first character.

The documentation found in your Photoshop install can be used to expand the Photoshop Toolbox to meet your needs. Please review the PDF files found in the "Scripting Guide" of your Photoshop install and the MATLAB files found in the "MATLAB" folder of your Photoshop install for more information.

Examples | Some quick and easy examples.
Function list by category | A list of functions by category.
Alphabetical function list | An alphabetical list of all the functions.
Adobe Web page | Official Adobe web page.

© 2006 Adobe Systems, Inc.