Menu

Helper Module for Deep Learning.

Module that provides functions to prepare registration dataset.

class pynet.datasets.registration.Item(input_path, output_path, metadata_path, labels)
property input_path

Alias for field number 0

property labels

Alias for field number 3

property metadata_path

Alias for field number 2

property output_path

Alias for field number 1

pynet.datasets.registration.crop(arr, bound_l, bound_r, target_shape, order=1)[source]
pynet.datasets.registration.crop_mask(volume, segmentation, target_shape=(128, 128, 128))[source]
pynet.datasets.registration.download_file_from_google_drive(destination)[source]
pynet.datasets.registration.fetch_registration(datasetdir)[source]

Fetch/prepare the registration dataset for pynet.

Parameters

datasetdir: str

the dataset destination folder.

Returns

item: namedtuple

a named tuple containing ‘input_path’, ‘output_path’, and ‘metadata_path’.

pynet.datasets.registration.get_confirm_token(response)[source]
pynet.datasets.registration.save_response_content(response, destination)[source]
pynet.datasets.registration.wl_normalization(img, w=290, l=120)[source]

Follow us

© 2019, pynet developers .
Inspired by AZMIND template.