Function to plot 2D intensity profile for a certain frame, default is to plot
the first frame. Input can be a matrix (2D) or an array (3D).
Usage
plot_intensity(
intensity,
intensity_str = "T_SS_mat",
frame = 1,
sz = NA,
title = NA,
color = FALSE
)
Value
2D plot in gray scale (or with color) of selected frame.
Arguments
intensity
intensity profile
intensity_str
structure of the intensity profile, options from
('SST_array','S_ST_mat','T_SS_mat', 'SS_T_mat'). See 'Details'.
frame
frame index
sz
frame size of simulated image with default c(200,200).
title
main title of the plot. If NA, title is "intensity profile
for frame n" with n being the frame index in frame.
color
a logical evaluating to TRUE or FALSE indicating whether a colorful
plot is generated
Author
tools:::Rd_package_author("AIUQ")
Details
By default intensity_str is set to 'T_SS_mat', a time by space\(\times\)space
matrix, which is the structure of intensity profile obtained from simulation
class. For intensity_str='SST_array' , input intensity profile should be a
space by space by time array, which is the structure from loading a tif file.
For intensity_str='S_ST_mat', input intensity profile should be a
space by space\(\times\)time matrix. For intensity_str='SS_T_mat',
input intensity profile should be a space\(\times\)space by time matrix.