Add overlay

DEPRECATED - Please use individual overlay modules (e.

Description

DEPRECATED - Please use individual overlay modules (e.g. "Add labels", "Add object outline", etc.).

Adds an overlay to the specified input image which can represent each specified input object. This module can render many different types of overlay; options include: All points, Arrows, Centroid, Label only, Outline, Position measurements, Tracks

Parameters

ParameterDescription
Input imageImage onto which overlay will be rendered. Input image will only be updated if "Apply to input image" is enabled, otherwise the image containing the overlay will be stored as a new image with name specified by "Output image".
Input objectsObjects to represent as overlays.
Apply to input imageDetermines if the modifications made to the input image (added overlay elements) will be applied to that image or directed to a new image. When selected, the input image will be updated.
Add output image to workspaceIf the modifications (overlay) aren't being applied directly to the input image, this control will determine if a separate image containing the overlay should be saved to the workspace.
Output imageThe name of the new image to be saved to the workspace (if not applying the changes directly to the input image).
Label modeControls what information each label displays:
  • "ID" The ID number of the object.
  • "Measurement value" A measurement associated with the object. The measurement is selected using the "Measurement for label" parameter.
  • "Parent ID" The ID number of a parent of the object. The parent object is selected using the "Parent object for label" parameter.
  • "Parent measurement value" A measurement associated with a parent of the object. The measurement is selected using the "Measurement for label" parameter and the parent object with the "Parent object for label" parameter.
Decimal placesNumber of decimal places to use when displaying numeric values.
Use scientific notationWhen enabled, numeric values will be displayed in the format 1.23E-3. Otherwise, the same value would appear as 0.00123.
Label sizeFont size of the text label.
Parent object for labelIf "Label mode" is set to either "Parent ID" or "Parent measurement value", these are the parent objects which will be used. These objects will be parents of the input objects.
Measurement for labelIf "Label mode" is set to either "Measurement value" or "Parent measurement value", these are the measurements which will be used.
Position modeControls the sort of overlay to be rendered:
  • "All points" All points in each object are rendered as small circles.
  • "Arrows" Each object is represented by an arrow. The size, colour and orientation of each arrow can be fixed or based on a measurement value..
  • "Centroid" Each object is represented by a single small circle positioned at the centre of the object (mean XYZ location).
  • "Label only" Displays a text string at the centroid location of each object. Text can include object ID numbers, measurements or similar values for parent objects.
  • "Outline" Each object is represented by an outline.
  • "Position measurements" Each object is represented by a single circle positioned at the XYZ location specified by three position measurements.
  • "Tracks" The trajectory of a track (time-linked objects) is rendered for all track objects. The line passes between the centre of each timepoint instance of that track and appears as the object moves )(i.e. it only shows the trajectory from previous frames).
Arrow orientation modeSource for arrow orientation values:
  • "Measurement" Orientation of arrows will be based on the measurement specified by the parameter "Measurement for orientation" for each object.
  • "Parent measurement" Orientation of arrows will be based on the measurement specified by the parameter "Measurement for orientation" taken from a parent of each object. The parent object providing this measurement is specified by the parameter "Parent object for orientation".
Parent object for orientationParent objects providing the measurements on which the orientation of the arrows are based.
Measurement for orientationMeasurement that defines the orientation of each arrow. Measurements should be supplied in degree units.
Arrow length modeMethod for determining the length of arrows:
  • "Fixed value" All arrows are the same length. Length is controlled by the "Length value (px)" parameter.
  • "Measurement" Arrow length is proportional to the measurement value specified by the "Measurement for length" parameter. Absolute arrow lengths are adjusted by the "Arrow length scale" multiplication factor.
  • "Parent measurement" Arrow length is proportional to a parent object measurement value. The parent is specified by the "Parent object for length" parameter and the measurement value by "Measurement for length". Absolute arrow lengths are adjusted by the "Arrow length scale" multiplication factor.
Length value (px)Fixed value specifying the length of all arrows in pixel units.
Parent object for lengthParent objects from which the arrow length measurements will be taken.
Measurement for lengthMeasurement value that will be used to control the arrow length. This value is adjusted using the "Arrow length scale" muliplication factor.
Arrow length scaleMeasurement values will be multiplied by this value prior to being used to control the arrow length. Each arrow will be MeasurementValue*LengthScale pixels long.
Head sizeSize of the arrow head. This should be an integer between 0 and 30, where 0 is the smallest possible head and 30 is the largest.
X-position measurementObject measurement specifying the X-position of the overlay marker. Measurement value must be specified in pixel units.
Y-position measurementObject measurement specifying the Y-position of the overlay marker. Measurement value must be specified in pixel units.
Z-position measurementObject measurement specifying the Z-position (slice) of the overlay marker. Measurement value must be specified in slice units.
Use radius measurementWhen selected, the radius of the overlay marker circle is controlled by the measurement specified by "Measurement for radius". When not selected, point is represented by a single spot of fixed size.
Measurement for radiusObject measurement use to specify the radius of the overlay marker circle. Measurement value must be specified in pixel units.
Colour modeMethod for determining colour of each object's corresponding overlay:
  • "ID" Overlay colour is quasi-randomly selected based on the ID number of the object. The colour used for a specific ID number will always be the same and is calculated using the equation value = (ID * 1048576 % 255) / 255.
  • "Measurement value" Overlay colour is determined by a measurement value. Colour range runs across the first half of the visible spectrum (i.e. red to cyan) and is maximised, so the object with the smallest measurement is shown in red and the object with the largest, in cyan. Objects missing the relevant measurement are always shown in red. The measurement value is selected with the "Measurement for colour" parameter.
  • "Parent ID" Overlay colour is quasi-randomly selected based on the ID number of a parent of this object. The colour used for a specific ID number will always be the same and is calculated using the equation value = (ID * 1048576 % 255) / 255. The parent object is selected with the "Parent object for colour" parameter.
  • "Parent measurement value" Overlay colour is determined by a measurement value of a parent of this object. Colour range runs across the first half of the visible spectrum (i.e. red to cyan) and is maximised, so the object with the smallest measurement is shown in red and the object with the largest, in cyan. Objects either missing the relevant measurement or without the relevant parent are always shown in red. The parent object is selected with the "Parent object for colour" parameter and the measurement value is selected with the "Measurement for colour" parameter.
  • "Random colour" Overlay colour is randomly selected for each object. Unlike the "ID" option, the colours generated here will be different for each evaluation of the module.
  • "Single colour" (default option) Overlay colour is fixed to one of a predetermined list of colours. All objects will be assigned the same overlay colour. The colour is chosen using the "Single colour" parameter.
Single colourColour for all object overlays to be rendered using. This parameter is used if "Colour mode" is set to "Single colour". Choices are: White, Black, Red, Orange, Yellow, Green, Cyan, Blue, Violet, Magenta.
Measurement for colourMeasurement used to determine the colour of the overlay when "Colour mode" is set to either "Measurement value" or "Parent measurement value".
Parent object for colourObject collection used to determine the colour of the overlay based on either the ID or measurement value of a parent object when "Colour mode" is set to either "Parent ID" or "Parent measurement value". These objects will be parents of the input objects.
Spot objectsObjects present in each frame of this track. These are children of the "Input objects" and provide the coordinate information for each frame.
Limit track historyWhen enabled, segments of a track will only be displayed for a finite number of frames after the timepoint they correspond to. This gives the effect of a moving tail behind the object and can be use to prevent the overlay image becoming too cluttered for long/dense videos. The duration of the track history is specified by the "Track history (frames)" parameter.
Track history (frames)Number of frames a track segment will be displayed for after the timepoint to which it corresponds.
Line widthWidth of the rendered lines. Specified in pixel units.
Render in all framesDisplay the overlay elements in all frames (time axis) of the input image stack, irrespective of whether the object was present in that frame.
Enable multithreadingProcess multiple overlay elements simultaneously. This can provide a speed improvement when working on a computer with a multi-core CPU.