bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / feature / _daisy / daisy
function
skimage.feature._daisy:daisy
source: /dev/scikit-image/src/skimage/feature/_daisy.py :13
Signature
def daisy ( image , step = 4 , radius = 15 , rings = 3 , histograms = 8 , orientations = 8 , normalization = l1 , sigmas = None , ring_radii = None , visualize = False ) Summary
Extract DAISY feature descriptors densely for the given image.
Extended Summary
DAISY is a feature descriptor similar to SIFT formulated in a way that allows for fast dense extraction. Typically, this is practical for bag-of-features image representations.
The implementation follows Tola et al. [1] but deviate on the following points:
Histogram bin contribution are smoothed with a circular Gaussian window over the tonal range (the angular range).
The sigma values of the spatial Gaussian smoothing in this code do not match the sigma values in the original code by Tola et al. [2]. In their code, spatial smoothing is applied to both the input image and the center histogram. However, this smoothing is not documented in [1] and, therefore, it is omitted.
Parameters
image: (M, N) arrayInput image (grayscale).
step: int, optionalDistance between descriptor sampling points.
radius: int, optionalRadius (in pixels) of the outermost ring.
rings: int, optionalNumber of rings.
histograms: int, optionalNumber of histograms sampled per ring.
orientations: int, optionalNumber of orientations (bins) per histogram.
normalization: {'l1', 'l2', 'daisy', 'off'}, optionalHow to normalize the descriptors
'l1': L1-normalization of each descriptor.
'l2': L2-normalization of each descriptor.
'daisy': L2-normalization of individual histograms.
'off': Disable normalization.
sigmas: 1D array of float, optionalStandard deviation of spatial Gaussian smoothing for the center histogram and for each ring of histograms. The array of sigmas should be sorted from the center and out. I.e. the first sigma value defines the spatial smoothing of the center histogram and the last sigma value defines the spatial smoothing of the outermost ring. Specifying sigmas overrides the following parameter.
rings = len(sigmas) - 1ring_radii: ndarray of shape (N,) and dtype int, optionalRadius (in pixels) for each ring. Specifying ring_radii overrides the following two parameters.
rings = len(ring_radii)radius = ring_radii[-1]If both sigmas and ring_radii are given, they must satisfy the following predicate since no radius is needed for the center histogram.
len(ring_radii) == len(sigmas) + 1visualize: bool, optionalGenerate a visualization of the DAISY descriptors
Returns
descs: arrayGrid of DAISY descriptors for the given image as an array dimensionality (P, Q, R) where
P = ceil((M - radius*2) / step)Q = ceil((N - radius*2) / step)R = (rings * histograms + 1) * orientationsdescs_img: ndarray of shape (M, N, 3), only if visualize=TrueVisualization of the DAISY descriptors.
Aliases
-
skimage.feature.daisy