Documentation
¶
Overview ¶
* * Functions for detecting SIFT image features.
Index ¶
Constants ¶
View Source
const ( /** default number of sampled intervals per octave. */ SIFT_INTVLS = 3 /** assumed gaussian blur for input image */ SIFT_INIT_SIGMA = 0.5 /** default sigma for initial guassian smoothing */ SIFT_SIGMA = 1.6 /** double image size before pyramid construction */ SIFT_IMG_DBL = true /** default threshold on keypoint contrast |D(x)| */ SIFT_CONTR_THR = 0.04 /** default threshold on keypoint ratio of principle curvatures */ SIFT_CURV_THR = 10 /* width of border in which to ignore keypoints */ SIFT_IMG_BORDER = 5 /* maximum steps of keypoint interpolation before failure */ SIFT_MAX_INTERP_STEPS = 5 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SiftImage ¶
type SiftImage struct { // Pix holds the image's pixels, in red, green, blue, alpha order. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*4]. Pix []int // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
SiftImage is an in memory RGBA image. The red, green, blue, alpha samples are held in a single slice to increase resizing performance.
func SubstractImage ¶
*
- Substract two images. src1 - src2, the dimensions of src1, src2 must be same.
- @param src1
- @param src2
- @return A new image with the given dimensions will be returned.
func (*SiftImage) ColorModel ¶
Click to show internal directories.
Click to hide internal directories.