如何使用 ImageJ API 向图像添加颗粒 [英] How do I add grain to an image using the ImageJ API

查看:42
本文介绍了如何使用 ImageJ API 向图像添加颗粒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 ImageJ 的新手,我正在寻求添加谷物(定义如下:http://en.wikipedia.org/wiki/Film_grain) 到使用 ImageJ 的编程 API 的图像.

I am new to ImageJ and I am seeking to add grain (as defined here: http://en.wikipedia.org/wiki/Film_grain) to an image using the programmatic API of ImageJ.

  • 可能吗?如果是这样怎么办?
  • 关于添加谷物的相关文档/Javadoc 在哪里?使用 ImageJ 到图像?

推荐答案

我会从 Process > 开始噪声,在中描述ImageJ 用户指南:§29.6 噪声.您必须决定现有的实现是否可以满足您的要求.

I'd start in Process > Noise, described in ImageJ User Guide: §29.6 Noise. You'll have to decide if the existing implementations can be made to meet your requirements.

我可以在哪里找到有关如何使用实际 API 而不是 UI 实现此目标的文档.

ImageJ 宏语言,一种简单的方法是启动 Plugin >宏>记录,然后操作所需的GUI命令.这会显示宏命令名称和任何设置,例如:

As discussed in ImageJ Macro Language, one easy way is to start Plugin > Macros > Record and then operate the desired GUI command. This reveals the macro command name and any settings, for example:

run("Add Noise");
run("Add Specified Noise...", "standard=16");

您可以使用 -batch 命令行选项将这样的宏应用于多个文件.

You can apply such a macro to multiple files using the -batch command line option.

如果您想直接从 Java 使用功能,请参阅 ImageJ 编程教程.

If you want to use a feature directly from Java, see ImageJ programming tutorials.

这篇关于如何使用 ImageJ API 向图像添加颗粒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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