Skip to content

Commit 9db7653

Browse files
committed
edit some comments
1 parent 7822525 commit 9db7653

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

WSIGraph.py

-3
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,9 @@ def SingleGLCMFeatures(args):
209209
for contour, bbox in zip(contours, bboxes):
210210
cellImg = getCellImg(slidePtr, bbox, pad, level)
211211
cellmask = getCellMask(contour, bbox, pad).astype(np.bool_)
212-
# 去除背景
213212
cellImg[~cellmask] = 0
214213

215214
outMatrix = skfeat.graycomatrix(cellImg, [1], [0])
216-
# 去除共生矩阵中与背景相关的值
217215
outMatrix[0, :, ...] = 0
218216
outMatrix[:, 0, ...] = 0
219217

@@ -562,7 +560,6 @@ def constructGraphFromDict(
562560
paircentroid_T = np.array(centroid_T)[pairindex_T]
563561
barrier = []
564562
for Tcoor, Icoor, r in tqdm(zip(centroid_I, paircentroid_T, dis), total=len(centroid_I)):
565-
# 分别计算在r距离内间质细胞的数量
566563
set1 = set(STree.query_ball_point(Tcoor, r))
567564
set2 = set(STree.query_ball_point(Icoor, r))
568565
barrier.append(len(set1 & set2))

0 commit comments

Comments
 (0)