Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
grisaitis committed May 5, 2017
1 parent 5bf10a9 commit f7c2b69
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
```

0 comments on commit f7c2b69

Please sign in to comment.