public class VFBUtils extends Object
Modifier and Type | Method and Description |
---|---|
static SNTPoint |
brainBarycentre(String templateBrain)
Returns the spatial centroid of an adult Drosophila template brain.
|
static OBJMesh |
getMesh(String vfbId)
Retrieves the mesh associated with the specified VFB id.
|
static OBJMesh |
getMesh(String vfbId,
ColorRGB color)
Retrieves the mesh associated with the specified VFB id.
|
static OBJMesh |
getRefBrain(String templateBrain)
Retrieves the surface mesh of an adult Drosophila template brain.
|
static boolean |
isDatabaseAvailable()
Checks whether a connection to the Virtual Fly Brain database can be
established.
|
static void |
main(String[] args) |
public static boolean isDatabaseAvailable()
public static SNTPoint brainBarycentre(String templateBrain)
templateBrain
- the template brain to be loaded (case-insensitive).
Either "JFRC2" (AKA JFRC2010, VFB), "JFRC3" (AKA
JFRC2013), "JFRC2018" or "FCWB" (FlyCircuit Whole Brain
Template)public static OBJMesh getRefBrain(String templateBrain) throws IllegalArgumentException
templateBrain
- the template brain to be loaded (case-insensitive).
Either "JFRC2" (AKA JFRC2010, VFB), "JFRC3" (AKA
JFRC2013), "JFRC2018", or "FCWB" (FlyCircuit Whole Brain
Template)IllegalArgumentException
- if templateBrain is not recognizedpublic static OBJMesh getMesh(String vfbId)
vfbId
- the VFB id, e.g., VFB_00017894, 00017894public static OBJMesh getMesh(String vfbId, ColorRGB color)
vfbId
- the VFB id, e.g., VFB_00017894, 00017894color
- the color to be assigned to the meshpublic static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.