// Image initialization
BufferedImage imgOut = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
for (int i=0; i<f.size; i++){
PVector mean = (PVector)((PVectorMatrix)f.param[i]).v.clone();
Color c = new Color((int)mean.array[0], (int)mean.array[1], (int)mean.array[2]);
for (int row=0; row<height; row++)
for (int col=0; col<width; col++){
PVector x = (PVector)mean.clone();
x.array[3] = row;
x.array[4] = col;
double v = (x.Minus(((PVectorMatrix)f.param[i]).v)).InnerProduct(((PVectorMatrix)f.param[i]).M.Inverse().MultiplyVectorRight(x.Minus(((PVectorMatrix)f.param[i]).v)));
if (v<t)
imgOut.setRGB(col, row, c.getRGB());
}
}