Facemorph.Stats
Interface ImageDataHandler

All Known Implementing Classes:
ImagePLS, WaveletPLS, WaveletRGBPLS

public interface ImageDataHandler

A interface for regression and factor analysis classes than can handle image data.


Method Summary
 FloatImage[] reconstructImage(double[] in)
          Reconstruct an image from a set of parameters
 double[] reduce(FloatImage r, FloatImage g, FloatImage b)
          Reduce an image to a (much) lower dimensional form
 void setIndependentData(Batch images)
          Supply a set of images to use as the dependent variables of the PLS decomposition
 

Method Detail

setIndependentData

void setIndependentData(Batch images)
Supply a set of images to use as the dependent variables of the PLS decomposition

Parameters:
images - a batch file containing the image file names

reduce

double[] reduce(FloatImage r,
                FloatImage g,
                FloatImage b)
Reduce an image to a (much) lower dimensional form

Parameters:
r - the red part of the image
g - the green part of the image
b - the blue part of the iamge
Returns:
a set of descriptive parameters

reconstructImage

FloatImage[] reconstructImage(double[] in)
Reconstruct an image from a set of parameters

Parameters:
in - a vector of reconstuction parameters
Returns:
3 float images corresponding to the r,g,b channels of the image