Seol mar théacs é seo: Trainable segmentation for transmission electron microscope images of inorganic nanoparticles