View source: R/interactive_objectDetection.R
interactive_objectDetection | R Documentation |
This function uses the objectDetection
function to
visualize the detected objects at varying input parameters.
interactive_objectDetection(img, resolution = 0.1, return_param = FALSE)
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) |
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!)
Values of alpha, sigma and the applied method.
https://CRAN.R-project.org/package=magickGUI
if (interactive()) {
interactive_objectDetection(beads)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.