Skip to content

Commit

Permalink
refactor: name functions as "multilabel"
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Dec 30, 2023
1 parent 1ba21dd commit 1eb7d0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fastmorph/fastmorph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace fastmorph {


template <typename LABEL>
void dilate(
void multilabel_dilate(
LABEL* labels, LABEL* output,
const uint64_t sx, const uint64_t sy, const uint64_t sz,
const bool background_only, const uint64_t threads = 1
Expand Down Expand Up @@ -279,7 +279,7 @@ void dilate(
}

template <typename LABEL>
void erode(
void multilabel_erode(
LABEL* labels, LABEL* output,
const uint64_t sx, const uint64_t sy, const uint64_t sz,
const uint64_t threads
Expand Down
4 changes: 2 additions & 2 deletions fastmorph/fastmorphops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ py::array dilate(
py::array output;

#define DILATE_HELPER(uintx_t)\
fastmorph::dilate(\
fastmorph::multilabel_dilate(\
reinterpret_cast<uintx_t*>(labels_ptr),\
reinterpret_cast<uintx_t*>(output_ptr),\
sx, sy, sz,\
Expand Down Expand Up @@ -89,7 +89,7 @@ py::array erode(const py::array &labels, const uint64_t threads) {
py::array output;

#define ERODE_HELPER(uintx_t)\
fastmorph::erode(\
fastmorph::multilabel_erode(\
reinterpret_cast<uintx_t*>(labels_ptr),\
reinterpret_cast<uintx_t*>(output_ptr),\
sx, sy, sz,\
Expand Down

0 comments on commit 1eb7d0a

Please sign in to comment.