This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import scipy | |
import scipy.cluster | |
from pprint import pprint | |
image = Image.open('logo_newsblur_512.png') | |
NUM_CLUSTERS = 15 | |
# Convert image into array of values for each point. | |
ar = scipy.misc.fromimage(image) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pageCount = 3; | |
var thumbnails = { | |
1: "http://s3.documentcloud.org/documents/8941/pages/fbi-agent-william-h-lawrence-testifies-before-congress-p1-thumbnail.gif", | |
2: "http://s3.documentcloud.org/documents/8941/pages/fbi-agent-william-h-lawrence-testifies-before-congress-p2-thumbnail.gif", | |
3: "http://s3.documentcloud.org/documents/8941/pages/fbi-agent-william-h-lawrence-testifies-before-congress-p3-thumbnail.gif" | |
}; | |
var thumbnailsHTML = JST.thumbnails({ | |
pageCount : pageCount, | |
thumbnails : thumbnails |
NewerOlder