JuliaImages / JuliaImages/ImageCore.jl

port graytype from Images.jl to ImageCore.jl

Open
#96 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
Julia
Stars
28
Forks
21
PR merge metrics
No merged PRs in 30d

Description

https://github.com/JuliaImages/Images.jl/blob/373d1427232a08d9c6747222404d27e4d54faed8/src/algorithms.jl#L285-L287

I know that Gray(rand(RGB{N0f8})) converts an RGB pixel to Gray pixel while preserving the storage type. Can we support similar operations for Colorant such as Gray(RGB{N0f8}) == Gray{N0f8}?

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

Read Images.jl's src/algorithms.jl at the linked lines to understand the existing graytype behavior, then inspect ImageCore's Colorant definitions and conversion entry points. The work is done when Colorant operations such as Gray(RGB{N0f8}) produce Gray{N0f8} while preserving the storage type, matching the issue's example.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.