JuliaImages / JuliaImages/ImageDraw.jl
incorrect `closed` behavior
Open
Nobody has claimed this yet.
bug
- Dominant language
- Julia
- Stars
- 27
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
I'm not sure if this is an expected behavior or not:
img = zeros(RGB{Float64}, 10, 10)
verts = [CartesianIndex(2, 2), CartesianIndex(2, 6), CartesianIndex(6, 2), CartesianIndex(2,2)]
alg = BoundaryFill(4, 4; fill_value = RGB(1), boundary_value = RGB(1))
mosaic(
draw(img, verts, alg; closed=true),
draw(img, verts, alg; closed=false);
npad=2, fillvalue=0.5
)
closed=false is an all-white image:

cc: @ashwani-rathee
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
Run the Julia reproducer using BoundaryFill and compare draw with closed=true and closed=false, then inspect the draw entry point and its handling of the closed option. Confirm the intended behavior for an open boundary and make the result consistent with that expectation, with a regression check for this example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100