Blender wrapper for cloud-volume
.
The basic idea is to let you import image data, skeletons and meshes from
any data source that cloud-volume
understands.
- import image data as planes/cubes
- import segmentation data as planes/cubes
- import meshes
- import skeletons
For this you have three options:
Clicking on "Code" -> "Download ZIP" and extract the contents somewhere on your computer.
Click on cloudblender.py
in the file tree above. Then right-click on the Raw button and select "Save link as...".
Use either your terminal or a Git client to clone the repository.
- Fire up Blender and navigate to "Edit" -> "Preferences" -> "Add-ons".
- Click "Install" and select the
cloudblender.py
file you downloaded in the previous step. - Make sure to activate the add-on by checking the box next to it (you can search for "cloudblender" in the search bar).
When you first run the addon, you will need to install the cloud-volume
Python package.
Open up the right sidebar in Blender (press N
if it's not visible) and navigate to the "CloudBlender" tab. If cloud-volume
is not installed, you will see a button to install it.
Click on it and wait for the installation to complete.
Once the installation is complete, the greyed-out buttons will become active, and you can start using the addon.
At the beginning of the session, only the "Connect" button is active. Click it to connect to the cloud volume server.
The prompt will ask you to add a sources for images and segmentation for your dataset. You don't have to provide both, but you need at least one of them. The default sources point to the MICrONS dataset.
Currently, you can load image data either as individual planes or as a cube. Overlaying the segmentation data on top of the image data is also supported.
The dialog will ask you to specify start and end coordinates for the cube/slices which you can either give in voxels or in world coordinates.
Once you imported a slice or a cube*, you can move/scale it within the bounds of the volume. Pressing the "Update images" buttin should update the image data to match the new position of the slice. Please note that this function is still experimental and may not always work as expected.
*a cube is just a bunch of slices
Meshes for neurons can be loaded by clicking the "Load meshes" button. To load a neuron you must provide its segmentation ID. Multiple IDs can be provided as a comma-separated list.
Clicking the "Color neurons" button will color all loaded neuron meshes according to their segmentation ID. Colors should match the colors used in the segmentation data.