robocar-steering/pkg/steering/bbox.go

12 lines
189 B
Go
Raw Normal View History

2022-08-21 20:31:19 +00:00
package steering
import (
"image"
)
func GroupBBoxes(bboxes []*image.Rectangle) []*image.Rectangle {
resp := make([]*image.Rectangle, 0, len(bboxes))
copy(bboxes, resp)
return resp
}