Skip to main content
. 2015 Jan 9;10(1):e0116989. doi: 10.1371/journal.pone.0116989

Figure 1. Image Preprocessing: From original image to the one used for classification.

Figure 1

The original image is submitted to an ImageJ script (S1 Fig. for the code) which allows to automatically crop the zebrafish embryo into a square as far as possible. The embryo will be surrounded by a rectangle if it is placed near the sides of the original image. We use a connected-component labeling approach combined with different morphological transformations and binarizations, in order to localize the embryo.