public class VisualizeImageData
extends java.lang.Object
| Constructor and Description |
|---|
VisualizeImageData() |
| Modifier and Type | Method and Description |
|---|---|
static void |
binaryToBitmap(boofcv.struct.image.GrayU8 binary,
boolean invert,
android.graphics.Bitmap output,
byte[] storage)
Renders a binary image as a B&W bitmap.
|
static void |
colorizeGradient(boofcv.struct.image.GrayF32 derivX,
boofcv.struct.image.GrayF32 derivY,
float maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
Renders two gradients on the same image using two sets of colors, on for each input image.
|
static void |
colorizeGradient(boofcv.struct.image.GrayS16 derivX,
boofcv.struct.image.GrayS16 derivY,
int maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
Renders two gradients on the same image using two sets of colors, on for each input image.
|
static void |
colorizeSign(boofcv.struct.image.GrayF32 input,
float maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
Renders positive and negative values as two different colors.
|
static void |
colorizeSign(boofcv.struct.image.GrayS16 input,
int maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
Renders positive and negative values as two different colors.
|
static void |
disparity(boofcv.struct.image.GrayF32 disparity,
int minValue,
int maxValue,
int invalidColor,
android.graphics.Bitmap output,
byte[] storage)
Colorizes a disparity image.
|
static void |
disparity(boofcv.struct.image.GrayI disparity,
int minValue,
int maxValue,
int invalidColor,
android.graphics.Bitmap output,
byte[] storage)
Colorizes a disparity image.
|
static void |
drawEdgeContours(java.util.List<boofcv.alg.feature.detect.edge.EdgeContour> contours,
int[] colors,
android.graphics.Bitmap output,
byte[] storage)
Draws each contour using a unique color.
|
static void |
drawEdgeContours(java.util.List<boofcv.alg.feature.detect.edge.EdgeContour> contours,
int color,
android.graphics.Bitmap output,
byte[] storage)
Draws each contour using a single color.
|
static void |
grayMagnitude(boofcv.struct.image.GrayF32 input,
float maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
Renders the image using its gray magnitude
|
static void |
grayMagnitude(boofcv.struct.image.GrayS32 input,
int maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
Renders the image using its gray magnitude
|
static void |
regionBorders(boofcv.struct.image.GrayS32 pixelToRegion,
int borderColor,
android.graphics.Bitmap output,
byte[] storage)
Draws border pixels of each region using the specified color.
|
static void |
regionsColor(boofcv.struct.image.GrayS32 pixelToRegion,
org.ddogleg.struct.FastQueue<float[]> segmentColor,
android.graphics.Bitmap output,
byte[] storage)
Draws each region using the provided color
|
static void |
renderLabeled(boofcv.struct.image.GrayS32 labelImage,
int numRegions,
android.graphics.Bitmap output,
byte[] storage)
Renders a labeled where each region is assigned a random color.
|
public static void binaryToBitmap(boofcv.struct.image.GrayU8 binary,
boolean invert,
android.graphics.Bitmap output,
byte[] storage)
ConvertBitmap.declareStorage(android.graphics.Bitmap, byte[]);binary - (Input) Binary image.invert - If true it will invert the output image.output - (Output) Bitmap ARGB_8888 image.storage - Optional working buffer for Bitmap image.public static void colorizeSign(boofcv.struct.image.GrayS16 input,
int maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
input - (Input) Image with positive and negative values.maxAbsValue - The largest absolute value of any pixel in the image. Set to < 0 if not known.output - (Output) Bitmap ARGB_8888 image.storage - Optional working buffer for Bitmap image.public static void colorizeSign(boofcv.struct.image.GrayF32 input,
float maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
input - (Input) Image with positive and negative values.maxAbsValue - The largest absolute value of any pixel in the image. Set to < 0 if not known.output - (Output) Bitmap ARGB_8888 image.storage - Optional working buffer for Bitmap image.public static void grayMagnitude(boofcv.struct.image.GrayS32 input,
int maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
input - (Input) Image imagemaxAbsValue - (Input) Largest absolute value of a pixel in the imageoutput - (Output) Bitmap ARGB_8888 image.storage - Optional working buffer for Bitmap image.public static void grayMagnitude(boofcv.struct.image.GrayF32 input,
float maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
input - (Input) Image imagemaxAbsValue - (Input) Largest absolute value of a pixel in the imageoutput - (Output) Bitmap ARGB_8888 image.storage - Optional working buffer for Bitmap image.public static void colorizeGradient(boofcv.struct.image.GrayS16 derivX,
boofcv.struct.image.GrayS16 derivY,
int maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
derivX - (Input) Image with positive and negative values.derivY - (Input) Image with positive and negative values.maxAbsValue - The largest absolute value of any pixel in the image. Set to < 0 if not known.output - (Output) Bitmap ARGB_8888 image.storage - Optional working buffer for Bitmap image.public static void colorizeGradient(boofcv.struct.image.GrayF32 derivX,
boofcv.struct.image.GrayF32 derivY,
float maxAbsValue,
android.graphics.Bitmap output,
byte[] storage)
derivX - (Input) Image with positive and negative values.derivY - (Input) Image with positive and negative values.maxAbsValue - The largest absolute value of any pixel in the image. Set to < 0 if not known.output - (Output) Bitmap ARGB_8888 image.storage - Optional working buffer for Bitmap image.public static void disparity(boofcv.struct.image.GrayI disparity,
int minValue,
int maxValue,
int invalidColor,
android.graphics.Bitmap output,
byte[] storage)
disparity - (Input) disparity image.minValue - Minimum possible disparitymaxValue - Maximum possible disparityinvalidColor - RGB value of an invalid pixeloutput - (Output) Bitmap ARGB_8888 image.storage - Optional working buffer for Bitmap image. Can be null.public static void disparity(boofcv.struct.image.GrayF32 disparity,
int minValue,
int maxValue,
int invalidColor,
android.graphics.Bitmap output,
byte[] storage)
disparity - (Input) disparity image.minValue - Minimum possible disparitymaxValue - Maximum possible disparityinvalidColor - RGB value of an invalid pixeloutput - (Output) Bitmap ARGB_8888 image.storage - Optional working buffer for Bitmap image. Can be null.public static void drawEdgeContours(java.util.List<boofcv.alg.feature.detect.edge.EdgeContour> contours,
int[] colors,
android.graphics.Bitmap output,
byte[] storage)
contours - List of edge contourscolors - RGB color for each edgeoutput - Where the output is written tostorage - Optional working buffer for Bitmap image. Can be null.public static void drawEdgeContours(java.util.List<boofcv.alg.feature.detect.edge.EdgeContour> contours,
int color,
android.graphics.Bitmap output,
byte[] storage)
contours - List of edge contourscolor - The RGB color that each edge pixel should be drawnoutput - Where the output is written tostorage - Optional working buffer for Bitmap image. Can be null.public static void renderLabeled(boofcv.struct.image.GrayS32 labelImage,
int numRegions,
android.graphics.Bitmap output,
byte[] storage)
labelImage - Labeled image with labels from 0 to numRegions-1numRegions - Number of labeled in the imageoutput - Where the output is written tostorage - Optional working buffer for Bitmap image. Can be null.public static void regionBorders(boofcv.struct.image.GrayS32 pixelToRegion,
int borderColor,
android.graphics.Bitmap output,
byte[] storage)
pixelToRegion - Conversion from pixel to regionborderColor - RGB value of border pixeloutput - Where the output is written tostorage - Optional working buffer for Bitmap image. Can be null.public static void regionsColor(boofcv.struct.image.GrayS32 pixelToRegion,
org.ddogleg.struct.FastQueue<float[]> segmentColor,
android.graphics.Bitmap output,
byte[] storage)
pixelToRegion - Conversion from pixel to regionsegmentColor - Color of each regionoutput - Where the output is written tostorage - Optional working buffer for Bitmap image. Can be null.