JuliaImages / JuliaImages/ImageCore.jl

introduce `StructArrays`

Open
#170 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

We only have native support for an array of struct layout, the struct of array layout uses channelview/colorview but it losses the colorant information.

We might want to introduce StructArray to do some internal memory layout shifting without affecting the interface; it's still array of colorant but storing in a struct of array layout.

img = testimage("mandril")
out = StructArray(img)

out  == img # true

Of course, need some more sophiscate benchmark to decide this.

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 by examining the existing channelview/colorview approach and how it loses colorant information. Use testimage("mandril") to compare StructArray(img) with the original image, then establish more sophisticated benchmarks to determine whether the proposed layout shift is worthwhile.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.