public final class ColorSpaceConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN |
static char |
UNKNOWN_BASE |
| Modifier and Type | Method and Description |
|---|---|
static void |
convert(CharSequence input,
it.unimi.dsi.lang.MutableString output)
Converts a sequence into the equivalent sequence in color space.
|
static void |
convert(CharSequence input,
it.unimi.dsi.lang.MutableString output,
boolean anyN)
Converts a sequence into the equivalent sequence in color space.
|
static char |
decodeColor(char previousBase,
char colorCode)
Return the base corresponding to the previous base and color code transition.
|
static String |
getColorSpaceSubstitutionMatrix() |
static void |
main(String[] args) |
public static final int UNKNOWN
public static final char UNKNOWN_BASE
public static char decodeColor(char previousBase,
char colorCode)
previousBase - Base in sequence space at the previous position.colorCode - Transition in color space.public static void convert(CharSequence input, it.unimi.dsi.lang.MutableString output)
input - The sequence to be convertedoutput - where the converted sequence should be placedpublic static void convert(CharSequence input, it.unimi.dsi.lang.MutableString output, boolean anyN)
input - The sequence to be convertedoutput - where the converted sequence should be placedanyN - if true, converts color space codes larger or equal to 4 to 'N' characters.public static String getColorSpaceSubstitutionMatrix()
public static void main(String[] args) throws com.martiansoftware.jsap.JSAPException, IOException
com.martiansoftware.jsap.JSAPExceptionIOExceptionCopyright © 2017 Campagne Laboratory. All rights reserved.