Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpatialGridSorter ¶
type SpatialGridSorter struct {
// contains filtered or unexported fields
}
SpatialGridSorter organizes spatial product detections into a structured 2D grid matrix.
func NewSpatialGridSorter ¶
func NewSpatialGridSorter(strategy strategies.RowSortingStrategy) *SpatialGridSorter
NewSpatialGridSorter creates a new SpatialGridSorter with the given strategy. Defaults to CenterYOverlapStrategy if nil.
func (*SpatialGridSorter) SetStrategy ¶
func (s *SpatialGridSorter) SetStrategy(strategy strategies.RowSortingStrategy)
SetStrategy updates the active row sorting strategy.
func (*SpatialGridSorter) Sort ¶
func (s *SpatialGridSorter) Sort(items []dto.CustomLabelDetection) dto.PlanogramGridResult
Sort processes a slice of CustomLabelDetection items and returns a 2D PlanogramGridResult.
Click to show internal directories.
Click to hide internal directories.