the result may be useful on its own (if you are measuring some properties of the thresholded imageor it can be useful for further processing the result is binary image that can be used to select region of interest the result is still not very good we can use operations on this screenshot to further refine it for examplewe can run the close operator to get rid of some of the noise in the upper corners otsubin otsubin (image <threshmh close(otsubinnp ones(( , ))in this casewe are closing the region that is below the thresholdso we reversed the threshold operator we couldalternativelyhave performed an open operation on the negative of the image otsubin otsubin (image threshmh open(otsubinnp ones(( , ))in either casethe operator takes structuring element that defines the type of region we want to close in our casewe used square