spyrit.misc.sampling

Functions

Permutation_Matrix(Mat)

Returns permutation matrix from sampling matrix

define_order(n, order[, pdf])

Creation of a Hadamard pattern order

img2mask(Mat, M)

Returns sampling mask from sampling matrix.

img2meas(Img, Mat)

Return measurement vector from measurement image (not TESTED)

meas2img(meas, Mat)

Returns measurement image from a single measurement vector or from a batch of measurement vectors.

meas2img2(meas, Mat)

Return multiple measurement images from multiple measurement vectors.

reindex(values, indices[, axis, ...])

Sorts a tensor along a specified axis using the indices tensor.

reorder(meas, Perm_acq, Perm_rec)

Reorder measurement vectors

reorder_from_sampling_map(meas, Ord_acq, s_map)

Reorder splitted measurements following a sampling map

sampling_map_VDS(pdf, M[, seed])

Define a VDS sampling scheme that follows a PDF.

sampling_map_from_order(order, M)

Generate a sampling map from a given order (ranking) and number of measurements

sampling_map_multilevel_VDS(pdf, M, levels)

Generation of a sampling map following a Multilevel VDS sampling scheme

sort_by_significance(arr, sig[, axis, ...])

Returns an array ordered by decreasing significance along the specified dimension.