Class DrawLabelsAsOverlayPlugin

java.lang.Object
inra.ijpb.plugins.DrawLabelsAsOverlayPlugin
All Implemented Interfaces:
ij.plugin.PlugIn

public class DrawLabelsAsOverlayPlugin
extends java.lang.Object
implements ij.plugin.PlugIn
Draw the labels of the regions as overlay. The labels are located on the centroid of the regions.
Author:
dlegland
  • Constructor Summary

    Constructors
    Constructor Description
    DrawLabelsAsOverlayPlugin()  
  • Method Summary

    Modifier and Type Method Description
    void addLabelsAsOverlay​(ij.ImagePlus target, int[] labels, double[][] coords)
    Draw the values onto the target image.
    void run​(java.lang.String arg0)  

    Methods inherited from class java.lang.Object

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

    • DrawLabelsAsOverlayPlugin

      public DrawLabelsAsOverlayPlugin()
  • Method Details

    • run

      public void run​(java.lang.String arg0)
      Specified by:
      run in interface ij.plugin.PlugIn
    • addLabelsAsOverlay

      public void addLabelsAsOverlay​(ij.ImagePlus target, int[] labels, double[][] coords)
      Draw the values onto the target image.
      Parameters:
      target - the target image.
      labels - the list of labels of the regions.
      coords - for each region, the coordinate used for drawing the label.