Class TLineProfile

All Implemented Interfaces:
Serializable, Cloneable, Drawable, Interactive, Measurable, Trackable

public class TLineProfile extends TLine
This obtains line profile data from a video image.
Version:
1.0
Author:
Douglas Brown
See Also:
  • Field Details

    • pixels

      protected int[] pixels
    • values

      protected int[] values
  • Constructor Details

    • TLineProfile

      public TLineProfile(double x1, double y1, double x2, double y2)
      Constructs a TLineProfile with specified end points.
      Parameters:
      x1 - x-component of line end 1
      y1 - y-component of line end 1
      x2 - x-component of line end 2
      y2 - y-component of line end 2
  • Method Details

    • draw

      public void draw(DrawingPanel panel, Graphics g)
      Override the draw method to get the profile data.
      Specified by:
      draw in interface Drawable
      Overrides:
      draw in class TShape
      Parameters:
      panel - the drawing panel requesting the drawing
      g - the graphics context on which to draw
    • getProfile

      public int[] getProfile()
      Gets the line profile.
      Returns:
      the line profile
    • getProfileData

      protected void getProfileData(VideoPanel vidPanel)
      Gets the line profile data.
      Parameters:
      vidPanel - the video panel