JuliaImages / JuliaImages/ImageView.jl

set aspect ratio

Open
#271 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
138
Forks
33
PR merge metrics
No merged PRs in 30d

Description

The aspect kwarg to imshow() currently appears to support only the values

  • :none, which sets the aspect ratio of pixels automatically such that the window is kept filled as it is resized, and
  • :auto (or any other value really), which sets the aspect ratio of pixels to 1 (square pixels).

If I have an image with non-square pixels of a known aspect ratio, e.g. where the horizontal resolution is 1.6 times the vertical resolution, it would be useful to be able to specify a numeric aspect ratio (either for the entire image or for one pixel).

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 imshow() entry point and trace how the aspect kwarg handles :none and :auto. Clarify whether a numeric ratio applies to the whole image or to individual pixels, then add coverage showing non-square pixels and verify the displayed result during resizing.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.