Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed labels_to_edges typo #104

Merged
merged 3 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,076 changes: 108 additions & 968 deletions examples/multi_color_ensemble/multi_color_ensemble.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/stardist_2d/2d_tracking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"\n",
"from ultrack import track, to_tracks_layer, tracks_to_zarr\n",
"from ultrack.imgproc import normalize\n",
"from ultrack.utils import estimate_parameters_from_labels, labels_to_edges\n",
"from ultrack.utils import estimate_parameters_from_labels, labels_to_contours\n",
"from ultrack.utils.array import array_apply\n",
"from ultrack.config import MainConfig"
]
Expand Down Expand Up @@ -210,7 +210,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The `labels_to_edges` converts labels into Ultrack's expected input, a detection and edges maps (cells' boundaries). The `sigma` parameter blurs the cell boundaries, assisting the segmentation hypothesis estimation, the goal is to make the boundaries similar to a distance transform inside the cells."
"The `labels_to_contours` converts labels into Ultrack's expected input, a detection and edges maps (cells' boundaries). The `sigma` parameter blurs the cell boundaries, assisting the segmentation hypothesis estimation, the goal is to make the boundaries similar to a distance transform inside the cells."
]
},
{
Expand All @@ -227,7 +227,7 @@
}
],
"source": [
"detection, edges = labels_to_edges(stardist_labels, sigma=4.0) # multiple labels can be used with [labels_0, labels_1, ...]"
"detection, edges = labels_to_contours(stardist_labels, sigma=4.0) # multiple labels can be used with [labels_0, labels_1, ...]"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ install_requires =
fastapi >= 0.109.2
websocket >= 0.2.1
urllib3 < 2.0
ome-zarr >= 0.8.3
ome-zarr >= 0.8.3,<0.9.0 # TODO: unpin when using iohub interface
uvicorn >= 0.27.0.post1
httpx >= 0.26.0
websockets >= 12.0
Expand Down
2 changes: 1 addition & 1 deletion ultrack/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from ultrack.utils.edge import labels_to_contours
from ultrack.utils.edge import labels_to_contours, labels_to_edges
from ultrack.utils.estimation import estimate_parameters_from_labels
2 changes: 1 addition & 1 deletion ultrack/utils/edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@ def labels_to_contours(


@wraps(labels_to_contours)
def labels_to_edgs(*args, **kwargs) -> Tuple[ArrayLike, ArrayLike]:
def labels_to_edges(*args, **kwargs) -> Tuple[ArrayLike, ArrayLike]:
return labels_to_contours(*args, **kwargs)
Loading