Lecture 7: Machine Learning

And so we dive into machine learning. The code example we showed today to get and display the images in a grid is here:

List<BufferedImage> images = this.getImagesFromDirectory("small/pos_skew/");
for (int imageIndex = 0; imageIndex < images.size(); imageIndex++) {
    BufferedImage image = images.get(imageIndex);
    this.getFrame().drawImage(((imageIndex/3) % 3 )* 200, (imageIndex%3) * 200, image);
}

And the Gettysburg Address can be found here: http://en.wikipedia.org/wiki/Gettysburg_Address

Leave a Reply

You must be logged in to post a comment.