double_igo¶
-
menpo.feature.double_igo(pixels, *, double_angles=True, verbose=False)¶ Extracts Image Gradient Orientation (IGO) features from the input image. The output image has
N * Cnumber of channels, whereNis the number of channels of the original image andC = 2orC = 4depending on whether double angles are used.- Parameters
pixels (
Imageor subclass or(C, X, Y, ..., Z)ndarray) – Either the image object itself or an array with the pixels. The first dimension is interpreted as channels. This means an N-dimensional image is represented by an N+1 dimensional array.double_angles (bool, optional) –
Assume that
phirepresents the gradient orientations.If this flag is
False, the features image is the concatenation ofcos(phi)andsin(phi), thus 2 channels.If
True, the features image is the concatenation ofcos(phi),sin(phi),cos(2 * phi),sin(2 * phi), thus 4 channels.verbose (bool, optional) – Flag to print IGO related information.
- Returns
igo (
Imageor subclass or(X, Y, ..., Z, C)ndarray) – The IGO features image. It has the same type and shape as the inputpixels. The output number of channels depends on thedouble_anglesflag.- Raises
ValueError – Image has to be 2D in order to extract IGOs.
References
- 1
G. Tzimiropoulos, S. Zafeiriou and M. Pantic, “Subspace learning from image gradient orientations”, IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 34, num. 12, p. 2454–2466, 2012.