HotspotDetection¶
Purpose¶
HotspotDetection detects sparse hotspots in microscopy intensity images using
the SAIRPICO hotSpotDetection command. It is intended for spot-like signal
detection where a patch radius, neighborhood radius, and false-alarm p-value are
the primary controls.
Inputs¶
input_image: intensity image inpng,tif, ortiffformat.patch_size: patch radius passed as-m. Default3; minimum1.neighborhood_size: neighborhood radius passed as-n. Default5; minimum1.p_value: false-alarm p-value passed as-pv. Default0.2; range0.0to1.0.
Outputs¶
output_image: hotspot image. The default template is{input_image.stem}_hotspot{ext}.
Assumptions¶
The input is a microscopy intensity image with sparse local hotspot signal.
Output semantics are intensity-valued according to the wrapper schema, not a label table.
The p-value and neighborhood settings are tuned to the signal and background statistics of the image.
Dependencies and Core Libraries¶
BioImageFlow core processing and image schema classes.
SAIRPICO
hotspotenvironment withbioimageit::hotspot==1.0.0.External command:
hotSpotDetection.
Minimal Example¶
from bioimageflow_core import Arguments
from bioimageflow_sairpico_tools import HotspotDetection
result = HotspotDetection().process_row(
Arguments(
input_image="spots.tif",
patch_size=3,
neighborhood_size=5,
p_value=0.2,
output_image="spots_hotspot.tif",
)
)
Expected Results¶
The tool writes a hotspot image and returns its path as output_image. The
example invokes hotSpotDetection with -m 3, -n 5, and -pv 0.2.
Failure Modes¶
hotSpotDetectionis not available in the active environment.Input image format or dimensionality is unsupported by the binary.
Threshold parameters produce no useful detections or excessive detections.
The subprocess exits non-zero or output writing fails.