当有边界框时计算 ImageJ 中形状的面积

Calculate area of a shape in ImageJ when there's a bounding box

我想计算下图中的蓝色区域。这里不清楚,但图像周围有一个白色边界框,所以我希望能够删除白色区域或以某种方式考虑它。

可能我没有理解你的意思"white bounding box problem",但是如果你想计算蓝色区域,这很容易。将图像转换为灰度,蓝色比黑色或白色具有明显的灰度值(很明显),然后在阈值区域上 运行 "Measure"。

run("8-bit");

// or Auto threshold or....
setThreshold(97, 172);

run("Measure");
area=getResult("Area")
print(area)