Skip to content

Commit 73bd810

Browse files
add GraphCutSeamFinder (#43)
* add GraphCutSeamFinder * bump version
1 parent 81cb7c0 commit 73bd810

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ panorama = stitcher.stitch(["img1.jpg", "img2.jpg", "img3.jpg"])
4949
Specify your custom settings as
5050

5151
```python
52-
settings = {"detector": "sift", "confidence_threshold": 0.2}
52+
settings = {"detector": "sift", "confidence_threshold": 0.2}
5353
stitcher = Stitcher(**settings)
5454
```
5555

stitching/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .stitcher import AffineStitcher, Stitcher # noqa: F401
22

3-
__version__ = "0.3.0"
3+
__version__ = "0.4.0"

stitching/seam_finder.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ class SeamFinder:
1212
SEAM_FINDER_CHOICES = OrderedDict()
1313
SEAM_FINDER_CHOICES["dp_color"] = cv.detail_DpSeamFinder("COLOR")
1414
SEAM_FINDER_CHOICES["dp_colorgrad"] = cv.detail_DpSeamFinder("COLOR_GRAD")
15+
SEAM_FINDER_CHOICES["gc_color"] = cv.detail_GraphCutSeamFinder("COST_COLOR")
16+
SEAM_FINDER_CHOICES["gc_colorgrad"] = cv.detail_GraphCutSeamFinder(
17+
"COST_COLOR_GRAD"
18+
)
1519
SEAM_FINDER_CHOICES["voronoi"] = cv.detail.SeamFinder_createDefault(
1620
cv.detail.SeamFinder_VORONOI_SEAM
17-
) # noqa
21+
)
1822
SEAM_FINDER_CHOICES["no"] = cv.detail.SeamFinder_createDefault(
1923
cv.detail.SeamFinder_NO
20-
) # noqa
24+
)
2125

2226
DEFAULT_SEAM_FINDER = list(SEAM_FINDER_CHOICES.keys())[0]
2327

0 commit comments

Comments
 (0)