Documentation ¶
Index ¶
- Variables
- func ApplySigmoid(img *image.Gray, cfg *EdgeDetectConfig) (newImg *image.RGBA)
- func DetectEdge(img *image.Gray) *image.Gray
- func GetHist(img *image.Gray, cfg *EdgeDetectConfig) (newImg *image.RGBA)
- func ImageToGray(img *image.RGBA) (newImage *image.Gray)
- type EdgeDetectConfig
- type IJ
- type MyKernel
- type Stats
Constants ¶
This section is empty.
Variables ¶
View Source
var ThreeByThree = []IJ{
{0, 0}, {0, 1}, {0, 2},
{1, 0}, {1, 1}, {1, 2},
{2, 0}, {2, 1}, {2, 2},
}
ThreeByThree static iteration of nested 3x3
Functions ¶
func ApplySigmoid ¶
func ApplySigmoid(img *image.Gray, cfg *EdgeDetectConfig) (newImg *image.RGBA)
Types ¶
type EdgeDetectConfig ¶
type EdgeDetectConfig struct { // Reg, Green, Blue factors for adjusting luminance RedFactor float64 GreenFactor float64 BlueFactor float64 F float64 S float64 Tx bool // set background to transparent? ShowAngle bool }
func DefaultEdgeDetectConfig ¶
func DefaultEdgeDetectConfig() *EdgeDetectConfig
type MyKernel ¶
type MyKernel [3][3]float64
MyKernel -- small matrix for convolving with the image to detect edges
Gx Horizontal Kernel var Gx Kernel = [3][3]int{{-1, 0, 1}, {-2, 0, 2}, {-1, 0, 1}}
type Stats ¶
func GrayScaleStats ¶
Click to show internal directories.
Click to hide internal directories.