Abstract
One of the most important factors determining the properties of a material is its grain size. However, unclear grain boundaries in the image hinder an accurate measurement of grain size. We demonstrate that grain boundaries existing in the images obtained by scanning transmission electron microscopy (STEM) can be clearly distinguished by applying a Sobel filter to a tilting series of STEM images of a hydrogenation-disproportionation-desorption-recombination processed Nd2Fe14B magnet sample.