Spontaneous tail coilings detection in zebrafish

The workflow detects the number and frequency of spontaneous tail coilings displayed in zebrafish embryos through image analysis of videos in AVI format. The ffmpeg tool is required to split AVI files into image frames. Spontaneous tail coilings in zebrafish embryos were recorded with a video camera (Olympus DP21) mounted in an Olympus SZX7 stereomicroscope (0.8x magnification, camera with a minimal resolution of 120 frames per minute or more) using a black background and dark field transmitted light at the base. The black background is important in order to detect each egg on the images. Example video recording can be downloaded from here: https://www.dropbox.com/sh/uh4usf0gqxoote1/AABVkGXly4l585kHlRUgJ7wZa?dl=0 Tutorial on how to use the workflow coming soon...


This is a companion discussion topic for the original entry at https://kni.me/w/ICVpP1wntrdj5xvJ

I was just wondering if it is possible to configure this workspace so that I can input images that are recorded using a white background? We recorded 80-second zebrafish embryo videos and we want to compare the tail coiling of our wild types to our mutant fish. I have tried to configure the threshold so that it adjusts to the white background but it is giving some weird results and I would like to know if there is any potential solution to this. Or perhaps an explanation of what exactly this workflow is recording so that I could adjust it to fit my desired parameters.