Comments (3)
OK, per our phone conversation, I would like one extra little feature: Provide ROI metadata similar to the endpoint provided in the voxels API. For example:
GET /api/node/<uuid>/<data_name>/metadata
Should return something like this:
{
"Axes": [
{
"Label": "X",
"Resolution": 3.1,
"Units": "nanometers",
"Size": 100,
"Offset" : 0
},{
"Label": "Y",
"Resolution": 3.1,
"Units": "nanometers",
"Size": 200,
"Offset" : 0
},{
"Label": "Z",
"Resolution": 40,
"Units": "nanometers",
"Size": 400,
"Offset" : 0
}
],
"Properties" : {
"Values": [
{
"DataType": "uint8",
"Label": "roi-mask"
}
]
}
}
from dvid.
This raises an issue: ROIs are basically block indices with a given block size. There is no underlying resolution or units until it is applied to a labels64 or whatever. I can return this if it helps, where the only thing that changes across ROIs is the size for an axis indicating the # of voxels in a block along that dimension.
{
"Axes": [
{
"Label": "X",
"Units": "blocks",
"Size": 32
},{
"Label": "Y",
"Units": "blocks",
"Size": 32
},{
"Label": "Z",
"Units": "blocks",
"Size": 32
}
],
"Properties" : {
"Values": [
{
"DataType": "uint8",
"Label": "roi-mask"
}
]
}
}
from dvid.
I don't need this for now. As we discussed, at some point in the future it might be nice to have some kind of metadata message for ROIs, but it isn't necessary at the moment.
At the moment, my code assumes the ROI mask axis order and the mask dtype. If you offered metadata, I would that data instead of simply hard-coding it. But it's not a big deal.
from dvid.
Related Issues (20)
- Endpoint to reload annotations for only a subset of labels
- Explicit renumbering of body IDs HOT 1
- Mapping updates in response to certain mutations HOT 3
- Maximally permissive CORS by default HOT 1
- ngprecomputed boundary chunk name computation is off
- Feature Request: per-repo backup
- Add 'upstream' and 'downstream' options to labelsz HOT 3
- unable to restart dvid (unable to initialize storage) HOT 4
- For tiny bodies, /sparsevol returns 404 at low resolution HOT 4
- Sparsevol-coarse missing HOT 11
- max versions limited to ~256 HOT 2
- Help setting up DVID for neu3 HOT 7
- Allow repo:branch placeholder syntax to omit repo
- Determine if an issue with ngprecomputed on edge blocks still exists
- /sparsevol args for minx,maxx, etc. don't work as expected HOT 1
- Disable labelmap endpoint: /split HOT 2
- neuronjson: Auto-convert 'group' field into int
- Allow security to limit API request access depending on domain
- neuronjson performance for non-head versions HOT 1
- Need POST .../set-nextlabel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvid.