niftynet.engine.windows_aggregator_grid module

windows aggregator decode sampling grid coordinates and image id from batch data, forms image level output and write to hard drive.

class GridSamplesAggregator(image_reader, name='image', output_path='./output', window_border=(), interp_order=0)[source]

Bases: niftynet.engine.windows_aggregator_base.ImageWindowsAggregator

This class keeps record of the currently cached image, initialised as all zeros, and the values are replaced by image window data decoded from batch.

decode_batch(window, location)[source]