JuliaImages / JuliaImages/ImageView.jl
set aspect ratio
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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