Class BinaryOverlay

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.color.BinaryOverlay
All Implemented Interfaces:
Algo

public class BinaryOverlay
extends AlgoStub
Computes overlay of a binary image mask onto a grayscale or color image, using the specified color. Both images must have the same size.
Author:
dlegland
  • Constructor Summary

    Constructors
    Constructor Description
    BinaryOverlay()
    Empty constructor.
  • Method Summary

    Modifier and Type Method Description
    ij.ImagePlus process​(ij.ImagePlus imagePlus, ij.ImagePlus maskPlus, java.awt.Color color)
    Applies an overlay of a binary image mask onto a grayscale or color image, using the specified color.
    ij.ImageStack process​(ij.ImageStack refImage, ij.ImageStack mask, java.awt.Color color)
    Applies an overlay of a binary image mask onto a grayscale or color image, using the specified color.
    ij.process.ImageProcessor process​(ij.process.ImageProcessor refImage, ij.process.ImageProcessor mask, java.awt.Color color)
    Applies an overlay of a binary image mask onto a grayscale or color image, using the specified color.

    Methods inherited from class inra.ijpb.algo.AlgoStub

    addAlgoListener, removeAlgoListener

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BinaryOverlay

      public BinaryOverlay()
      Empty constructor.
  • Method Details

    • process

      public ij.ImagePlus process​(ij.ImagePlus imagePlus, ij.ImagePlus maskPlus, java.awt.Color color)
      Applies an overlay of a binary image mask onto a grayscale or color image, using the specified color. Both images must have the same size.
      Parameters:
      imagePlus - the original 2D or 3D image used as background
      maskPlus - the binary 2D or 3D mask image
      color - the color used to display overlay
      Returns:
      a new ImagePlus instance containing a 2D or 3D color image
    • process

      public ij.process.ImageProcessor process​(ij.process.ImageProcessor refImage, ij.process.ImageProcessor mask, java.awt.Color color)
      Applies an overlay of a binary image mask onto a grayscale or color image, using the specified color. Both images must have the same size.
      Parameters:
      refImage - the original image used as background
      mask - the binary mask image
      color - the color used to display overlay
      Returns:
      a new ImagePlus instance containing a 2D color image
    • process

      public ij.ImageStack process​(ij.ImageStack refImage, ij.ImageStack mask, java.awt.Color color)
      Applies an overlay of a binary image mask onto a grayscale or color image, using the specified color. Both images must have the same size.
      Parameters:
      refImage - the original 2D or 3D image used as background
      mask - the binary 2D or 3D mask image
      color - the color used to display overlay
      Returns:
      a new ImageStack containing a 3D color image