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 niftynet.engine.windows_aggregator_grid.GridSamplesAggregator(image_reader, name='image', output_path='./output', window_border=(), interp_order=0)

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)