From f7c2b69b5a86b344d0b7b53be4d7bee674980567 Mon Sep 17 00:00:00 2001 From: William Grisaitis Date: Fri, 5 May 2017 17:18:23 -0400 Subject: [PATCH] Add README --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1a2fd2d --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# dvision +Python client for the DVID database + +## Usage: + +``` +>>> dvid_hostname = "..." +>>> dvid_port = int +>>> data_instance = dvision.DVIDDataInstance("slowpoke3", 32788, "341", "groundtruth_pruned") +>>> data_instance[5022:5026, 3000:3002, 3200:3202] +array([[[586315, 586315], + [586315, 586315]], + + [[586315, 586315], + [586315, 586315]], + + [[372796, 586315], + [372796, 586315]], + + [[372796, 372796], + [372796, 372796]]], dtype=uint64) +>>> roi = dvision.DVIDRegionOfInterest("slowpoke3", 32788, "341", "seven_column_z_gte_5024") +>>> roi[5022:5026, 3000:3002, 3200:3202] +array([[[0, 0], + [0, 0]], + + [[0, 0], + [0, 0]], + + [[1, 1], + [1, 1]], + + [[1, 1], + [1, 1]]], dtype=uint8) +```