Correct region mask

This commit is contained in:
Dorofeeva Elizaveta (EXT)
2025-07-14 23:35:26 +02:00
parent b2cc1e27a4
commit ad0752aa92

View File

@@ -170,8 +170,8 @@ def _calc_streakfinder_analysis(results, snr, mask):
region = snr
region_mask = mask
else:
region = snr[crop_roi[0]: crop_roi[1], crop_roi[2]: crop_roi[3]]
region_mask = mask[crop_roi[0]: crop_roi[1], crop_roi[2]: crop_roi[3]]
region = snr[crop_roi[2]: crop_roi[3], crop_roi[0]: crop_roi[1]]
region_mask = mask[crop_roi[2]: crop_roi[3], crop_roi[0]: crop_roi[1]]
peaks = detect_peaks(region, region_mask, peaks_structure.rank, peak_vmin,
num_threads=num_threads)
peaks = filter_peaks(peaks, region, region_mask, peaks_structure, peak_vmin, npts,