|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.psychomorph.batchable.BatchColourCalibrate
public class BatchColourCalibrate
Colour calibration implementation Reads calibration chart data from file. User selects a box around the chart, attempts to refine the alignment (rigid+scale) based on matching to the mean colours. Optionally will refine the alignment to each image in a set, based on the initial box selection.
Field Summary | |
---|---|
static double[] |
D50
reference white D50 in XYZ coordinates |
static double[] |
D55
reference white D55 in XYZ coordinates |
static double[] |
D65
reference white D65 in XYZ coordinates |
static double[] |
D75
reference white D75 in XYZ coordinates |
Constructor Summary | |
---|---|
BatchColourCalibrate()
|
Method Summary | |
---|---|
void |
finish()
Performs any processing required at the end of the batch loading, |
java.lang.String |
getName()
Gets the name of the Batchable, used in to put them on the psychomorph menu in the form (for "My Bachable"): - My Batchable - Batch My Batchable |
boolean |
getReadTemplate()
Indicates if templates should be read in during batch operation |
boolean |
getWriteImage()
Indicates if images should be written out during batch operation |
boolean |
getWriteTemplate()
Indicates if templates should be written out during batch operation |
boolean |
initialise(PsychoMorphForm psychomorph)
Initialise the Batchable This is called each time the batchable is selected |
static double[] |
LabtoXYZ(double[] col,
double[] wp)
Convert L*a*b* to XYZ |
boolean |
process(ImageZoomPanel izp,
boolean single)
The process method is called for each image in the list, or for the current image in single mode |
static double[] |
XYZtoLab(double[] col,
double[] wp)
Convert XYZ to L*a*b* |
int[] |
XYZtoRGB(double[] XYZ)
Convert XYZ to RGB |
int[] |
XYZtoRGB(double X,
double Y,
double Z)
Convert XYZ to RGB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double[] D50
public static final double[] D55
public static final double[] D65
public static final double[] D75
Constructor Detail |
---|
public BatchColourCalibrate()
Method Detail |
---|
public boolean process(ImageZoomPanel izp, boolean single)
Batchable
process
in interface Batchable
izp
- The ImageZoomPanel holds the image and Template to processsingle
- this indicates that we are (or are not) in bacth mode. Useful for things like saving undo data (for single) or not (for batch)
public boolean initialise(PsychoMorphForm psychomorph)
Batchable
initialise
in interface Batchable
psychomorph
- the main psychomorph object
public void finish()
Batchable
finish
in interface Batchable
public java.lang.String getName()
Batchable
getName
in interface Batchable
public static double[] XYZtoLab(double[] col, double[] wp)
col
- the XYZ colourwp
- the whitepoint
public static double[] LabtoXYZ(double[] col, double[] wp)
col
- the L*a*b* colourwp
- the whitepoint
public int[] XYZtoRGB(double X, double Y, double Z)
X
- XY
- YZ
- Z
public int[] XYZtoRGB(double[] XYZ)
XYZ
- in a double array.
public boolean getReadTemplate()
Batchable
getReadTemplate
in interface Batchable
public boolean getWriteTemplate()
Batchable
getWriteTemplate
in interface Batchable
public boolean getWriteImage()
Batchable
getWriteImage
in interface Batchable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |