public class VisualizeRegions
extends java.lang.Object
| Constructor and Description |
|---|
VisualizeRegions() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.image.BufferedImage |
regionBorders(boofcv.struct.image.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(boofcv.struct.image.GrayS32 pixelToRegion,
int numRegions,
java.awt.image.BufferedImage output)
Draws each region with a random color
|
static java.awt.image.BufferedImage |
regionsColor(boofcv.struct.image.GrayS32 pixelToRegion,
org.ddogleg.struct.FastQueue<float[]> segmentColor,
java.awt.image.BufferedImage output)
Draws each region using the provided color
|
static java.awt.image.BufferedImage |
watersheds(boofcv.struct.image.GrayS32 segments,
java.awt.image.BufferedImage output,
int radius)
Sets the pixels of each watershed as red in the output image.
|
public static java.awt.image.BufferedImage watersheds(boofcv.struct.image.GrayS32 segments,
java.awt.image.BufferedImage output,
int radius)
segments - Conversion from pixel to regionoutput - Storage for output image. Can be null.radius - Thickness of watershed. 0 is 1 pixel wide. 1 is 3 pixels wide.public static java.awt.image.BufferedImage regions(boofcv.struct.image.GrayS32 pixelToRegion,
int numRegions,
java.awt.image.BufferedImage output)
pixelToRegion - Conversion from pixel to regionnumRegions - Total number of regions.output - Storage for output image. Can be null.public static java.awt.image.BufferedImage regionsColor(boofcv.struct.image.GrayS32 pixelToRegion,
org.ddogleg.struct.FastQueue<float[]> segmentColor,
java.awt.image.BufferedImage output)
pixelToRegion - Conversion from pixel to regionsegmentColor - Color of each regionoutput - Storage for output image. Can be null.public static java.awt.image.BufferedImage regionBorders(boofcv.struct.image.GrayS32 pixelToRegion,
int borderColor,
java.awt.image.BufferedImage output)
pixelToRegion - Conversion from pixel to regionborderColor - RGB value of border pixeloutput - Storage for output image. Can be null.