Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#176)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.11.0 → 24.1.1](psf/black@23.11.0...24.1.1)
- [github.com/igorshubovych/markdownlint-cli: v0.37.0 → v0.39.0](igorshubovych/markdownlint-cli@v0.37.0...v0.39.0)
- [github.com/pycqa/flake8: 6.1.0 → 7.0.0](PyCQA/flake8@6.1.0...7.0.0)
- [github.com/PyCQA/isort: 5.12.0 → 5.13.2](PyCQA/isort@5.12.0...5.13.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Feb 2, 2024
1 parent 96fea0e commit a0d4544
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ repos:
- id: mixed-line-ending
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
rev: v0.39.0
hooks:
- id: markdownlint
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
args:
- "--max-line-length=88"
- "--ignore=E203"
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args:
Expand Down
6 changes: 3 additions & 3 deletions stitching/exposure_error_compensator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class ExposureErrorCompensator:
COMPENSATOR_CHOICES["gain_blocks"] = cv.detail.ExposureCompensator_GAIN_BLOCKS
COMPENSATOR_CHOICES["gain"] = cv.detail.ExposureCompensator_GAIN
COMPENSATOR_CHOICES["channel"] = cv.detail.ExposureCompensator_CHANNELS
COMPENSATOR_CHOICES[
"channel_blocks"
] = cv.detail.ExposureCompensator_CHANNELS_BLOCKS
COMPENSATOR_CHOICES["channel_blocks"] = (
cv.detail.ExposureCompensator_CHANNELS_BLOCKS
)
COMPENSATOR_CHOICES["no"] = cv.detail.ExposureCompensator_NO

DEFAULT_COMPENSATOR = list(COMPENSATOR_CHOICES.keys())[0]
Expand Down
8 changes: 5 additions & 3 deletions stitching/subsetter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ def get_matches_graph(self, img_names, pairwise_matches):
return cv.detail.matchesGraphAsString(
img_names,
pairwise_matches,
0.00001 # see issue #56
if (self.confidence_threshold == 0)
else self.confidence_threshold,
(
0.00001 # see issue #56
if (self.confidence_threshold == 0)
else self.confidence_threshold
),
)

def get_indices_to_keep(self, features, pairwise_matches):
Expand Down

0 comments on commit a0d4544

Please sign in to comment.