Skip to content

Instantly share code, notes, and snippets.

View axtimwalde's full-sized avatar

Stephan Saalfeld axtimwalde

View GitHub Profile
@axtimwalde
axtimwalde / Example8.java
Created May 24, 2019 21:39
Big Volume Viewer for large multi-scale N5 dataset
package bvv.examples;
import static net.imglib2.img.basictypeaccess.AccessFlags.VOLATILE;
import static net.imglib2.type.PrimitiveType.BYTE;
import static net.imglib2.type.PrimitiveType.DOUBLE;
import static net.imglib2.type.PrimitiveType.FLOAT;
import static net.imglib2.type.PrimitiveType.INT;
import static net.imglib2.type.PrimitiveType.LONG;
import static net.imglib2.type.PrimitiveType.SHORT;
[SciJava-47ff0e6c-Thread-0] INFO SciView - Started application as PID 17732
[SciJava-47ff0e6c-Thread-0] INFO OpenGLRenderer - Initializing OpenGL Renderer...
[SciJava-47ff0e6c-Thread-0] INFO OpenGLRenderer - Loaded Deferred Shading (Deferred Shading, with HDR postprocessing and FXAA
ClearGLWindow: GLProfile[GL4/GL4.hw]
[SciJava-47ff0e6c-Thread-0-FPSAWTAnimator#00-Timer0] INFO OpenGLRenderer - OpenGLRenderer: 512 x 512 on Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) , 4.5 (Core Profile) Mesa 17.4.0-devel (git-2b612431f5 2017-10-28 xenial-oibaf-ppa)
[SciJava-47ff0e6c-Thread-0-FPSAWTAnimator#00-Timer0] DEBUG OpenGLRenderer - Available OpenGL extensions: GL_3DFX_texture_compression_FXT1, GL_AMD_conservative_depth, GL_AMD_draw_buffers_blend, GL_AMD_seamless_cubemap_per_texture, GL_AMD_shader_trinary_minmax, GL_AMD_vertex_shader_layer, GL_AMD_vertex_shader_viewport_index, GL_ANGLE_texture_compression_dxt3, GL_ANGLE_texture_compression_dxt5, GL_APPLE_object_purgeable, GL_ARB_ES2_compatibility, GL_ARB_ES3_1_com
ClearGLWindow: GLProfile[GL4/GL4.hw]
[main-Display-.x11_:0-1-EDT-1] INFO OpenGLRenderer - OpenGLRenderer: 512 x 512 on Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) , 4.5 (Core Profile) Mesa 13.1.0-devel
[main-Display-.x11_:0-1-EDT-1] INFO OpenGLRenderer - Supported OpenGL extensions:
GL_3DFX_texture_compression_FXT1, GL_AMD_conservative_depth, GL_AMD_draw_buffers_blend, GL_AMD_seamless_cubemap_per_texture, GL_AMD_shader_trinary_minmax, GL_AMD_vertex_shader_layer, GL_AMD_vertex_shader_viewport_index, GL_ANGLE_texture_compression_dxt3, GL_ANGLE_texture_compression_dxt5, GL_APPLE_object_purgeable, GL_ARB_ES2_compatibility, GL_ARB_ES3_1_compatibility, GL_ARB_ES3_2_compatibility, GL_ARB_ES3_compatibility, GL_ARB_arrays_of_arrays, GL_ARB_base_instance, GL_ARB_blend_func_extended, GL_ARB_buffer_storage, GL_ARB_clear_buffer_object, GL_ARB_clear_texture, GL_ARB_clip_control, GL_ARB_compressed_texture_pixel_storage, GL_ARB_compute_shader, GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, GL_ARB_copy_
saalfeld@saalfeld-xps:~/workspace/clear-volume/scenery (BoundingBoxes)$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
saalfeld@saalfeld-xps:~ $ sudo apt-get install clinfo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
clinfo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.8 kB of archives.
After this operation, 110 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ wily/universe clinfo amd64 2.0.15.04.28-1 [28.8 kB]
^\2015-09-23 14:33:26
Full thread dump OpenJDK 64-Bit Server VM (25.45-b02 mixed mode):
"repainter-12" #42190 daemon prio=5 os_prio=0 tid=0x00007f1fc0155800 nid=0x25c6 waiting on condition [0x00007f1e9bffe000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f2197d3b588> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@axtimwalde
axtimwalde / Auto_Correlation.java
Created April 3, 2012 08:52
n-dimensional autocorrelation plugin for Fiji using ImgLib2
import ij.IJ;
import ij.ImagePlus;
import ij.plugin.PlugIn;
import mpicbg.util.RealSum;
import net.imglib2.FinalInterval;
import net.imglib2.IterableRealInterval;
import net.imglib2.RandomAccessible;
import net.imglib2.RandomAccessibleInterval;
import net.imglib2.algorithm.fft.FourierTransform;
import net.imglib2.algorithm.fft.FourierTransform.Rearrangement;