-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2026-01-28_通过QuPath用ImageJ进行阈值设定.qmd
More file actions
66 lines (41 loc) · 2.35 KB
/
2026-01-28_通过QuPath用ImageJ进行阈值设定.qmd
File metadata and controls
66 lines (41 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
title: 通过ImageJ定阈值
subtitle: 通过QuPath用ImageJ进行阈值设定
date: 2026-01-28
toc-depth: 4
toc-expand: true
lang: en
---
## 1. 阈值选择应该客观些
QuPath (v0.6.0) → Classify → Pixel classification → Train pixel classifier...或Create thresholder...可以用于阈值设定,但感觉还是偏主观的人为设定。
<center>
{width="80%"}
</center>
这样对于单独一张图片(比如HE图片),可能还可以。但如果一个项目含有多个图片(需要相互比较分析),且不同图片之间存在不同程度的整体颜色/染色差异,这样设定阈值可能就不太客观了。
这时候需要一个相对客观的方法用于阈值设定。
## 2. QuPath和ImageJ的关系
如QuPath的说明文件所述[@QuPath_ImageJ]:
> QuPath was created by someone who was (and is) a big fan of ImageJ.
> In fact, QuPath started life as a collection of ImageJ plugins for digital pathology.
> Over time ... QuPath was rewritten from scratch as a completely new application, which [uses ImageJ as an extension]{.mark}.
## 3. 通过QuPath用ImageJ进行阈值设定
所用示例图片为HE图片。
首先,通过QuPath将已经进行color deconvolution的hemotoxylin通道图片发送到ImageJ。
<center>
{width="100%"}
{width="50%"}
</center>
发送到ImageJ后,通过`Plugins` → `Macros` → `Record...`记录在ImageJ的操作。
<center>
![该示例默认使用`Default`方法([自动选择`32`为阈值]{.mark})。也可以通过下拉箭头选择其它方法测试。](images/55_threshold_record.png){width="100%"}
{width="100%"}
{width="100%"}
</center>
感觉还不赖。
## 4. 使用QuPath的ImageJ script runner
通过ImageJ的`Record...`记录了在ImageJ的操作过程/ImageJ Macro,这时候可以把这个过程代码复制到QuPath的ImageJ script runner(见图1)。同样可以实现上面的操作。
<center>
{width="100%"}
</center>
[给我买杯茶🍵](给我买杯茶.qmd)
## References