[docs]defrun(self,ir_image:IRImage)->NoiseMask:"""Thresholds an IRImage to detect Specular Reflection. Args: ir_image (IRImage): Infrared image object. Returns: NoiseMask: a binary map of the thresholded IRImage. """_,reflection_segmap=cv2.threshold(ir_image.img_data,self.params.reflection_threshold,255,cv2.THRESH_BINARY)reflection_segmap=(reflection_segmap/255.0).astype(bool)returnNoiseMask(mask=reflection_segmap)