this is still not perfect as there are few bright objects in the parking lot that are not picked up we will improve it bit later in the the otsu threshold was able to identify the region of the sky as brighter than the building an alternative thresholding method is the ridley-calvard method (also named after its inventors)thresh mh thresholding rc(imageprint(threshthis method returns smaller threshold and tells apart the building details whether this is better or worse depends on what you are trying to distinguish gaussian blurring blurring your image may seem oddbut it often serves to reduce noisewhich helps with further processing with mahotasit is just function callimage mh colors rgb gray(imageim mh gaussian_filter(image,