image-rs / image-rs/imageproc

Pixel API

Open
#1 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion draft
Dominant language
Rust
Stars
979
Forks
181
Avg merge
5m
Merged PRs (30d)
4

Description

There are currently quite a few places both in here and in the image library where we do clunky things to get at, operate on, and assign sub pixels of a given Pixel type.

We need at least:

  • Type level operations on Pixels, e.g. get the equivalent type where all channels are of a given floating point type,
  • A wider set of arithmetic operators available on Pixels (so that we can just add p and q, rather than get all their channel values, add those, and set as channels of a pixel r),
    • A handy set of bounds to express when certain operations are possible, e.g. expressing when filtering by a float-valued kernel is appropriate.

Try to replace all current iterations over pixel channels with something nicer.

Contributor guide

Open the contributing guide

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

The issue names Pixel operations in imageproc and the image library but no files or tests. Start by surveying current iterations over pixel channels and the existing Pixel types. Done means providing type-level channel operations, broader Pixel arithmetic, useful operation bounds, and replacing the current channel iterations.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-vision
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.