figureflow.figure_panel.FigurePanel.annotate_channel_within_image
- figureflow.figure_panel.FigurePanel.annotate_channel_within_image = <function FigurePanel.annotate_channel_within_image>
Extract channel number from file name (__cx..x-x…x-x…x). Annotate corresponding channel_names with corresponding color in image. Each file cannhave multiple channels specified (for overlap images with more than one channel in different colors).
- Parameters:
channel_names – Names of channels that will be annotated in image. The index in the list corresponds to the channel number in the image filename
channel_colors – Colors in which names of channels will be annotated in image. The index in the list corresponds to the channel number in the image filename if None, defaults for colors to cmaps used to display channel/s
position – define where the timestamp should be added set as “first_dimension-second dimension” - e.g. “bottom-left” or “top-right”
color – Color of label
images –
- list of dict or dict
dict specifies on which images should be drawn
the key is the category and the value is a list of allowed values
only_show_in_rows – list of rows in which the labels should be displayed, if None display in all rows
only_show_in_columns – list of columns in which the labels should be displayed, if None display in all columns
string_separating_channels – For composites with multiple channels add this string between channels maximum one space in a row is allowed
padding – Padding in inches of label from image edges