Comments (6)
Hello,
Both the PBRT rendering engine and the Fluorescence plugin have been recently added and are still work in progress. The code works, but testing and documentation are on the process of being done.
Being said that, an initial documentation can be found as python method on its API (python/plugin/fluorescence.py). Nonetheless, the plugin works by given the engine volumes, thus the meshes should be converted into volume before being feed into Brayns.
To start using the plugin, brayns should be started as usual, but specifying the fluorescence plugin to be loaded:
--plugin braynsFluorescence
And the pbrt-v2 engine, which includes the integrators that support fluorescence
--engine pbrtv2
Once brayns is up and running, interacting using python you will need to:
- Make brayns use the florescence volume integrator of your choice:
from brayns import Client
import sys
brayns = Client("localhost:5000")
spp = 16
if len(sys.argv) > 1:
spp = int(sys.argv[1])
renderParams = brayns.SamplerrendererRendererParams()
renderParams.surface_integrator_class = "path"
renderParams.volume_integrator_class = "singlefluorescence"
renderParams.pixelsamples = spp
brayns.set_renderer_params(renderParams)
- Load a volume with the appropiate parameters
from brayns import Client, Fluorescence
import sys
brayns = Client("localhost:5000")
fluorescence = Fluorescence(brayns)
fluorescence.add_fluorescent_volume(fex=...,
fem=...,
epsilon=...,
c=...,
yieldv=...,
gf=...,
p0=(0, 0, 0),
p1=(1, 1, 1),
name="My fluorescent volume")
- Position the camera where you wish and let it render
However, I highly encourage you to wait until we have advance further and have a proper documentation and intensive testing of the engine and the plugin.
from brayns.
The following statement is not true.
The last step of the pipeline is to generate synthetic fluorescence microscopy images from the mesh files.
To generate a fluorescence image, yo need to create a fluorescent volume tagged with the spectral and optical properties. For further information, please refer to that link
from brayns.
@NadirRoGue Thank you for the boiler plate code. This should be enough to get me started. Since the plugin lacks testing and documentation, are there any tests I could write while I experiment with the plugin? I really like this project and would be glad to contribute if any way.
@marwan-abdellah Thank you for the clarification. Which file format should the volume files be in? Could you provide a sample volume as reference? I am thinking of writing code that would generate fluorescently labeled volumes from mesh files to facilitate automation of fluorescence image rendering. I would add options of where to add the fluorescent probes, such as in the cell membrane, cytoplasm or microtubules. Is this a feature that you would consider adding if I provided the code?
from brayns.
@trissim There is already a tool to automate the generation of the fluorescent volumes even for different components from morphologies and meshes. But this tool is only for BBP, it hasn't been open sourced yet. Are you at BBP?
from brayns.
@trissim There is already a tool to automate the generation of the fluorescent volumes even for different components from morphologies and meshes. But this tool is only for BBP, it hasn't been open sourced yet. Are you at BBP?
@marwan-abdellah
I am not at BBP, but I am interested in contributing to your projects. I am currently a first year Masters student at McGill University at the Fournier lab ( https://fournierlab.mcgill.ca/ )
I am working on deep learning approach to trace neurites from neurons grown in cultures using b-splines. Having access to this tool for automated volume generation would be of great help. You can take a look at my neuron_splines project repo that I will be updating later this week (I have made a lot of changes since the last commit). We can setup a meeting to discuss things further if you are interested in collaborating or assigning me some tasks to help contribute.
from brayns.
Documentation for the fluorescence plugin is available at https://brayns.readthedocs.io/en/latest/api_fluorescence.html
Closing this issue. For any further problem, open a new issue, please.
from brayns.
Related Issues (20)
- docker image fails to run HOT 4
- AtlasExplorer can't find bzlib.h while compiling (Bzip2 build from source, installed in custom directory) HOT 4
- Launching via docker: Non-functional HOT 6
- Loading swc format data HOT 2
- Transfer function for volume rendering HOT 2
- Allowing users to add a gradient for the background. HOT 3
- camera should be centered by default on model HOT 1
- No simulation type in GUI. HOT 1
- I want to download a movie of a circuit simulation HOT 1
- Citing HOT 1
- Web UI: Incorrect snapshot viewport size when using zoomed browser HOT 1
- Web UI: Camera reset broken HOT 1
- Web UI: Navigation Cube incorrectly rendered HOT 1
- Visualizing circuit of sonata data format HOT 3
- No dti support in docker image HOT 1
- clang-8 fails to build Brayns: error: call to 'is_value_cont_helper' is ambiguous HOT 1
- Assimp support broken with assimp 5.0 HOT 1
- Load morphology from memory not supported HOT 2
- ASSIMP module failure HOT 3
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 brayns.