|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.psychomorph.Average
public class Average
Batchable for making averages
| Constructor Summary | |
|---|---|
Average(PsychoMorphForm parent,
java.io.File f,
boolean overlap)
Constructor for averages |
|
Average(PsychoMorphForm parent,
java.io.File f,
boolean mrfTransform,
Template avTem,
boolean overlap)
Constructor for averages |
|
| Method Summary | |
|---|---|
void |
finish()
Performs any processing required at the end of the batch loading, |
Template |
getAverageTemplate()
Get the average template |
java.util.ArrayList<FloatImage> |
getFloatImages()
Get the float image array of the intensity channel |
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 |
java.util.ArrayList<Template> |
getTemplates()
Get the set of templates to average |
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 |
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 |
void |
setAverageTemplate(Template tem)
Set the average template |
void |
setOutputSize(int w,
int h)
Set the size of the output image |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Average(PsychoMorphForm parent,
java.io.File f,
boolean overlap)
parent - the parent componentf - the file containing the image - template listoverlap - should overlap control be used when warping
public Average(PsychoMorphForm parent,
java.io.File f,
boolean mrfTransform,
Template avTem,
boolean overlap)
parent - the parent componentf - the file containing the image - template listmrfTransform - should MRF processing be usedavTem - the average template, if null it is calculated from the fileoverlap - should overlap control be used when warping| Method Detail |
|---|
public boolean process(ImageZoomPanel izp,
boolean single)
Batchable
process in interface Batchableizp - 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 void finish()
Batchable
finish in interface Batchable
public void setOutputSize(int w,
int h)
w - widthh - heightpublic java.util.ArrayList<Template> getTemplates()
public Template getAverageTemplate()
public void setAverageTemplate(Template tem)
tem - the average template to usepublic java.util.ArrayList<FloatImage> getFloatImages()
public java.lang.String getName()
Batchable
getName in interface Batchablepublic boolean initialise(PsychoMorphForm psychomorph)
Batchable
initialise in interface Batchablepsychomorph - the main psychomorph object
public boolean getReadTemplate()
Batchable
getReadTemplate in interface Batchablepublic boolean getWriteTemplate()
Batchable
getWriteTemplate in interface Batchablepublic boolean getWriteImage()
Batchable
getWriteImage in interface Batchable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||