gradient

Description

Convert a mono image to an RGB gradient image for better visibility. If the "insetinto" input has an image AND there is a valid ROI in the mono image, the image will be inset into the RGB of the insetinto image. NOTE: if you change the "insetinto" image's RGB mapping you may need to "run all" to see the the change reflected.

Ignores DQ and uncertainty

The gradient widget has the following behaviour:

  • click and drag to move a colour point
  • doubleclick to delete an existing colour point
  • doubleclick to add a new colour point
  • right click to edit an existing colour point

Node parameters:

  • gradient: utils.Gradient object containing gradient info
  • colour: (r,g,b) [0:1] colour of text and border for in-image legend
  • legendrect: (x,y,w,h) rectangle for in-image legend
  • vertical: true if vertical legend
  • fontscale: size of font
  • thickness: border thickness
  • legendPos: string describing position:
    • 'In image', 'Top margin', 'Bottom margin', 'Left margin', 'Right margin', 'None' These are also defined as constants LEFT_MARGIN... IN_IMAGE (and None)

Connections

Inputs

Index Name Type Desc
0 mono img (none)
1 background img (none)

Outputs

Index Name Type Desc
0 (none) img (none)