Facemorph.DataBase
Interface EnhancedBatchable


public interface EnhancedBatchable


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 initialise(int count)
          Initialise the Batchable This is called each time the batchable is selected
 boolean parallelizable()
          Does the class store or alter state between images.
 boolean process(BatchProcessData data)
          The process method is called for each image in the list, or for the current image in single mode
 boolean readImage()
          The defining class must specify if it wishes to read in the images defined in the Batch file
 boolean readTemplate()
          The defining class must specify if it wishes to read defined in the Batch file
 boolean writeImage()
          The defining class must specify if it wished to output images defined in the Batch file
 boolean writeTemplate()
          The defining class must specify if it wished to write templates modified by the EnahancedBatchable process
 

Method Detail

process

boolean process(BatchProcessData data)
The process method is called for each image in the list, or for the current image in single mode

Parameters:
data - Data to drive the Batch process
Returns:
returns true if the processing was successfule, or false if not

initialise

boolean initialise(int count)
Initialise the Batchable This is called each time the batchable is selected

Parameters:
count - the number of images (or whatever) in set.
Returns:
returns true if initialised OK

finish

void finish()
Performs any processing required at the end of the batch loading,


getName

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

Returns:
return the name of your Batchable aas a String

readImage

boolean readImage()
The defining class must specify if it wishes to read in the images defined in the Batch file

Returns:
true if the image is to be read.

writeImage

boolean writeImage()
The defining class must specify if it wished to output images defined in the Batch file

Returns:
true if the class writes processed images to disk.

readTemplate

boolean readTemplate()
The defining class must specify if it wishes to read defined in the Batch file

Returns:
true if the class wishes to read templates

writeTemplate

boolean writeTemplate()
The defining class must specify if it wished to write templates modified by the EnahancedBatchable process

Returns:
true if the class wishes to write the resulting templates.

parallelizable

boolean parallelizable()
Does the class store or alter state between images. I.e. can the algorithm be implemented in parallel

Returns:
false if the class cannot be implemeneted in parallel.