tomo_encoders.labeling.detect_voids

Functions:

calc_patch_size(base_size, multiplier)

export_voids(vol_seg, n_max_detect[, TIMEIT])

to_regular_grid(sub_vols, p3d, ...)

  1. select patches where voids exist (2) rescale to upsample_value

upsample_sub_vols(sub_vols, upsampling_fac)

all sub-volumes must have same shape.

tomo_encoders.labeling.detect_voids.calc_patch_size(base_size, multiplier)[source]
tomo_encoders.labeling.detect_voids.export_voids(vol_seg, n_max_detect, TIMEIT=False)[source]
tomo_encoders.labeling.detect_voids.to_regular_grid(sub_vols, p3d, target_patch_size, target_vol_shape, upsample_fac)[source]
  1. select patches where voids exist (2) rescale to upsample_value

tomo_encoders.labeling.detect_voids.upsample_sub_vols(sub_vols, upsampling_fac, TIMEIT=False, order=1)[source]

all sub-volumes must have same shape. upsampling_factor applies to all 3 dimensions equally.

to-do: split into chunks, and try higher-order