开发者

MATLAB <---> Image editor with support for layers

I was wondering if anybody knows of an API, toolbox, or library that extracts layers from an image format that is supported by a free editor such as Paint.NET (native format: .pdn)

Motivation: An interface to an image with layers that can be edited in a free image editor would b开发者_如何学Pythone of interest for those of us who do computer vision and machine learning in MATLAB. For example, it could facilitate the automatic collection of manual pixel annotations for supervised learning.


I suggest using the .PSD Photoshop file format, which has layers support and is also implemented by many non-Adobe applications.

The PSD plugin for Paint.NET allows you to open and save PSD images: http://www.psdplugin.com/

You can then use Imagemagick to extract the layers to a format that MATLAB can read:

convert filename.psd filename-%d.png


Almost nothing can read a .pdn file. http://extension.nirsoft.net/pdn

So, you are left with the following options.

  1. Use GIMP to read in the file, and export it into something matlab supports: http://www.mathworks.com/help/techdoc/ref/imread.html.
  2. Use GIMP to read in the file, and export it into something ImageMagick supports:http://www.imagemagick.org/script/formats.php and then convert it into something matlab supports.
  3. Export the data from Paint.NET into a matlab friendly format.

Note, the Matlab links are for the image processing toolbox, if you don't have that, the options are more limited.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜