Learn R Programming

biopixR (version 1.1.0)

interactive_objectDetection: Interactive object detection

Description

This function uses the objectDetection function to visualize the detected objects at varying input parameters.

Usage

interactive_objectDetection(img, resolution = 0.1, return_param = FALSE)

Value

Values of alpha, sigma and the applied method.

Arguments

img

image (import by importImage)

resolution

resolution of slider

return_param

if TRUE the final parameter values for alpha and sigma are printed to the console (TRUE | FALSE)

Details

The function provides a graphical user interface (GUI) that allows users to interactively adjust the parameters for object detection:

  • Alpha: Controls the threshold adjustment factor for edge detection.

  • Sigma: Determines the amount of smoothing applied to the image.

  • Scale: Adjusts the scale of the displayed image.

The GUI also includes a button to switch between two detection methods:

  • Edge Detection: Utilizes the edgeDetection function. The alpha parameter acts as a threshold adjustment factor, and sigma controls the smoothing.

  • Threshold Detection: Applies a thresholding method, utilizing SPE for background reduction and the threshold function. (No dependency on alpha or sigma!)

References

https://CRAN.R-project.org/package=magickGUI

Examples

Run this code
# \donttest{
if (interactive()) {
  interactive_objectDetection(beads)
  }
# }

Run the code above in your browser using DataLab