[R] Asking Favor

Petr PIKAL petr.pikal at precheza.cz
Wed Sep 22 17:08:10 CEST 2010


what exactly do you want.

You say you can read your data

 x <- read.jpeg(system.file("data", "cat.jpg", package="rimage"))

What do you mean by pixel image? By reading a picture you get an object 

> str(x)
 imagematrix [1:420, 1:418, 1:3] 0.255 0.251 0.247 0.247 0.255 ...
 - attr(*, "type")= chr "rgb"
 - attr(*, "class")= chr [1:2] "imagematrix" "array"

Do you want to extract part of this object? Here it is.

plot(imagematrix(x[30:150, 30:150,]))

Go through help pages and try examples from them.


r-help-bounces at r-project.org napsal dne 21.09.2010 14:52:35:

> Hi Chuan,
> I'm forwarding your question to the list because I haven't used the
> rimage package... It's best if you post questions to the list anyway
> because you are more likely to get a fast and useful answer.
> On 20 September 2010 23:03, chuan zun liang wrote:
> > Dear Michael:
> > I am so sorry,disturb again.I can plot jpeg image in R under package 
> > But How I can it into pixel image?I want exact some part of image.I 
> > this function in package spatstat...Is it possible I do it?Thank a lot
> > Chuan
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list