library(knitr) options(width = 72)
Fiji/ImageJ has a particle analysis function called Analyze Particles...
.
To set the parameters in a macro we need to construct a string
that we will name ap_str2
: This was split to two lines for easier
reading. It is one long line in the original...
ap_str2 = "size=" + min_size + "-Infinity circularity=" + min_circ + "-1.00 show=Overlay display exclude add in_situ"
The min_size
variable is implemented as a String
as is the min_circ
variable. Our focus is on the min-size
variable. It is the
minimum area in square microns to detect. Let's consider that we want to
compute the area if we wanted to detect particles greater than or equal
to 5 nm in diameter.
First, we would load the library
library(particlesizeR)
print(ecd_nm_to_area_um(5.0))
To work backwards, if we wanted to know the diameter in nm from
an area cutoff of 7.854e-5
square microns, we would run
print(area_um_to_ecd_nm(7.854e-5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.