[Rcicr-users] Obtaining Noise Image
Daniel Albohn
d.albohn at gmail.com
Fri Aug 21 17:48:58 CEST 2015
Hello,
I am writing the listserv to get some feedback on how to obtain just a
noise image from a reverse correlation task (i.e., without the base image).
Through looking at the documentation, I believe this is possible, although
there are not many examples or supporting documents to confirm my
suspicious. As such, I wanted to make sure my code was actually giving me
what I want it to give me.
----R code----
data <- read.csv("rcicrData1.csv")
##Apparently this is unneeded for creating just a noise image?##
n <- 'rcicrdata.Rdata'
responses <- as.vector(data$correct)
s <- generateNoisePattern(img_size = 512, pre_0.3.0 = TRUE)
noise <- generateCINoise(data$Face, data$correct, s)
image(noise) #it's in color?
##output grey scale image##
jpeg("Noise_img.jpg",
width = 512, height = 512, units = "px")
par(mar = rep(0,4))
image(noise, axes=FALSE, col = grey(seq(0,1, length = 512)))
dev.off()
---End Code---
Any thoughts, suggestions, or critiques would be appreciated! Again, I am
looking to output a noise image from RC data, much like generating a CI,
but without the base image underneath.
Thanks,
Dan
--
Daniel Albohn
Website <http://www.sites.psu.edu/albohn> | 484-332-7688
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcicr-users/attachments/20150821/68edf681/attachment.html>
More information about the Rcicr-users
mailing list