google / neuroglancer

WebGL-based viewer for volumetric data
Apache License 2.0
1.02k stars 283 forks source link

Error When Visualizing Local N5 File in Neuroglancer #602

Open ZhenbangZhang opened 2 weeks ago

ZhenbangZhang commented 2 weeks ago

I followed the steps on this GitHub issue to visualize my local N5 file, but the final result looks like this (referring to the image). What could be the reason for this? error

And this is my attributes.json

{
    "scales":[[
        128.0,
        128.0,
        128.0
    ]],
    "blockSize": [
        128,
        128,
        64
    ],
    "compression": {
        "level": -1,
        "type": "gzip",
        "useZlib": false
    },
    "dataType": "uint8",
    "dimensions": [
        1275,
        1185,
        1061
    ],
    "pixelResolution": {
        "dimensions": [
            128.0,
            128.0,
            128.0
        ],
        "unit": "nm"
    },
    "transform": {
        "axes": [
            "z",
            "y",
            "x"
        ],
        "order": "C",
        "scale": [
            128.0,
            128.0,
            128.0
        ],
        "translate": [
            60.0,
            60.0,
            60.0
        ],
        "units": [
            "nm",
            "nm",
            "nm"
        ]
    }
}
xgui3783 commented 2 weeks ago

Try clicking "create as an image layer" at bottom right? (In yellow)

ZhenbangZhang commented 2 weeks ago

Try clicking "create as an image layer" at bottom right? (In yellow)

Thank you very much, I have successfully visualized the 3D structure. Does Neuroglancer provide a feature for high-resolution screenshots?

jbms commented 1 week ago

You can do that using the Python module "neuroglancer.tool.screenshot" included in the Python package.