jjil.algorithm
Class ApplyMaskRgb

java.lang.Object
  extended by jjil.algorithm.ApplyMaskRgb

public class ApplyMaskRgb
extends java.lang.Object

ApplyMaskRgb shows a mask on an RGB image by making all the unmasked pixels gray.

Author:
webb

Constructor Summary
ApplyMaskRgb()
          Creates a new instance of ApplyMaskRgb
 
Method Summary
 RgbImage push(RgbImage imRgb, Gray8Image imMask)
          Highlights an area in a RGB image by turning the non-masked areas gray and dimming them.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplyMaskRgb

public ApplyMaskRgb()
Creates a new instance of ApplyMaskRgb

Method Detail

push

public RgbImage push(RgbImage imRgb,
                     Gray8Image imMask)
              throws Error
Highlights an area in a RGB image by turning the non-masked areas gray and dimming them.

Parameters:
imRgb - the input RGB image.
imMask - The input mask. Pixels with the value Byte.MinValue are unmasked. Everything else is considered to be masked.
Returns:
the masked color image.
Throws:
Error - if the input sizes do not match