niftynet.engine.windows_aggregator_resize module

Windows aggregator resize each item in a batch output and save as an image.

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

Bases: niftynet.engine.windows_aggregator_base.ImageWindowsAggregator

This class decodes each item in a batch by resizing each image window and save as a new image volume.

decode_batch(window, location)[source]

Resizing each output image window in the batch as an image volume location specifies the original input image (so that the interpolation order, original shape information retained in the generated outputs).