Skip to main content
. Author manuscript; available in PMC: 2020 Apr 1.
Published in final edited form as: J Neurosci Methods. 2019 Jan 18;317:141–148. doi: 10.1016/j.jneumeth.2019.01.003

Fig. 2.

Fig. 2.

Binary exclusion mask, showing the tissue void at the center from the explanted device as well as 3 other regions to remove bubbles as image artifact. The regions are all user-defined and saved in the image configuration file.

fx2

Code Snippet 2: An exclusion mask is generated from user-defined input of the ‘hole’ ROI and any other artifacts such as bubbles and tears. Again the functions are serialized using the built-in Matlab function ‘cellfun’ for efficiency and modularity.