SequentialMaskGenerator#
- class deepinv.physics.generator.SequentialMaskGenerator(spatial_generator, T, **kwargs)[source]#
Bases:
PhysicsGeneratorLet a mask generator generate non-overlapping sequential sampling patterns.
Given a generator that generates static masks (i.e. without a time dimension), split the samples into
Ttime-steps such that the original mask is the temporal union of all resulting time-steps. The resulting mask is “time-resolved” and simulates shot-based acquisition sequences.- Parameters:
spatial_generator (BaseMaskGenerator) – static Cartesian mask generator.
T (int) – number of time-steps to split the mask into.
- step(batch_size=1, seed=None, **kwargs)[source]#
Generate time-resolved sequential mask from the sampling mask.
The \(n\) sampled lines are split in sequential order into chunks of \(\lceil n/T \rceil\) lines i.e. the \(k\)-th sampled line is assigned to time-step \(\lfloor k / \lceil n/T \rceil \rfloor\).
Examples using SequentialMaskGenerator:#
Motion simulation and motion-compensated reconstruction