Package boofcv.gui

Class ImageHistogramPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
HistogramThresholdPanel

public class ImageHistogramPanel
extends JPanel
Draws a histogram of the image's pixel intensity level
See Also:
Serialized Form
  • Field Details

    • totalBins

      protected int totalBins
    • maxValue

      protected double maxValue
    • bins

      protected int[] bins
    • marker

      public int marker
    • approximateHistogram

      public boolean approximateHistogram
  • Constructor Details

    • ImageHistogramPanel

      public ImageHistogramPanel​(int totalBins, double maxValue)
  • Method Details

    • updateSafe

      public void updateSafe​(ImageGray image)
      Update that can be called at any time. Will lock UI thread until it's done
      Parameters:
      image -
    • update

      public void update​(ImageGray image)
      Update's the histogram. Must only be called in UI thread
    • paintComponent

      public void paintComponent​(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • setMarker

      public void setMarker​(int marker)
    • isApproximateHistogram

      public boolean isApproximateHistogram()
    • setApproximateHistogram

      public void setApproximateHistogram​(boolean approximateHistogram)