niftynet.contrib.sampler_pairwise.sampler_pairwise_uniform module

class PairwiseUniformSampler(reader_0, reader_1, data_param, batch_size=1)[source]

Bases: niftynet.layer.base_layer.Layer

get_pairwise_inputs(image_id)[source]
layer_op()[source]

This function concatenate image and label volumes at the last dim and randomly cropping the volumes (also the cropping margins)

run_threads(session, *args, **argvs)[source]

To be called at the beginning of running graph variables

close_all()[source]