I want to calculate the blue area in the below image. It's not clear here but there's a white bounding box surrounding the image so I'd like to be able to remove the white area or take it into account somehow.
Asked
Active
Viewed 120 times
1 Answers
1
Maybe I didn't unsderstand your "white bounding box problem", but if you want to compute the blue area, it's fairly easy. Convert the image to grayscale, blue has a distinctive gray value than black or white (obviously) then just run "Measure" on the thresholded area.
run("8-bit");
// or Auto threshold or....
setThreshold(97, 172);
run("Measure");
area=getResult("Area")
print(area)
![](../../users/profiles/6309717.webp)
Soltius
- 1,862
- 1
- 11
- 22