Data types and utilities for SMLM coordinate data.
SMLMData provides a type for storing SMLM data as well as visualization tools and utilty functions. SMLMData Types should inherit from SMLD
. The 2D data type is:
mutable struct SMLD2D <: SMLD
connectID::Vector{Int}
x::Vector{Float64}
y::Vector{Float64}
σ_x::Vector{Float64}
σ_y::Vector{Float64}
photons::Vector{Float64}
σ_photons::Vector{Float64}
bg::Vector{Float64}
σ_bg::Vector{Float64}
framenum::Vector{Int}
datasetnum::Vector{Int}
datasize::Vector{Int}
nframes::Int
ndatasets::Int
datafields::NTuple{11, Symbol}
SMLD2D() = new()
end
A sub-Region Of Interest (ROI) can be extracted from an smld
using SMLMData.isolateROI() as follows:
roi = [1.0; 1.0; 16.0; 16.0] # [YStart; XStart; YEnd; XEnd], same units as smld.x and smld.y
smld_sub = SMLMData.isolateROI(smld, roi)