R/zip2image.R

Defines functions zip2image

Documented in zip2image

zip2image <- 
function( zip, line ) {
     im <- zip[line, ]
     print(paste("digit ", im[1], " taken"))
     im <- im[-1]
     im <- t(matrix(im, 16, 16, byrow=TRUE))
     im <- im[, 16:1]
     return(im) }

# To be plotted by:
# image( im, col=gray(256:0/256), zlim=c(0,1) )
#

Try the tensorBSS package in your browser

Any scripts or data that you put into this service are public.

tensorBSS documentation built on Sept. 12, 2024, 5:07 p.m.