public class VisualizeBinaryData
extends java.lang.Object
| Constructor and Description |
|---|
VisualizeBinaryData() |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
checkColors(int[] colors,
int size) |
static java.awt.image.BufferedImage |
render(java.util.List<boofcv.alg.filter.binary.Contour> contours,
java.awt.Color color,
java.awt.image.BufferedImage out) |
static void |
render(java.util.List<boofcv.alg.filter.binary.Contour> contours,
java.awt.Color internal,
java.awt.Color external,
double stroke,
double scale,
java.awt.Graphics2D g2) |
static void |
render(java.util.List<boofcv.alg.filter.binary.Contour> contours,
int[] colors,
java.awt.image.BufferedImage out)
Renders only the external contours.
|
static void |
render(java.util.List<java.util.List<georegression.struct.point.Point2D_I32>> contours,
boolean loops,
java.awt.Color color,
double stroke,
double scale,
java.awt.Graphics2D g2) |
static java.awt.image.BufferedImage |
renderBinary(boofcv.struct.image.GrayU8 binaryImage,
boolean invert,
java.awt.image.BufferedImage out)
Renders a binary image.
|
static java.awt.image.BufferedImage |
renderContours(java.util.List<boofcv.alg.filter.binary.Contour> contours,
int[] colorExternal,
int colorInternal,
int width,
int height,
java.awt.image.BufferedImage out)
Draws contours.
|
static java.awt.image.BufferedImage |
renderContours(java.util.List<boofcv.alg.filter.binary.Contour> contours,
int colorExternal,
int colorInternal,
int width,
int height,
java.awt.image.BufferedImage out)
Draws contours.
|
static java.awt.image.BufferedImage |
renderContours(java.util.List<boofcv.alg.feature.detect.edge.EdgeContour> edges,
int[] colors,
int width,
int height,
java.awt.image.BufferedImage out) |
static java.awt.image.BufferedImage |
renderLabeled(boofcv.struct.image.GrayS32 labelImage,
int[] colors,
java.awt.image.BufferedImage out) |
static java.awt.image.BufferedImage |
renderLabeled(boofcv.struct.image.GrayS32 labelImage,
int numRegions,
java.awt.image.BufferedImage out)
Renders a labeled where each region is assigned a random color.
|
static java.awt.image.BufferedImage |
renderLabeledBG(boofcv.struct.image.GrayS32 labelImage,
int numRegions,
java.awt.image.BufferedImage out)
Renders a labeled image where label=0 is assumed to be the background and is always set to black.
|
public static java.awt.image.BufferedImage renderContours(java.util.List<boofcv.alg.feature.detect.edge.EdgeContour> edges,
int[] colors,
int width,
int height,
java.awt.image.BufferedImage out)
public static java.awt.image.BufferedImage renderContours(java.util.List<boofcv.alg.filter.binary.Contour> contours,
int colorExternal,
int colorInternal,
int width,
int height,
java.awt.image.BufferedImage out)
contours - List of contourscolorExternal - RGB colorcolorInternal - RGB colorwidth - Image widthheight - Image heightout - (Optional) storage for output imagepublic static java.awt.image.BufferedImage renderContours(java.util.List<boofcv.alg.filter.binary.Contour> contours,
int[] colorExternal,
int colorInternal,
int width,
int height,
java.awt.image.BufferedImage out)
contours - List of contourscolorExternal - (Optional) Array of RGB colors for each external contourcolorInternal - RGB colorwidth - Image widthheight - Image heightout - (Optional) storage for output imagepublic static void render(java.util.List<boofcv.alg.filter.binary.Contour> contours,
int[] colors,
java.awt.image.BufferedImage out)
contours - List of contourscolors - List of RGB colors for each element in contours. If null then random colors will be used.out - (Optional) Storage for outputpublic static int[] checkColors(int[] colors,
int size)
public static java.awt.image.BufferedImage render(java.util.List<boofcv.alg.filter.binary.Contour> contours,
java.awt.Color color,
java.awt.image.BufferedImage out)
public static void render(java.util.List<java.util.List<georegression.struct.point.Point2D_I32>> contours,
boolean loops,
java.awt.Color color,
double stroke,
double scale,
java.awt.Graphics2D g2)
public static void render(java.util.List<boofcv.alg.filter.binary.Contour> contours,
java.awt.Color internal,
java.awt.Color external,
double stroke,
double scale,
java.awt.Graphics2D g2)
public static java.awt.image.BufferedImage renderLabeled(boofcv.struct.image.GrayS32 labelImage,
int[] colors,
java.awt.image.BufferedImage out)
public static java.awt.image.BufferedImage renderLabeledBG(boofcv.struct.image.GrayS32 labelImage,
int numRegions,
java.awt.image.BufferedImage out)
labelImage - Labeled image with background having a value of 0numRegions - Number of labeled in the image, excluding the background.out - Output image. If null a new image is declaredpublic static java.awt.image.BufferedImage renderLabeled(boofcv.struct.image.GrayS32 labelImage,
int numRegions,
java.awt.image.BufferedImage out)
labelImage - Labeled image with labels from 0 to numRegions-1numRegions - Number of labeled in the imageout - Output image. If null a new image is declaredpublic static java.awt.image.BufferedImage renderBinary(boofcv.struct.image.GrayU8 binaryImage,
boolean invert,
java.awt.image.BufferedImage out)
binaryImage - (Input) Input binary image.invert - (Input) if true it will invert the image on outputout - (Output) optional storage for output image