Skip to content
firepick1 (Chromebook Ubuntu) edited this page May 12, 2014 · 2 revisions

FireSight transparent operation adds an alpha channel to the pipeline image. If a background color is specified, transparent assigns foreground/background alpha values.

  • bgcolor JSON array with [B,G,R] background color. Default is [], which treats entire image as foreground
  • alphafg Normalized value between 0 and 1.0 for foreground alpha channel value. The default is 1, which is not transparent.
  • alphabg Normalized value between 0 and 1.0 for background alpha channel value. The default is 0, which is fully transparent.
  • roi JSON array with [x,y,width,height] rectangle describing region of interest.

Stage Model

{}

Example 1: Transparent Logo pipeline

firesight -i img/FireREST.png -p json/transparent.json -o target/transparent.png -Dalphafg=.7 -Dalphabg=.3 -Dbgcolor=[255,255,255] -Droi=[50,10,100,46]

Pixel:0.8ms

Consider a color image with a white background:

FireSight gives us the following transparent image:

Clone this wiki locally