Last chance! 50% off unlimited learning
Sale ends in
This function serves as a pipeline that integrates tools for complete start-to-finish image analysis. It enables the handling of images from different channels, for example the analysis of dual-color micro particles. This approach simplifies the workflow, providing a straightforward method to analyze complex image data.
imgPipe(
img1 = img,
color1 = "color1",
img2 = NULL,
color2 = "color2",
img3 = NULL,
color3 = "color3",
method = "edge",
alpha = 1,
sigma = 2,
sizeFilter = FALSE,
upperlimit = "auto",
lowerlimit = "auto",
proximityFilter = FALSE,
radius = "auto"
)
list of 2 to 3 objects:
Summary of all the objects in the image.
Detailed information about every single object.
(optional) Result for every individual color.
image (import by importImage
)
name of color in img1
image (import by importImage
)
name of color in img2
image (import by importImage
)
name of color in img3
choose method for object detection ('edge' / 'threshold')
(from objectDetection
)
threshold adjustment factor (numeric / 'static' / 'interactive' / 'gaussian')
(from objectDetection
)
smoothing (numeric / 'static' / 'interactive' / 'gaussian')
(from objectDetection
)
applying sizeFilter
function (default - FALSE)
highest accepted object size (numeric / 'auto') (only needed if sizeFilter = TRUE)
smallest accepted object size (numeric / 'auto') (only needed if sizeFilter = TRUE)
applying proximityFilter
function (default - FALSE)
distance from one object in which no other centers are allowed (in pixels) (only needed if proximityFilter = TRUE)
objectDetection()
, sizeFilter()
, proximityFilter()
, resultAnalytics()
result <- imgPipe(
beads,
alpha = 1,
sigma = 2,
sizeFilter = TRUE,
upperlimit = 150,
lowerlimit = 50
)
# Highlight remaining microparticles
plot(beads)
with(
result$detailed,
points(
result$detailed$x,
result$detailed$y,
col = "darkgreen",
pch = 19
)
)
Run the code above in your browser using DataLab