niftynet.layer.crop module

class CropLayer(border, name='crop')[source]

Bases: niftynet.layer.base_layer.Layer

This class defines a cropping operation: Removing 2*border pixels from each spatial dim of the input, and return the spatially centred elements extracted from the input.

layer_op(inputs)[source]