Skip to content

Commit

Permalink
rename parameters in centroids_of_labels and exclude_labels_with_valu…
Browse files Browse the repository at this point in the history
…es...
  • Loading branch information
haesleinhuepf committed Oct 17, 2024
1 parent 1f87f39 commit 1ac87c0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions clic/include/tier4.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ label_pixel_count_map_func(const Device::Pointer & device, const Array::Pointer
* @param device Device to perform the operation on. [const Device::Pointer &]
* @param src Label image where the centroids will be determined from. [const Array::Pointer &]
* @param dst Output image where the centroids will be written to. [Array::Pointer ( = None )]
* @param withBG Determines if the background label should be included. [bool ( = False )]
* @param include_background Determines if the background label should be included. [bool ( = False )]
* @return Array::Pointer
*
* @see https://clij.github.io/clij2-docs/reference_centroidsOfLabels
*/
auto
centroids_of_labels_func(const Device::Pointer & device, const Array::Pointer & src, Array::Pointer dst, bool withBG)
centroids_of_labels_func(const Device::Pointer & device, const Array::Pointer & src, Array::Pointer dst, bool include_background)
-> Array::Pointer;


Expand Down Expand Up @@ -213,8 +213,8 @@ remove_labels_with_map_values_within_range_func(const Device::Pointer & device,
* @param src Input image where labels will be filtered. [const Array::Pointer &]
* @param values Vector of values associated with the labels. [const Array::Pointer &]
* @param dst Output image where labels will be written to. [Array::Pointer ( = None )]
* @param min_value_range Minimum value to keep. [float ( = 0 )]
* @param max_value_range Maximum value to keep. [float ( = 100 )]
* @param minimum_value_range Minimum value to keep. [float ( = 0 )]
* @param maximum_value_range Maximum value to keep. [float ( = 100 )]
* @return Array::Pointer
*
* @note 'label processing', 'combine'
Expand All @@ -226,8 +226,8 @@ exclude_labels_with_map_values_out_of_range_func(const Device::Pointer & device,
const Array::Pointer & src,
const Array::Pointer & values,
Array::Pointer dst,
float min_value_range,
float max_value_range) -> Array::Pointer;
float minimum_value_range,
float maximum_value_range) -> Array::Pointer;

/**
* @name exclude_labels_with_map_values_within_range
Expand All @@ -238,8 +238,8 @@ exclude_labels_with_map_values_out_of_range_func(const Device::Pointer & device,
* @param src Input image where labels will be filtered. [const Array::Pointer &]
* @param values Vector of values associated with the labels. [const Array::Pointer &]
* @param dst Output image where labels will be written to. [Array::Pointer ( = None )]
* @param min_value_range Minimum value to keep. [float ( = 0 )]
* @param max_value_range Maximum value to keep. [float ( = 100 )]
* @param minimum_value_range Minimum value to keep. [float ( = 0 )]
* @param maximum_value_range Maximum value to keep. [float ( = 100 )]
* @return Array::Pointer
*
* @note 'label processing', 'combine'
Expand All @@ -251,8 +251,8 @@ exclude_labels_with_map_values_within_range_func(const Device::Pointer & device,
const Array::Pointer & src,
const Array::Pointer & values,
Array::Pointer dst,
float min_value_range,
float max_value_range) -> Array::Pointer;
float minimum_value_range,
float maximum_value_range) -> Array::Pointer;

/**
* @name extension_ratio_map
Expand Down
4 changes: 2 additions & 2 deletions clic/src/tier4/centroids_of_labels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ namespace cle::tier4
{

auto
centroids_of_labels_func(const Device::Pointer & device, const Array::Pointer & src, Array::Pointer dst, bool withBG)
centroids_of_labels_func(const Device::Pointer & device, const Array::Pointer & src, Array::Pointer dst, bool include_background)
-> Array::Pointer
{
cle::StatisticsMap props;
if (withBG)
if (include_background)
{
props = tier3::statistics_of_background_and_labelled_pixels_func(device, src, nullptr);
}
Expand Down
12 changes: 6 additions & 6 deletions clic/src/tier4/filter_label_by_values.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ exclude_labels_with_map_values_out_of_range_func(const Device::Pointer & device,
const Array::Pointer & src,
const Array::Pointer & values,
Array::Pointer dst,
float min_value_range,
float max_value_range) -> Array::Pointer
float minimum_value_range,
float maximum_value_range) -> Array::Pointer
{
return remove_labels_with_map_values_out_of_range_func(device, src, values, dst, min_value_range, max_value_range);
return remove_labels_with_map_values_out_of_range_func(device, src, values, dst, minimum_value_range, maximum_value_range);
}


Expand All @@ -62,10 +62,10 @@ exclude_labels_with_map_values_within_range_func(const Device::Pointer & device,
const Array::Pointer & src,
const Array::Pointer & values,
Array::Pointer dst,
float min_value_range,
float max_value_range) -> Array::Pointer
float minimum_value_range,
float maximum_value_range) -> Array::Pointer
{
return remove_labels_with_map_values_within_range_func(device, src, values, dst, min_value_range, max_value_range);
return remove_labels_with_map_values_within_range_func(device, src, values, dst, minimum_value_range, maximum_value_range);
}

} // namespace cle::tier4

0 comments on commit 1ac87c0

Please sign in to comment.