imagej-ops

ImageJ Ops: "Write once, run anywhere" image processing

  • 所有者: imagej/imagej-ops
  • 平台:
  • 许可证: BSD 2-Clause "Simplified" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图


Join the chat at https://gitter.im/imagej/imagej-ops

ImageJ Ops

ImageJ Ops is an extensible Java framework for algorithms, particularly image
processing algorithms. Ops seeks to be a unifying library for scientific image
processing. See the
Motivation page for
details.

Getting started

Each op has a list of typed input and output parameters on which it operates.
You can think of an op as a (potentially multi-variable) function:

sum = math.add(a, b)
(phase, amplitude) = fft(image)

In many cases you can also pass a pre-allocated output which will be populated:

math.add(sum, a, b)

Some ops take other ops as inputs, which allows for things like "execute this
op on every pixel of that image":

add_op = op("math.add", 5)
output_image = map(input_image, add_op)

For more details, see the "Introduction to ImageJ Ops" tutorial notebook:

https://imagej.github.io/tutorials

Working example

Try this Jython script in ImageJ's
Script Editor!

# @ImageJ ij

# create a new blank image
from jarray import array
dims = array([150, 100], 'l')
blank = ij.op().create().img(dims)

# fill in the image with a sinusoid using a formula
formula = "10 * (Math.cos(0.3*p[0]) + Math.sin(0.3*p[1]))"
sinusoid = ij.op().image().equation(blank, formula)

# add a constant value to an image
ij.op().math().add(sinusoid, 13.0)

# generate a gradient image using a formula
gradient = ij.op().image().equation(ij.op().create().img(dims), "p[0]+p[1]")

# add the two images
composite = ij.op().create().img(dims)
ij.op().math().add(composite, sinusoid, gradient)

# display the images
ij.ui().show("sinusoid", sinusoid)
ij.ui().show("gradient", gradient)
ij.ui().show("composite", composite)

The output:

sinusoid gradient composite

How to contribute

We welcome pull requests!

主要指标

概览
名称与所有者imagej/imagej-ops
主编程语言Java
编程语言Groovy (语言数: 2)
平台
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2014-03-07 09:19:29
推送于2024-08-29 15:52:00
最后一次提交2024-08-29 10:51:59
发布数73
最新版本名称imagej-ops-2.2.0 (发布于 )
第一版名称ij-ops-0.1.0 (发布于 2014-04-04 18:40:05)
用户参与
星数89
关注者数36
派生数42
提交数3.7k
已启用问题?
问题数283
打开的问题数160
拉请求数279
打开的拉请求数15
关闭的拉请求数79
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?