JuliaImages / JuliaImages/ImageDraw.jl

incorrect `closed` behavior

Open
#65 9 comments 0 reactions 0 assignees View on GitHub

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:

image

cc: @ashwani-rathee

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.