Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BoundaryFill doesn't work for real-size images #66

Open
johnnychen94 opened this issue Jun 2, 2021 · 4 comments
Open

BoundaryFill doesn't work for real-size images #66

johnnychen94 opened this issue Jun 2, 2021 · 4 comments
Labels

Comments

@johnnychen94
Copy link
Member

johnnychen94 commented Jun 2, 2021

using ImageCore, ImageShow, TestImages, ImageDraw

img = testimage("lighthouse")

verts = [CartesianIndex(2, 2), CartesianIndex(2, 6), CartesianIndex(6, 2)]
alg = BoundaryFill(3, 3; fill_value = RGB{N0f8}(1), boundary_value = RGB{N0f8}(1))
draw(img, verts, alg; closed=false)

The recursive call of BoundaryFill simply blows up the call stack:

if (res[y, x] != f.boundary_value && res[y, x] != f.fill_value)
res[y, x] = f.fill_value
f(res, verts, x + 1, y)
f(res, verts, x, y + 1)
f(res, verts, x - 1, y)
f(res, verts, x, y - 1)
end

cc: @ashwani-rathee

@ashwani-rathee
Copy link
Member

I won't say it doesn't work because I used it today to makes its documentation

But there is something buggy about how it works. The issue you mentioned above is there,

@johnnychen94
Copy link
Member Author

For me it's StackOverflowError:

julia> versioninfo()
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
error stack
julia> draw(img, verts, alg; closed=false)
ERROR: StackOverflowError:
Stacktrace:
   [1] getindex
     @ ./array.jl:802 [inlined]
   [2] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:14
   [3] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
   [4] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 73 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
   [5] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
   [8] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 578 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
   [9] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
  [10] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 577 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
  [11] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
  [20] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 78 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
  [21] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
  [28] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 576 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
  [29] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
  [30] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 575 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
  [31] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
  [40] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 80 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
  [41] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
  [48] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 574 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
  [49] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
  [50] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 573 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
  [51] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
  [60] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 82 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
  [61] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
  [68] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 572 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
  [69] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
  [70] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 571 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
  [71] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
  [80] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 84 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
  [81] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
  [88] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 570 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
  [89] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
  [90] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 569 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
  [91] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
  [92] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 569 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
  [93] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
  [94] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 647 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
  [95] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [100] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 86 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [101] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
 [104] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 646 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [105] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [106] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 645 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [107] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [112] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 88 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [113] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
 [116] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 644 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [117] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [118] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 643 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [119] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [124] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 90 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [125] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
 [128] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 642 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [129] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [130] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 641 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [131] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [136] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 92 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [137] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
 [140] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 640 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [141] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [142] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 639 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [143] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [148] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 94 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [149] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
 [152] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 638 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [153] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [154] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 637 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [155] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [160] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 96 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [161] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
 [164] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 636 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [165] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [166] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 635 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [167] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [172] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 98 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [173] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
 [176] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 634 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [177] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [178] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 633 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [179] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [184] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 100 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [185] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
 [188] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 632 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [189] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [190] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 631 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [191] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [196] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 102 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [197] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
 [200] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 630 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [201] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [202] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 629 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [203] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [208] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [209] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 2 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [210] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [211] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [218] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 628 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [219] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [220] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 627 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [221] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [230] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 3 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [231] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [238] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 626 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [239] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [240] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 625 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [241] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [252] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 2 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [253] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [262] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 624 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [263] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [264] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 623 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [265] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [278] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 2 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [279] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [290] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 622 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [291] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [292] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 621 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [293] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [306] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 4 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [307] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [318] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 620 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [319] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [320] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 619 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [321] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [334] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 6 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [335] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [346] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 618 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [347] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [348] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 617 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [349] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [362] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 8 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [363] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [374] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 616 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [375] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [376] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 615 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [377] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [390] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 10 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [391] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [402] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 614 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [403] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [404] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 613 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [405] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [418] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 12 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [419] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [430] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 612 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [431] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [432] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 611 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [433] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [446] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 14 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [447] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [458] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 610 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [459] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [460] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 609 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [461] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [474] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 16 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [475] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [486] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 608 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [487] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [488] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 607 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [489] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [502] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 18 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [503] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [514] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 606 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [515] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [516] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 605 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [517] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [530] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 20 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [531] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [542] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 604 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [543] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [544] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 603 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [545] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [558] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 20 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [559] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [560] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 20 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [561] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [562] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 21 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [563] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 2 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
 [564] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [565] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [576] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 602 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [577] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [578] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 601 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [579] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [590] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [591] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [592] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [593] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [604] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 600 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [605] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [606] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 599 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [607] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [608] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 599 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [609] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [610] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 735 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [611] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
--- the last 2 lines are repeated 1 more time ---
--- the last 2 lines are repeated 1 more time ---
 [616] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 4 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [617] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
--- the last 2 lines are repeated 1 more time ---
 [620] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 734 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [621] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [622] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 733 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [623] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [624] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 733 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [625] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [626] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 766 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [627] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:19
 [628] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 767 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [629] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 100 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
 [630] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 3 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [631] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 2 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
 [632] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 3 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:18
 [633] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 407 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:17
 [634] (::BoundaryFill{RGB{N0f8}})(res::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, x::Int64, y::Int64) (repeats 765 times)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:16
 [635] draw!(img::Matrix{RGB{N0f8}}, verts::Vector{CartesianIndex{2}}, f::BoundaryFill{RGB{N0f8}}; closed::Bool)
     @ ImageDraw ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:68
 [636] #draw#37
     @ ~/Documents/Julia/ImageDraw.jl/src/polygonfill2d.jl:104 [inlined]

@babaq
Copy link

babaq commented Aug 10, 2023

The same StackOverflowError happened to me when I tried to fill a number of contours using BoundaryFill.

@ashwani-rathee
Copy link
Member

It's the issue with the recursive version and need better iterative solution or better checks in current one. Can you help fixing, it's great excercise to get comfortable with this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants