public class MarvinColorModelConverter
extends java.lang.Object
Constructor and Description |
---|
MarvinColorModelConverter() |
Modifier and Type | Method and Description |
---|---|
static int[] |
binaryToRgb(boolean[] binaryArray)
Converts a boolean array containing the pixel data in BINARY mode to an
integer array with the pixel data in RGB mode.
|
static MarvinImage |
binaryToRgb(MarvinImage img)
Converts an image in BINARY mode to RGB mode
|
static int[] |
hsvToRgb(double[] hsvArray)
Converts hsv array [h,s,v,h2,s2,v2...] to rgb array [argb, argb2,
|
static MarvinImage |
rgbToBinary(MarvinImage img,
int threshold)
Converts an image in RGB mode to BINARY mode
|
static double[] |
rgbToHsv(int[] rgbArray)
Converts rgb array [argb, argb2,...] to hsv array [h,s,v,h2,s2,v2
|
public static MarvinImage rgbToBinary(MarvinImage img, int threshold)
img
- imagethreshold
- grays cale thresholdpublic static MarvinImage binaryToRgb(MarvinImage img)
img
- imagepublic static int[] binaryToRgb(boolean[] binaryArray)
binaryArray
- pixel binary datapublic static double[] rgbToHsv(int[] rgbArray)
hsvArray
- public static int[] hsvToRgb(double[] hsvArray)
hsvArray
-