Extracting temporal relationships between weakly coupled peptidergic and motoneuronal signaling: Application to Drosophila ecdysis behavior
Fig 9
Sequence of image processing steps used to compute the midline of the pupa for every frame of the video. A RGB video frame is extracted (a) and converted to a grayscale image (b), then thresholded (c), and holes are then removed (d). Blob borders are softened by applying a gaussian filter (e) and thresholded again (f). Small blobs are discarded (g) and the left (green) and right (red) borders are computed (h). The mean of the two borders represents the midline (white line).