Skip to content

Commit

Permalink
# special modifications for ws
Browse files Browse the repository at this point in the history
  • Loading branch information
lizepeng1 committed Dec 2, 2024
1 parent 49b361c commit c78b17d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cellbin2/config/cellbin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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染色
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions cellbin2/modules/extract/image_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c78b17d

Please sign in to comment.