| interactive_objectDetection {biopixR} | R Documentation | 
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)
Arguments
| img | image (import by  | 
| 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 edgeDetectionfunction. The alpha parameter acts as a threshold adjustment factor, and sigma controls the smoothing.
-  Threshold Detection: Applies a thresholding method, utilizing SPEfor background reduction and thethresholdfunction. (No dependency on alpha or sigma!)
Value
Values of alpha, sigma and the applied method.
References
https://CRAN.R-project.org/package=magickGUI
Examples
if (interactive()) {
  interactive_objectDetection(beads)
  }