Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
skais
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Raphael Sturgis
skais
Merge requests
!20
Resolve "Improve performances of image generation"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Improve performances of image generation"
24-improve-performances-of-image-generation
into
develop
Overview
0
Commits
3
Pipelines
0
Changes
1
Merged
Raphael Sturgis
requested to merge
24-improve-performances-of-image-generation
into
develop
3 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Expand
Closes
#24 (closed)
0
0
Merge request reports
Viewing commit
d310ce75
Prev
Next
Show latest version
1 file
+
4
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
d310ce75
jited bresenham
· d310ce75
Raphael
authored
3 years ago
skais/utils/geometry.py
+
4
−
0
Options
from
numba
import
jit
@jit
(
nopython
=
True
)
def
bresenham
(
x1
,
y1
,
x2
,
y2
):
def
bresenham
(
x1
,
y1
,
x2
,
y2
):
dx
=
int
(
x2
-
x1
)
dx
=
int
(
x2
-
x1
)
dy
=
int
(
y2
-
y1
)
dy
=
int
(
y2
-
y1
)
Loading