sorter

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 3 Imported by: 0

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

Sort processes a slice of CustomLabelDetection items and returns a 2D PlanogramGridResult.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL