Package boofcv.io.image
Class ConvertLabeledImageFormats
java.lang.Object
boofcv.io.image.ConvertLabeledImageFormats
public class ConvertLabeledImageFormats extends Object
Functions for converting between different labeled image formats.
-
Constructor Summary
Constructors Constructor Description ConvertLabeledImageFormats()
-
Method Summary
Modifier and Type Method Description static GrayS32
convert(List<PolygonRegion> regions, int width, int height, @Nullable GrayS32 output)
Converts from a set of polygon regions into a labeled image.
-
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 regionswidth
- (Input) width of imageheight
- (Input) height of imageoutput
- (Output) labeled image. Optional. If null a new image is created.- Returns:
- The output image/
-