Returns a shiny.appobj built from package code, with explicit input
objects instead of global options. The app offers image/channel/band
selection, a protocol picker with a parameter form generated from the
protocol registry, mask overlay, backend status for optional DNN
protocols, a staged/reviewed workflow with explicit overwrite
confirmation, and export of a neutral interchange bundle. There is no
code entry of any kind.
Arguments
- input
NULL, ansg_image, ansg_mask, a list withimageand/ormask, or the path of an interchange bundle (imported as staged).- state
Optional list with initial
protocol(id) andparameters(named list of overrides).- control
"off". The local control service (segmantR-control-v1) is planned and not implemented; other values signal ansg_capability_error.- ...
Options:
read_only(logical, disables running and review).
Examples
app <- sg_app(list(image = sg_example_image("fluorescence_nuclei")))
class(app)
#> [1] "shiny.appobj"
if (interactive()) {
shiny::runApp(app)
}