Documentation ¶
Overview ¶
Package projectionx 投影: 按水平或垂直方向统计色素有效性
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProjectDirection ¶
type ProjectDirection int32
ProjectDirection 投影模式
const ( // ModeNone 无效 ModeNone ProjectDirection = iota // ModeVertical 垂直模式 ModeVertical // ModeHorizontal 水平模式 ModeHorizontal )
type Result ¶
type Result struct { // 数据 Data []uint32 // 投影模式 Mode ProjectDirection }
Result 投影结果
func Project ¶
func Project(src image.Image, validFunc ValidFunc, direction ProjectDirection) *Result
Project 投影
func ProjectHorizontal ¶
ProjectHorizontal 水平投影
func ProjectVertical ¶
ProjectVertical 垂直投影
Click to show internal directories.
Click to hide internal directories.