# vector_128_dsift¶

menpo.feature.vector_128_dsift(x, dtype=<type 'numpy.float32'>)[source]

Computes a SIFT feature vector from a square patch (or image). Patch must be square and the output vector will always be a (128,) vector. Please see dsift() for more information.

Parameters: x (Image or subclass or (C, Y, Y) ndarray) – Either the image object itself or an array with the pixels. The first dimension is interpreted as channels. Must be square i.e. height == width. dtype (np.dtype, optional) – The dtype of the returned vector. ValueError – Only square images are supported.