Open arkerman opened 1 year ago
After calculating the heat map, how to convert map to mask( Foreground is 1, background is 0 )?
anomaly_map, _ = cal_anomaly_map(inputs, outputs, img.shape[-1], amap_mode='mul') anomaly_map = gaussian_filter(anomaly_map, sigma=4)
What needs to be done after Gaussian filtering to achieve the mask? Any suggestions will be appreciated !
After calculating the heat map, how to convert map to mask( Foreground is 1, background is 0 )?
What needs to be done after Gaussian filtering to achieve the mask? Any suggestions will be appreciated !