Documentation of 'boofcv.gui.feature.VisualizeRegions' Java class
VisualizeRegions
boofcv.gui.feature

Class VisualizeRegions



  • public class VisualizeRegions
    extends java.lang.Object
    Code for visualizing regions and superpixels
    • Constructor Summary

      Constructors 
      Constructor and Description
      VisualizeRegions() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.awt.image.BufferedImage regionBorders(GrayS32 pixelToRegion, int borderColor, java.awt.image.BufferedImage output)
      Draws border pixels of each region using the specified color.
      static java.awt.image.BufferedImage regions(GrayS32 pixelToRegion, int numRegions, java.awt.image.BufferedImage output)
      Draws each region with a random color
      static java.awt.image.BufferedImage regionsColor(GrayS32 pixelToRegion, FastQueue<float[]> segmentColor, java.awt.image.BufferedImage output)
      Draws each region using the provided color
      static java.awt.image.BufferedImage watersheds(GrayS32 segments, java.awt.image.BufferedImage output, int radius)
      Sets the pixels of each watershed as red in the output image.
      • Methods inherited from class java.lang.Object

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

      • VisualizeRegions

        public VisualizeRegions()
    • Method Detail

      • watersheds

        public static java.awt.image.BufferedImage watersheds(GrayS32 segments,
                                                              java.awt.image.BufferedImage output,
                                                              int radius)
        Sets the pixels of each watershed as red in the output image. Watersheds have a value of 0
        Parameters:
        segments - Conversion from pixel to region
        output - Storage for output image. Can be null.
        radius - Thickness of watershed. 0 is 1 pixel wide. 1 is 3 pixels wide.
        Returns:
        Output image.
      • regions

        public static java.awt.image.BufferedImage regions(GrayS32 pixelToRegion,
                                                           int numRegions,
                                                           java.awt.image.BufferedImage output)
        Draws each region with a random color
        Parameters:
        pixelToRegion - Conversion from pixel to region
        numRegions - Total number of regions.
        output - Storage for output image. Can be null.
        Returns:
        Output image.
      • regionsColor

        public static java.awt.image.BufferedImage regionsColor(GrayS32 pixelToRegion,
                                                                FastQueue<float[]> segmentColor,
                                                                java.awt.image.BufferedImage output)
        Draws each region using the provided color
        Parameters:
        pixelToRegion - Conversion from pixel to region
        segmentColor - Color of each region
        output - Storage for output image. Can be null.
        Returns:
        Output image.
      • regionBorders

        public static java.awt.image.BufferedImage regionBorders(GrayS32 pixelToRegion,
                                                                 int borderColor,
                                                                 java.awt.image.BufferedImage output)
        Draws border pixels of each region using the specified color.
        Parameters:
        pixelToRegion - Conversion from pixel to region
        borderColor - RGB value of border pixel
        output - Storage for output image. Can be null.
        Returns:
        Output image.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.