Skip to main content

Neuralyzer::Transforms::V2::Examples::MaskCentroidParams

Neuralyzer::Transforms::V2::Examples::MaskCentroidParams

Parameters for mask centroid calculation. More…

#include <MaskCentroid.hpp>

Detailed Description

struct Neuralyzer::Transforms::V2::Examples::MaskCentroidParams;

Parameters for mask centroid calculation.

Uses reflect-cpp for automatic JSON serialization/deserialization with validation. Currently no additional parameters are needed for basic centroid calculation, but the struct is provided for future extensions (e.g., weighted centroids).

Example JSON: ```json

{} ```

Future extensions could include:

  • weight_by_distance: bool - Weight points by distance from center
  • center_x, center_y: float - Custom reference point for weighted calculation

Updated on 2026-11-13 at 20:25:41 +0000