Class ConvertLabeledImageFormats

java.lang.Object
boofcv.io.image.ConvertLabeledImageFormats

public class ConvertLabeledImageFormats
extends Object
Functions for converting between different labeled image formats.
  • Constructor Details

    • ConvertLabeledImageFormats

      public ConvertLabeledImageFormats()
  • Method Details

    • convert

      public static GrayS32 convert​(List<PolygonRegion> regions, int width, int height, @Nullable @Nullable GrayS32 output)
      Converts from a set of polygon regions into a labeled image. Regions must be simple polygons
      Parameters:
      regions - (Input) List of simple polygon regions
      width - (Input) width of image
      height - (Input) height of image
      output - (Output) labeled image. Optional. If null a new image is created.
      Returns:
      The output image/