Dear List,I would like to use BigDataViewer (BDV) for the visualization of volumetric anisotropic electron microscopy data of brain tissue (similar to the drosophila dataset mentioned in the BDV publication) and have the following questions related to the navigation speed:1. I would like to get a smooth navigation in the z-direction with a high frame rate (say up to 30 Hz) for a field of view of about 200x200 up to 500x500 pixels (and staying orthogonal to the x-y plane, no tilting needed). So far I have tried quite a few different mipmap parameters and saved the HDF5 file on an SSD drive on a powerful workstation, but it is not as smooth as what is achieved with stacks loaded in memory with Fiji or with softwares that also optimize data loading such as Knossos. Are there parameters that would optimize such a navigation, or is it not compatible with the data loading scheme of BDV that might be more optimized for reslicing ?
2. How can the z-axis increment step be set ? It seems to depend on the magnification factor and is less than 1 at the magnification factor I want to use, meaning that I need a few key presses to move to the next slice.
3. Can the frame rate be adjusted for when the ',' and '.' keyboard navigation buttons are hold down ?
Thank you very much for your helpBest regardsThomas
--
--
Please avoid top-posting, and please make sure to reply-to-all!
Mailing list web interface: http://groups.google.com/group/fiji-devel
---
You received this message because you are subscribed to the Google Groups "Fiji-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fiji-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Thomas,On 28 Sep 2015, at 01:23, Thomas <thomas_...@hotmail.com> wrote:Dear List,I would like to use BigDataViewer (BDV) for the visualization of volumetric anisotropic electron microscopy data of brain tissue (similar to the drosophila dataset mentioned in the BDV publication) and have the following questions related to the navigation speed:1. I would like to get a smooth navigation in the z-direction with a high frame rate (say up to 30 Hz) for a field of view of about 200x200 up to 500x500 pixels (and staying orthogonal to the x-y plane, no tilting needed). So far I have tried quite a few different mipmap parameters and saved the HDF5 file on an SSD drive on a powerful workstation, but it is not as smooth as what is achieved with stacks loaded in memory with Fiji or with softwares that also optimize data loading such as Knossos. Are there parameters that would optimize such a navigation, or is it not compatible with the data loading scheme of BDV that might be more optimized for reslicing ?It is hard to judge the speed without seeing it.It is definitely true that rendering BDV is not as fast as moving through slices in a Fiji stack. This is because BDV *always* does the re-slicing computation. This means there is a coordinate transformation, interpolation, and type conversion for every pixel that is rendered on the screen. This is currently all done in software and there is no optimization for special cases, like no tilting. In contrast, moving to the next slice in a Fiji stack is basically just a memcopy without any intermediate transformations etc.That beeing said, 30Hz at 500x500 doesn’t seem so unreasonable. Are you at least getting close to that?Is it always too slow, or just when it is reading from disk. If you are browsing the same local area repeatedly, the data should be in RAM.What OS and Java version are you using? What is the max memory setting of Fiji?
2. How can the z-axis increment step be set ? It seems to depend on the magnification factor and is less than 1 at the magnification factor I want to use, meaning that I need a few key presses to move to the next slice.The increment in z is always the same size as 1 pixel width on the screen. So you are right, it depends on the magnification factor.It currently cannot be configured. I’ll put that on my TODO list...
3. Can the frame rate be adjusted for when the ',' and '.' keyboard navigation buttons are hold down ?No, this cannot be adjusted. Actually, there is no notion currently of ',' and ‘.’. This is just the systems keyboard repeat rate, .i.e, if the events that are processed are the same as if pressing and holding a key when entering text.I can look into changing that.
slice number / refresh time (s)
100 0.549000024796268 0.3140001297437 0.53400015831608 0.517999887466784 0.563999891281957 0.532999992371from bdv import BigDataViewerfrom bdv.export import ProgressWriterConsolefrom net.imglib2.realtransform import AffineTransform3Dfrom bdv.viewer import DisplayModeimport time
path = 'F:\\ThomasFast\\export.xml'
v = BigDataViewer(path, 'BDV Title', ProgressWriterConsole())
v.getViewer().setDisplayMode( DisplayMode.FUSED )v.getViewerFrame().setVisible( True )
transform = AffineTransform3D()mag = 1speed = 30t = time.time()for i in range(1000): transform.set( mag, 0, 0, 0, 0,mag, 0, 0, 0, 0, mag, -mag*i); v.getViewer().setCurrentViewerTransform( transform ); time.sleep(1/float(speed)) elapsed = time.time() - t t = time.time() if elapsed > 0.05: print i, elapsed