我如何使用imagemagick库进行处理? [英] How would I use the imagemagick library with processing?

查看:253
本文介绍了我如何使用imagemagick库进行处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 imagemagick库(更具体地说: shepards扭曲部分)与 processing.org 。有谁知道这是怎么做到的吗?或者如果那是不可能的,有没有人知道另一个可以做这种失真的库?

I want to use the imagemagick library (more specifically: the shepards distortion part of it) with processing.org. Does anyone know how to do that? Or if that is not possible, does anyone know of another library that can do this type of distortion?

我已经发现了这些相关的问题:一个
两个
three

I've already found these related questions: one, two and three

推荐答案

试着看进入 JMagick ,它是ImageMagick的包装器。但是,如果您希望使用ImageMagick命令行的界面 im4java API应该是有用的。我自己没有使用im4java。但以下部分取自网站:

Try to Look into the JMagick, it is a wrapper of ImageMagick. However if you wish an interface to the ImageMagick commandline im4java API should be useful. I didn't use im4java myself. But the following portion is taken from the site:


JMagick是ImageMagick C-API上方的瘦JNI层。
对比中的im4java只生成ImageMagick命令
的命令行,并将生成的行传递给选定的IM命令(使用
java.lang.ProcessBuilder.start() - 方法)。

JMagick is a thin JNI layer above the ImageMagick C-API. im4java in contrast just generates the commandline for the ImageMagick commands and passes the generated line to the selected IM-command (using the java.lang.ProcessBuilder.start()-method).

该方法的缺点:您的IM命令限制为
的功能。使用JMagick,您可以访问IM的低级
界面,因此您可以非常详细地控制
处理图像。并且你有更好的表现。

Disadvantages of the approach: your are limited to the capabilities of the IM commands. With JMagick, you have access to the low-level interface of IM and therefore you have a very detailed control of the processing of images. And you have better performance.

这篇关于我如何使用imagemagick库进行处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆