public class Transforms extends Object
| Constructor and Description |
|---|
Transforms() |
| Modifier and Type | Method and Description |
|---|---|
static FImage |
calculateHue(MBFImage in)
Calculate Hue in 0..1 range from a 3-band RGB MBFImage
|
static FImage |
calculateIntensity(MBFImage in)
Calculate intensity by averaging R, G, B planes.
|
static FImage |
calculateIntensity(MBFImage in,
float wR,
float wG,
float wB)
Calculate Intensity image from an RGB or RGBA MBFImage with given
weightings for R, G and B
|
static FImage |
calculateIntensityNTSC(MBFImage in)
Calculate intensity by a weighted average of the R, G, B planes.
|
static FImage |
calculateSaturation(MBFImage in)
Calculate Saturation image from a 3-band RGB MBFImage
|
static MBFImage |
CIELab_TO_CIEXYZ(MBFImage input)
Convert CIELab to CIEXYZ.
|
static MBFImage |
CIELab_TO_RGB(MBFImage input)
Convert CIE Lab to RGB.
|
static MBFImage |
CIELabNormalised_TO_RGB(MBFImage input)
Convert normalised CIE Lab to RGB.
|
static MBFImage |
CIELUV_TO_CIEXYZ(MBFImage input)
Convert CIELUV to CIEXYZ.
|
static MBFImage |
CIELUV_TO_RGB(MBFImage input)
Convert CIE LUV to RGB.
|
static MBFImage |
CIEXYZ_TO_CIELab(MBFImage input)
Convert CIEXYZ to CIELab.
|
static MBFImage |
CIEXYZ_TO_CIELab(MBFImage input,
boolean inPlace)
Convert CIEXYZ to CIELab.
|
static MBFImage |
CIEXYZ_TO_CIELUV(MBFImage input)
Convert CIEXYZ to CIELUV (CIE 1976) See
http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_Lab.html
|
static MBFImage |
CIEXYZ_TO_CIELUV(MBFImage input,
boolean inPlace)
Convert CIEXYZ to CIELUV (CIE 1976) See
http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_Lab.html
|
static MBFImage |
CIEXYZ_TO_RGB(MBFImage in)
CIE_XYZ color space transform to RGB.
|
static MBFImage |
CIEXYZ_TO_RGB(MBFImage in,
boolean inPlace)
CIE_XYZ color space transform to RGB.
|
static MBFImage |
H_TO_H1H2_2(FImage in)
Convert to Hue to H2 VARIANT 2 using the formulation from:
http://ilab.usc.edu/wiki/index.php/HSV_And_H2SV_Color_Space
|
static MBFImage |
H_TO_H1H2(FImage in)
Convert to Hue to H2 using the formulation from:
http://ilab.usc.edu/wiki/index.php/HSV_And_H2SV_Color_Space
|
static MBFImage |
H2SV_TO_HSV_Simple(MBFImage in)
Convert H2SV to HSV VARIANT 1 using the simple formulation from:
http://ilab.usc.edu/wiki/index.php/HSV_And_H2SV_Color_Space Assumes H1
and H2 are 0..1.
|
static MBFImage |
H2SV2_TO_HSV_Simple(MBFImage in)
Convert H2SV to HSV VARIANT 2 using the simple formulation from:
http://ilab.usc.edu/wiki/index.php/HSV_And_H2SV_Color_Space Assumes H1
and H2 are 0..1.
|
static MBFImage |
HSV_TO_H2SV_2(MBFImage in)
Convert HSV to H2SV VARIANT 2 using the formulation from:
http://ilab.usc.edu/wiki/index.php/HSV_And_H2SV_Color_Space
|
static MBFImage |
HSV_TO_H2SV(MBFImage in)
Convert HSV to H2SV using the formulation from:
http://ilab.usc.edu/wiki/index.php/HSV_And_H2SV_Color_Space
|
static MBFImage |
HSV_TO_RGB(MBFImage in)
Convert from HSV using the formulation from:
http://ilab.usc.edu/wiki/index.php/HSV_And_H2SV_Color_Space Assumption is
that H is in the range 0..1 and SV are in the range 0..1.
|
static MBFImage |
projectHS(MBFImage in)
Transform the Hue and Saturation components of a MBFImage by projecting
them from a radial coordinate system to Cartesian coordinates.
|
static MBFImage |
RGB_TO_CIELab(MBFImage input)
Convert RGB to CIE Lab.
|
static MBFImage |
RGB_TO_CIELabNormalised(MBFImage input)
Convert CIEXYZ to CIELab and normalise the resultant L, a & b values to
0..1.
|
static MBFImage |
RGB_TO_CIELUV(MBFImage input)
Convert RGB to CIE LUV.
|
static MBFImage |
RGB_TO_CIEXYZ(MBFImage in)
CIE_XYZ color space transform from RGB.
|
static MBFImage |
RGB_TO_H2S_2(MBFImage in)
Convert RGB to H2S VARIANT 2
|
static MBFImage |
RGB_TO_H2S(MBFImage in)
Convert RGB to H2S
|
static MBFImage |
RGB_TO_H2SV_2(MBFImage in)
Convert RGB to H2SV2 VARIANT 2
|
static MBFImage |
RGB_TO_H2SV(MBFImage in)
Convert RGB to H2SV
|
static MBFImage |
RGB_TO_HS_2(MBFImage in)
Convert to HS using the formulation from
http://ilab.usc.edu/wiki/index.php/HSV_And_H2SV_Color_Space
|
static MBFImage |
RGB_TO_HS(MBFImage in)
Transform 3 band RGB image to HS
|
static MBFImage |
RGB_TO_HSI(MBFImage in)
Transform 3 band RGB image to HSV
|
static MBFImage |
RGB_TO_HSL(MBFImage in)
Transform 3 band RGB image to HSL
|
static MBFImage |
RGB_TO_HSV(MBFImage in)
Convert to HSV using the formulation from:
http://ilab.usc.edu/wiki/index.php/HSV_And_H2SV_Color_Space The
assumption is that RGB are in the range 0..1.
|
static MBFImage |
RGB_TO_HSY(MBFImage in)
Transform 3 band RGB image to HSY
|
static MBFImage |
RGB_TO_RGB_NORMALISED(MBFImage in)
Intensity normalisation
|
static MBFImage |
RGB_TO_YUV(MBFImage input)
Convert from RGB to YUV.
|
static MBFImage |
RGB_TO_YUV(MBFImage input,
boolean inPlace,
boolean norm)
Convert from RGB to YUV.
|
static MBFImage |
RGB_TO_YUVNormalised(MBFImage input)
Convert from RGB to normalised YUV.
|
static MBFImage |
YUV_TO_RGB(MBFImage input)
Convert from YUV to RGB.
|
static MBFImage |
YUV_TO_RGB(MBFImage input,
boolean inPlace,
boolean norm)
Convert from YUV to RGB.
|
static MBFImage |
YUVNormalised_TO_RGB(MBFImage input)
Convert from normalised YUV to RGB.
|
public Transforms()
public static FImage calculateIntensity(MBFImage in)
in - MBFImage with 3 bandspublic static FImage calculateIntensity(MBFImage in, float wR, float wG, float wB)
in - input imagewR - red weightwG - green weightwB - blue weightpublic static FImage calculateIntensityNTSC(MBFImage in)
in - MBFImage with 3 bandspublic static FImage calculateHue(MBFImage in)
in - RGB or RGBA imagepublic static FImage calculateSaturation(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage RGB_TO_HSI(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage RGB_TO_HSL(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage RGB_TO_HSY(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage RGB_TO_HS(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage RGB_TO_HS_2(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage projectHS(MBFImage in)
in - input imagepublic static MBFImage RGB_TO_HSV(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage HSV_TO_RGB(MBFImage in)
in - input imagepublic static MBFImage H_TO_H1H2(FImage in)
in - input imagepublic static MBFImage HSV_TO_H2SV(MBFImage in)
in - HSV imagepublic static MBFImage RGB_TO_H2SV(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage RGB_TO_H2S(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage H_TO_H1H2_2(FImage in)
in - Hue imagepublic static MBFImage H2SV_TO_HSV_Simple(MBFImage in)
in - H2SV imagepublic static MBFImage H2SV2_TO_HSV_Simple(MBFImage in)
in - H2SV2 imagepublic static MBFImage HSV_TO_H2SV_2(MBFImage in)
in - HSV imagepublic static MBFImage RGB_TO_H2SV_2(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage RGB_TO_H2S_2(MBFImage in)
in - RGB or RGBA imagepublic static MBFImage RGB_TO_RGB_NORMALISED(MBFImage in)
in - RGB imagepublic static MBFImage RGB_TO_CIEXYZ(MBFImage in)
in - input RGB imagepublic static MBFImage CIEXYZ_TO_RGB(MBFImage in)
in - input CIEXYZ imagepublic static MBFImage CIEXYZ_TO_RGB(MBFImage in, boolean inPlace)
in - input CIEXYZ imageinPlace - if true then input image is modified, rather than creating a
new imagepublic static MBFImage CIEXYZ_TO_CIELab(MBFImage input)
input - input imagepublic static MBFImage CIEXYZ_TO_CIELab(MBFImage input, boolean inPlace)
input - input imageinPlace - if true then input image is modified, rather than creating a
new imagepublic static MBFImage RGB_TO_CIELab(MBFImage input)
input - input RGB imagepublic static MBFImage CIELab_TO_CIEXYZ(MBFImage input)
input - input imagepublic static MBFImage CIELab_TO_RGB(MBFImage input)
input - input CIE Lab imagepublic static MBFImage RGB_TO_CIELabNormalised(MBFImage input)
input - input imagepublic static MBFImage CIELabNormalised_TO_RGB(MBFImage input)
input - input CIE Lab imagepublic static MBFImage CIEXYZ_TO_CIELUV(MBFImage input)
input - input imagepublic static MBFImage CIEXYZ_TO_CIELUV(MBFImage input, boolean inPlace)
input - input imageinPlace - if true then input image is modified, rather than creating a
new imagepublic static MBFImage RGB_TO_CIELUV(MBFImage input)
input - input RGB imagepublic static MBFImage CIELUV_TO_CIEXYZ(MBFImage input)
input - input imagepublic static MBFImage CIELUV_TO_RGB(MBFImage input)
input - input CIE LUV imagepublic static MBFImage RGB_TO_YUV(MBFImage input)
input - input RGB imagepublic static MBFImage RGB_TO_YUVNormalised(MBFImage input)
input - input RGB imagepublic static MBFImage RGB_TO_YUV(MBFImage input, boolean inPlace, boolean norm)
input - input RGB imageinPlace - if true the output will overwrite the input; otherwise a new
image is created.norm - true if the U and V values are normalised to [0, 1].public static MBFImage YUVNormalised_TO_RGB(MBFImage input)
input - input normalised YUV imagepublic static MBFImage YUV_TO_RGB(MBFImage input)
input - input YUV imagepublic static MBFImage YUV_TO_RGB(MBFImage input, boolean inPlace, boolean norm)
input - input RGB imageinPlace - if true the output will overwrite the input; otherwise a new
image is created.norm - true if the U and V values should be normalised to [0, 1].