Skip to content

Commit 9243738

Browse files
philippottofm3
andauthored
Allow --pad arg in auto conversion entry point (#796)
* allow --pad arg in auto conversion entry point * update changelog Co-authored-by: Florian M <[email protected]>
1 parent 14021b9 commit 9243738

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

wkcuber/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ For upgrade instructions, please check the respective *Breaking Changes* section
1212
### Breaking Changes
1313

1414
### Added
15+
- The modules `wkcuber` and `wkcuber.converter' also accept `--pad` as a CLI argument to allow converting image data with differing image extents. [#796](https://github.com/scalableminds/webknossos-libs/pull/796)
1516

1617
### Changed
1718

wkcuber/wkcuber/converter.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ def create_parser() -> ArgumentParser:
4848
type=parse_path,
4949
)
5050

51+
parser.add_argument(
52+
"--pad",
53+
help="Automatically pad image files at the bottom and right borders. "
54+
"Use this, when the input images don't have a common size, but have "
55+
"their origin at (0, 0).",
56+
default=False,
57+
action="store_true",
58+
)
59+
5160
add_voxel_size_flag(parser)
5261
add_verbose_flag(parser)
5362
add_data_format_flags(parser)

0 commit comments

Comments
 (0)