objectDetection {biopixR}R Documentation

Object detection

Description

This function identifies objects in an image using edge detection and labeling, gathering the coordinates and centers of the identified objects. The edges of detected objects are then highlighted for easy recognition.

Usage

objectDetection(img, alpha = 1, sigma = 2)

Arguments

img

image (import by load.image)

alpha

threshold adjustment factor

sigma

smoothing

Value

list of 4 objects:

  1. data frame of labeled region with the central coordinates

  2. all coordinates that are in labeled regions

  3. size of labeled objects

  4. image were object edges (purple) and detected centers (green) are colored

Examples

res_objectDetection <- objectDetection(beads, alpha = 1, sigma = 2)
res_objectDetection$marked_beads |> plot()

[Package biopixR version 0.2.4 Index]