segmentation

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object []Point

type Point

type Point struct {
	X float64
	Y float64
}

type SegmentationImage

type SegmentationImage struct {
	DestImage    *image.RGBA
	GraphContext *draw2dimg.GraphicContext
	Objects      []Object
}

func NewSegmentationImage

func NewSegmentationImage(img image.Image) *SegmentationImage

func (*SegmentationImage) AddPolygonAnnotation

func (s *SegmentationImage) AddPolygonAnnotation(polygon annotation.PolygonAnnotation)

func (*SegmentationImage) DrawSegmentationClassImage

func (s *SegmentationImage) DrawSegmentationClassImage(file string) error

Draw all objects with the same color.

func (*SegmentationImage) DrawSegmentationLabelImage

func (s *SegmentationImage) DrawSegmentationLabelImage(file string) error

Draw all objects with the different colors.

Jump to

Keyboard shortcuts

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