Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyNutil
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Harry Carey
PyNutil
Commits
abf8296f
Commit
abf8296f
authored
2 months ago
by
polarbean
Browse files
Options
Downloads
Patches
Plain Diff
fix region padding based on gergelys feedback
parent
d6a9b3a9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.vscode/settings.json
+10
-1
10 additions, 1 deletion
.vscode/settings.json
PyNutil/processing/counting_and_load.py
+4
-1
4 additions, 1 deletion
PyNutil/processing/counting_and_load.py
with
14 additions
and
2 deletions
.vscode/settings.json
+
10
−
1
View file @
abf8296f
{
"python.formatting.provider"
:
"black"
"python.formatting.provider"
:
"black"
,
"python.testing.unittestArgs"
:
[
"-v"
,
"-s"
,
"./tests"
,
"-p"
,
"test*.py"
],
"python.testing.pytestEnabled"
:
false
,
"python.testing.unittestEnabled"
:
true
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
PyNutil/processing/counting_and_load.py
+
4
−
1
View file @
abf8296f
...
...
@@ -209,7 +209,10 @@ def warp_image(image, triangulation, rescaleXY):
newY
[
newY
>=
reg_h
]
=
reg_h
-
1
newX
[
newX
<
0
]
=
0
newY
[
newY
<
0
]
=
0
new_image
=
image
[
newY
,
newX
]
new_image
=
np
.
zeros_like
(
image
)
mask
=
(
newX
<=
reg_w
)
&
(
newY
<=
reg_h
)
&
(
newX
>
0
)
&
(
newY
>
0
)
new_image
[
mask
]
=
image
[
mask
]
new_image
[
~
mask
]
=
0
return
new_image
...
...
This diff is collapsed.
Click to expand it.
Sharon Yates
@sharoncy
mentioned in commit
6eae355a
·
2 months ago
mentioned in commit
6eae355a
mentioned in commit 6eae355aa892c6e8d62be737c37511d49c482953
Toggle commit list
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment