imagej / imagej/imagej-ops

Improve transform.project op to compute default output

Open
#547 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
94
Forks
44
PR merge metrics
No merged PRs in 30d

Description

When using the `transform.project` op, it's a common pattern to first create an output with a subset of the dimensions of the input, then projecting along the remaining dimension, e.g. for an input with 3 dimensions:

```groovy
#@ Dataset input
#@ OpService ops

result = ops.run("create.img", [input.dimension(0), input.dimension(1)])
sumOp = ops.op("sum", input)
ops.run("project", result, input, sumOp, 2)
```

It would be great to have the `project` op generate its own output if none is provided (i.e. act as a `Function`), so that calling the op gets as easy as:

```groovy
result = ops.run("project", input, sumOp, dim)
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the `transform.project` op entry point and inspect how it currently receives and uses the output dataset. Determine how the omitted-output call should derive its dimensions from the input and projection dimension. Done means the op supports both the existing explicit-output form and the requested call that returns a computed result.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-vision
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.