diff --git a/cellbin2/config/cellbin.yaml b/cellbin2/config/cellbin.yaml index 6425ef8..8a2645d 100644 --- a/cellbin2/config/cellbin.yaml +++ b/cellbin2/config/cellbin.yaml @@ -7,7 +7,7 @@ trackPoints: second_level_thr: 20 # [th2 # inf) -> track_point_score = 2 good_thresh: 5 # 大于该阈值的被计数为good_fov process: 10 # 点检测推理进程数设置" - conf_filter: 0.5 # 依据此数值对检测结果进行置信度过滤,若值小于0就不做过滤") # 全局模板设置只要0.5以上的点 + conf_filter: 0.0 # 依据此数值对检测结果进行置信度过滤,若值小于0就不做过滤") # 全局模板设置只要0.5以上的点 high_freq_angle_thr: 0.05 # DEFAULT_STAIN_TYPE: 1 # ssDNA染色 SUPPORTED_STAIN_TYPE: [1, 2, 3] # ssDAN染色, DAPI染色,HE染色 @@ -44,8 +44,8 @@ chipDetector: num_threads: 0 templateReferenceV1: - pair_points_thr: 10 - pair_points_qc_thr: 5 + pair_points_thr: 20 + pair_points_qc_thr: 10 range_image_size_thr: 5000 pair_correct_thr: 20 cluster_num_thr: 10 diff --git a/cellbin2/modules/extract/image_extract.py b/cellbin2/modules/extract/image_extract.py index 889af8f..12ed1db 100644 --- a/cellbin2/modules/extract/image_extract.py +++ b/cellbin2/modules/extract/image_extract.py @@ -264,7 +264,12 @@ def _pre_registration(self, ): @process_decorator('GiB') def _estimate_fov_size(self, ): + # TODO 此处为西南分院专属改动,因其图像特征为以下: + # ·图像倍率过高,接近30X + # ·图像视野面较小,因此此处尺寸估计需设高 + scale = self._scale_estimate() # 尺度估计 + scale *= 2 # clog.info('Using the image and chip prior size, calculate scale == {}'.format(scale)) wh = (int(self._fov_wh[0] * scale), int(self._fov_wh[1] * scale)) clog.info('Estimate1 FOV-WH from {} to {}'.format(self._fov_wh, wh))