Skip to content

Commit

Permalink
Merge pull request #188 from yfukai/remove_param
Browse files Browse the repository at this point in the history
removed unnecessary parameters
  • Loading branch information
yfukai authored Feb 13, 2022
2 parents 10646a5 + 88dddee commit c20a8c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "m2stitch"
version = "0.4.0"
version = "0.5.0"
description = "M2Stitch"
authors = ["Yohsuke Fukai <[email protected]>"]
license = "MIT"
Expand Down
9 changes: 1 addition & 8 deletions src/m2stitch/stitching.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def stitch_images(
position_initial_guess: Optional[NumArray] = None,
overlap_diff_threshold: Float = 10,
pou: Float = 3,
overlap_prob_uniform_threshold: Float = 80,
full_output: bool = False,
row_col_transpose: bool = True,
) -> Tuple[pd.DataFrame, dict]:
Expand Down Expand Up @@ -67,11 +66,6 @@ def stitch_images(
pou : Float, default 3
the "percent overlap uncertainty" parameter
overlap_prob_uniform_threshold : Float, default 80
the upper threshold for "uniform probability".
raise this value to ease assumption
that the displacement is following non-uniform distribution.
full_output : bool, default False
if True, returns the full comptutation result in the pd.DataFrame
Expand Down Expand Up @@ -105,7 +99,6 @@ def stitch_images(
position_initial_guess = np.array(position_initial_guess)
assert images.shape[0] == position_indices.shape[0]
assert position_initial_guess.shape[1] == images.ndim - 1
assert 0 <= overlap_prob_uniform_threshold and overlap_prob_uniform_threshold <= 100
assert 0 <= overlap_diff_threshold and overlap_diff_threshold <= 100
_cols, _rows = position_indices.T

Expand Down Expand Up @@ -181,7 +174,7 @@ def get_lims(dimension, size):
grid.loc[i2, f"{direction}_{key}_first"] = max_peak[j]

predictor = EllipticEnvelope(contamination=0.4)
# TODO make threshold adjustable:w
# TODO make threshold adjustable
left_displacement = compute_image_overlap2(
grid[grid["left_ncc_first"] > 0.5], "left", sizeY, sizeX, predictor
)
Expand Down

0 comments on commit c20a8c8

Please sign in to comment.