dvid.fetch.locs_to_ids

dvid.fetch.locs_to_ids(pos, chunk_size=10000.0, progress=True, server=None, node=None)[source]

Get body IDs at given positions.

Parameters
  • pos (iterable) – [[x1, y1, z1], [x2, y2, z2], ..] positions in voxel space. Must be integers!

  • chunk_size (int, optional) – Splits query into chunks of a given size to reduce strain on server.

  • progress (bool) – If True, show progress bar.

  • server (str, optional) – If not provided, will try reading from global.

  • node (str, optional) – If not provided, will try reading from global.

Returns

body_ids

Return type

np.ndarray