Git Product home page Git Product logo

Comments (3)

stuarteberg avatar stuarteberg commented on June 1, 2024

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.

DocSavage avatar DocSavage commented on June 1, 2024

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.

stuarteberg avatar stuarteberg commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.