Skip to content

DVID Download Cutout Tutorial

Luis Rodriguez edited this page Apr 23, 2020 · 4 revisions

Downloading DVID Cutout:

Assuming data was uploaded as described in the DVID Upload Data Tutorial], this tutorial shows how that data can be pulled down to a client.

This example is extracted from our DVID examples folder

from intern.remote.dvid import DVIDRemote
import matplotlib.pyplot as plt
import numpy as np

# Define the remote
dvid = DVIDRemote({"protocol": "https", "host": "emdata.janelia.org",})
uuid = "822524777d3048b8bd520043f90c1d28"
name = "grayscale"
annos_name = "groundtruth"

# get cutout from actual dataset
volumeD = dvid.get_cutout(
    dvid.get_instance(uuid, name, datatype="uint8"),
    0,
    [3000, 3150],
    [3000, 3150],
    [2000, 2010],
)