Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 19, 2024
1 parent 92c18ba commit fe9b264
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clic/include/tier4.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ mean_extension_map_func(const Device::Pointer & device, const Array::Pointer & s
*/
auto
maximum_extension_map_func(const Device::Pointer & device, const Array::Pointer & src, Array::Pointer dst)
-> Array::Pointer;
-> Array::Pointer;

/**
* @name minimum_intensity_map
Expand Down
12 changes: 6 additions & 6 deletions clic/src/tier4/parametrics_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,28 @@ extension_ratio_map_func(const Device::Pointer & device, const Array::Pointer &
auto
mean_extension_map_func(const Device::Pointer & device, const Array::Pointer & src, Array::Pointer dst)
-> Array::Pointer
{
tier0::create_like(src, dst, dType::FLOAT);
{
tier0::create_like(src, dst, dType::FLOAT);
auto props = tier3::statistics_of_background_and_labelled_pixels_func(device, src, src);
auto vector = props["mean_distance_to_centroid"];
auto values = Array::create(vector.size(), 1, 1, 1, dType::FLOAT, mType::BUFFER, device);
values->writeFrom(vector.data());
tier1::set_column_func(device, values, 0, 0);
return tier1::replace_values_func(device, src, values, dst);
}
}

auto
maximum_extension_map_func(const Device::Pointer & device, const Array::Pointer & src, Array::Pointer dst)
-> Array::Pointer
{
tier0::create_like(src, dst, dType::FLOAT);
{
tier0::create_like(src, dst, dType::FLOAT);
auto props = tier3::statistics_of_background_and_labelled_pixels_func(device, src, src);
auto vector = props["max_distance_to_centroid"];
auto values = Array::create(vector.size(), 1, 1, 1, dType::FLOAT, mType::BUFFER, device);
values->writeFrom(vector.data());
tier1::set_column_func(device, values, 0, 0);
return tier1::replace_values_func(device, src, values, dst);
}
}


auto
Expand Down

0 comments on commit fe9b264

Please sign in to comment.