Skip to content

Commit

Permalink
Merge pull request #375 from clEsperanto/fix-exclude-filter-param-name
Browse files Browse the repository at this point in the history
fix param name to fit prototype
  • Loading branch information
StRigaud authored Oct 17, 2024
2 parents ab88de7 + 19c95ca commit d61a5a0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
16 changes: 8 additions & 8 deletions clic/include/tier4.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ remove_labels_with_map_values_within_range_func(const Device::Pointer & device,
* associated with the labels.
*
* @param device Device to perform the operation on. [const Device::Pointer &]
* @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 values_map Vector of values associated with the labels. [const Array::Pointer &]
* @param label_map_input Input image where labels will be filtered. [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 )]
Expand All @@ -223,8 +223,8 @@ remove_labels_with_map_values_within_range_func(const Device::Pointer & device,
*/
auto
exclude_labels_with_map_values_out_of_range_func(const Device::Pointer & device,
const Array::Pointer & src,
const Array::Pointer & values,
const Array::Pointer & values_map,
const Array::Pointer & label_map_input,
Array::Pointer dst,
float min_value_range,
float max_value_range) -> Array::Pointer;
Expand All @@ -235,8 +235,8 @@ exclude_labels_with_map_values_out_of_range_func(const Device::Pointer & device,
* associated with the labels.
*
* @param device Device to perform the operation on. [const Device::Pointer &]
* @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 values_map Vector of values associated with the labels. [const Array::Pointer &]
* @param label_map_input Input image where labels will be filtered. [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 )]
Expand All @@ -248,8 +248,8 @@ exclude_labels_with_map_values_out_of_range_func(const Device::Pointer & device,
*/
auto
exclude_labels_with_map_values_within_range_func(const Device::Pointer & device,
const Array::Pointer & src,
const Array::Pointer & values,
const Array::Pointer & values_map,
const Array::Pointer & label_map_input,
Array::Pointer dst,
float min_value_range,
float max_value_range) -> Array::Pointer;
Expand Down
14 changes: 8 additions & 6 deletions clic/src/tier4/filter_label_by_values.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,27 @@ remove_labels_with_map_values_within_range_func(const Device::Pointer & device,

auto
exclude_labels_with_map_values_out_of_range_func(const Device::Pointer & device,
const Array::Pointer & src,
const Array::Pointer & values,
const Array::Pointer & values_map,
const Array::Pointer & label_map_input,
Array::Pointer dst,
float min_value_range,
float max_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, label_map_input, values_map, dst, min_value_range, max_value_range);
}


auto
exclude_labels_with_map_values_within_range_func(const Device::Pointer & device,
const Array::Pointer & src,
const Array::Pointer & values,
const Array::Pointer & values_map,
const Array::Pointer & label_map_input,
Array::Pointer dst,
float min_value_range,
float max_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, label_map_input, values_map, dst, min_value_range, max_value_range);
}

} // namespace cle::tier4

0 comments on commit d61a5a0

Please sign in to comment.